Ejemplo n.º 1
0
        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);

            int version = reader.ReadInt();

            switch (version)
            {
            case 1:
                reader.ReadList(reader.ReadMobile <BloodoftheHydra>, _Bloods);
                goto case 0;

            case 0:
                _Moongate = reader.ReadItem <ExtEventMoongate>();
                break;
            }

            _FireBreathTimer = new FireBreathInternalTimer(this);
            _FireBreathTimer.Start();

            _WaterBreathTimer = new WaterBreathInternalTimer(this);
            _WaterBreathTimer.Start();

            _EarthBreathTimer = new EarthBreathInternalTimer(this);
            _EarthBreathTimer.Start();
        }
Ejemplo n.º 2
0
        public override void OnBeforeSpawn(Point3D location, Map m)
        {
            Notify.Broadcast <HydraMotMNotifyGump>(
                "The Monster of the Month, the Hydra, has spawned.[br]A moongate to his watery lair has been conjured at Britain bank.",
                true,
                1.0,
                10.0);

            _Moongate = new ExtEventMoongate(new Point3D(5997, 1473, 0), Map.Felucca)
            {
                Dispellable = false,
                Hue         = 1259,
                Name        = "To the Lair of the Hydra"
            };

            _Moongate.MoveToWorld(new Point3D(1411, 1716, 40), Map.Felucca);

            GlobalTownCrierEntryList.Instance.AddEntry(
                new[]
            {
                "Adventurers are needed! The Hydra has awakened in his watery lair!",
                "Please use the moongate located to the west of Britain bank and help vanquish this fiend!"
            },
                TimeSpan.FromMinutes(60));

            base.OnBeforeSpawn(location, m);
        }