Esempio n. 1
0
        public virtual void BeginSequence(Mobile from)
        {
            if (Peerless == null)
            {
                // spawn boss
                Peerless = Boss;

                if (Peerless == null)
                {
                    return;
                }

                Peerless.Home      = BossLocation;
                Peerless.RangeHome = 12;
                Peerless.MoveToWorld(BossLocation, Map);
                Peerless.Altar = this;

                StartSlayTimer();
            }

            // teleport fighters
            Fighters.ForEach(x =>
            {
                int counter = 0;

                if (x.InRange(from.Location, 15) && CanEnter(x))
                {
                    Timer.DelayCall(TimeSpan.FromSeconds(counter++), () => { Enter(x); });
                }
            });
        }
Esempio n. 2
0
        public virtual void SpawnBoss()
        {
            if (Peerless == null)
            {
                // spawn boss
                Peerless = Boss;

                if (Peerless == null)
                {
                    return;
                }

                Peerless.Home      = BossLocation;
                Peerless.RangeHome = 12;
                Peerless.MoveToWorld(BossLocation, Map);
                Peerless.Altar = this;

                StartSlayTimer();
            }
        }