public override void Deserialize(GenericReader reader) { base.Deserialize(reader); reader.ReadInt(); m_PerfectBlackPearl = reader.ReadItem() as SorcerersPlate; m_BurstingBrimstone = reader.ReadItem() as SorcerersPlate; m_BrightDaemonBlood = reader.ReadItem() as SorcerersPlate; m_MightyMandrake = reader.ReadItem() as SorcerersPlate; m_BurlyBone = reader.ReadItem() as SorcerersPlate; }
private static void Clear(SorcerersPlate plate) { if (plate != null) { Effects.SendBoltEffect(plate); if (plate.Reg != null) { plate.Reg.Delete(); } plate.Delete(); } }
public void CreateSorcerersPlates() { m_BrightDaemonBlood = new SorcerersPlate(this, SorcerersPlate.RegsType.BrightDaemonBlood); m_BrightDaemonBlood.MoveToWorld(new Point3D(101, 45, -22), Map.Ilshenar); m_BurlyBone = new SorcerersPlate(this, SorcerersPlate.RegsType.BurlyBone); m_BurlyBone.MoveToWorld(new Point3D(101, 43, -22), Map.Ilshenar); m_BurstingBrimstone = new SorcerersPlate(this, SorcerersPlate.RegsType.BurstingBrimstone); m_BurstingBrimstone.MoveToWorld(new Point3D(101, 46, -22), Map.Ilshenar); m_MightyMandrake = new SorcerersPlate(this, SorcerersPlate.RegsType.MightyMandrake); m_MightyMandrake.MoveToWorld(new Point3D(101, 44, -22), Map.Ilshenar); m_PerfectBlackPearl = new SorcerersPlate(this, SorcerersPlate.RegsType.PerfectBlackPearl); m_PerfectBlackPearl.MoveToWorld(new Point3D(101, 47, -22), Map.Ilshenar); }
public override void Deserialize(GenericReader reader) { base.Deserialize(reader); int version = reader.ReadInt(); switch (version) { case 0: { m_PerfectBlackPearl = reader.ReadItem() as SorcerersPlate; m_BurstingBrimstone = reader.ReadItem() as SorcerersPlate; m_BrightDaemonBlood = reader.ReadItem() as SorcerersPlate; m_MightyMandrake = reader.ReadItem() as SorcerersPlate; m_BurlyBone = reader.ReadItem() as SorcerersPlate; break; } } }
private static bool Validate(SorcerersPlate plate) { return(plate != null && plate.Reg != null && !plate.Reg.Deleted); }
public RegsTarget(Mobile from, SorcerersPlate plate) : base(2, false, TargetFlags.None) { from.SendLocalizedMessage(1154254); // What do you wish to put on the plate? m_from = from; m_Plate = plate; }