public override void Deserialize(GenericReader reader) { base.Deserialize(reader); int version = reader.ReadInt(); m_Sleeper = (SleeperEWCleanableAddon)reader.ReadItem(); }
protected override void OnTarget(Mobile from, object targeted) { if (targeted is Sheets) { Sheets sheets = (Sheets)targeted; from.SendMessage("You make the bed."); from.AddToBackpack(new Sheets(m_SleeperEWUsedAddon.Hue)); Point3D sleeploc = m_SleeperEWUsedAddon.Location; m_SleeperEWUsedAddon.Delete(); SleeperEWCleanableAddon bed = new SleeperEWCleanableAddon(); bed.Location = sleeploc; bed.MoveToWorld(sleeploc, from.Map); bed.Hue = sheets.Hue; sheets.Delete(); } else { from.SendMessage("You should first put some clean sheets on the bed."); } return; }
protected override void OnTarget(Mobile from, object targeted) { if (targeted is Sheets) { Sheets sheets = (Sheets)targeted; from.SendMessage("You make the bed."); from.AddToBackpack(new Sheets(m_SleeperEWUsedAddon.Hue)); Point3D sleeploc = m_SleeperEWUsedAddon.Location; m_SleeperEWUsedAddon.Delete(); SleeperEWCleanableAddon bed = new SleeperEWCleanableAddon(); bed.Location = sleeploc; bed.MoveToWorld(sleeploc, from.Map); bed.Hue = sheets.Hue; sheets.Delete(); } else from.SendMessage("You should first put some clean sheets on the bed."); return; }
public override void Deserialize( GenericReader reader ) { base.Deserialize( reader ); int version = reader.ReadInt(); m_Sleeper = (SleeperEWCleanableAddon)reader.ReadItem(); }
public SleeperEWCleanablePiece( SleeperEWCleanableAddon sleeper, int itemid ) : base( itemid ) { m_Sleeper = sleeper; }
public SleeperEWCleanablePiece(SleeperEWCleanableAddon sleeper, int itemid) : base(itemid) { m_Sleeper = sleeper; }