Beispiel #1
0
        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);
            int version = reader.ReadInt();

            Drakes = new List <VileDrake>();
            Bells  = new List <Item>();

            Dragon = reader.ReadMobile() as ShadowguardGreaterDragon;

            int count = reader.ReadInt();

            for (int i = 0; i < count; i++)
            {
                VileDrake d = reader.ReadMobile() as VileDrake;

                if (d != null)
                {
                    Drakes.Add(d);
                }
            }

            count = reader.ReadInt();

            for (int i = 0; i < count; i++)
            {
                FeedingBell b = reader.ReadItem() as FeedingBell;

                if (b != null)
                {
                    Bells.Add(b);
                }
            }

            if (Dragon == null || Dragon.Deleted)
            {
                Expire();
            }
        }
Beispiel #2
0
        public override void Setup()
        {
            Drakes = new List <VileDrake>();
            Bells  = new List <Item>();

            Point3D p = SpawnPoints[0];

            ConvertOffset(ref p);

            Dragon = new ShadowguardGreaterDragon();
            Dragon.MoveToWorld(p, Map.TerMur);

            FeedingBell bell = new FeedingBell();

            p = new Point3D(16, 6, 0);
            ConvertOffset(ref p);
            bell.MoveToWorld(p, Map.TerMur);
            Bells.Add(bell);

            bell = new FeedingBell();
            p    = new Point3D(16, -7, 0);
            ConvertOffset(ref p);
            bell.MoveToWorld(p, Map.TerMur);
            Bells.Add(bell);

            bell = new FeedingBell();
            p    = new Point3D(-20, -7, 0);
            ConvertOffset(ref p);
            bell.MoveToWorld(p, Map.TerMur);
            Bells.Add(bell);

            bell = new FeedingBell();
            p    = new Point3D(-20, 6, 0);
            ConvertOffset(ref p);
            bell.MoveToWorld(p, Map.TerMur);
            Bells.Add(bell);
        }