示例#1
0
        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;
        }
示例#2
0
        private static void Clear(SorcerersPlate plate)
        {
            if (plate != null)
            {
                Effects.SendBoltEffect(plate);

                if (plate.Reg != null)
                {
                    plate.Reg.Delete();
                }

                plate.Delete();
            }
        }
示例#3
0
        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);
        }
示例#4
0
        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;
            }
            }
        }
示例#5
0
 private static bool Validate(SorcerersPlate plate)
 {
     return(plate != null && plate.Reg != null && !plate.Reg.Deleted);
 }
示例#6
0
 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;
 }