Example #1
0
        public virtual void SendBattleground(Mobile from)
        {
            if (VerLorRegController.Active && VerLorRegController.Mobile != null && ExodusSummoningAlter.CheckExodus())
            {
                // teleport party member
                from.FixedParticles(0x376A, 9, 32, 0x13AF, EffectLayer.Waist);
                from.PlaySound(0x1FE);
                from.MoveToWorld(m_TeleportDest, Map.Ilshenar);
                BaseCreature.TeleportPets(from, m_TeleportDest, Map.Ilshenar);

                // Robe of Rite Delete
                RobeofRite robe = from.FindItemOnLayer(Layer.OuterTorso) as RobeofRite;

                if (robe != null)
                {
                    robe.Delete();
                }

                // Altar Delete
                Timer.DelayCall(TimeSpan.FromSeconds(2), new TimerCallback(Delete));
            }
            else
            {
                from.SendLocalizedMessage(1075213); // The master of this realm has already been summoned and is engaged in combat.  Your opportunity will come after he has squashed the current batch of intruders!
            }
        }
Example #2
0
        public virtual void BeginSequence(Mobile from)
        {
            if (VerLorRegController.Active && VerLorRegController.Mobile != null && ExodusSummoningAlter.CheckExodus())
            {
                // teleport figters
                for (int i = 0; i < this.m_Fighters.Count; i++)
                {
                    Mobile fighter = this.m_Fighters[i];
                    int    counter = 1;

                    if (from.InRange(fighter.Location, 5) && this.CanEnter(fighter))
                    {
                        Timer.DelayCall(TimeSpan.FromSeconds(counter), new TimerStateCallback(Enter_Callback), fighter);

                        counter += 1;
                    }
                }
            }
            else
            {
                from.SendLocalizedMessage(1075213); // The master of this realm has already been summoned and is engaged in combat.  Your opportunity will come after he has squashed the current batch of intruders!
            }
        }