Ejemplo n.º 1
0
 public override void OnDeath(Mobile m)
 {
     if (VerLorRegController.Mobile != null && VerLorRegController.Mobile == m)
     {
         VerLorRegController.Stop();
         new ExitTimer(this).Start();
     }
 }
Ejemplo n.º 2
0
 public static void Initialize()
 {
     if (IlshenarInstance == null)
     {
         IlshenarInstance = new VerLorRegController(Map.Ilshenar);
         IlshenarInstance.MoveToWorld(new Point3D(849, 648, -40), Map.Ilshenar);
     }
 }
Ejemplo n.º 3
0
        public void MoveLocation()
        {
            foreach (Mobile m in GetEnumeratedMobiles().Where(m => m is PlayerMobile && m.AccessLevel == AccessLevel.Player))
            {
                Point3D p = Random_Locations[Utility.Random(Random_Locations.Length)];

                m.MoveToWorld(p, m.Map);
                BaseCreature.TeleportPets(m, p, m.Map);
            }

            VerLorRegController.Start();
        }
Ejemplo n.º 4
0
        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);
            int version = reader.ReadInt();

            m_Active = reader.ReadBool();
            m_Mobile = (ClockworkExodus)reader.ReadMobile();

            if (Map == Map.Ilshenar)
            {
                IlshenarInstance = this;
            }
        }
Ejemplo n.º 5
0
        public void MoveLocation()
        {
            foreach (Mobile m in GetEnumeratedMobiles())
            {
                if (m is PlayerMobile pm && m.AccessLevel == AccessLevel.Player)
                {
                    Point3D p = Random_Locations[Utility.Random(Random_Locations.Length)];

                    m.MoveToWorld(p, m.Map);

                    if (pm.AllFollowers.Count > 0)
                    {
                        for (var index = 0; index < pm.AllFollowers.Count; index++)
                        {
                            Mobile mob = pm.AllFollowers[index];

                            mob.MoveToWorld(p, m.Map);
                        }
                    }
                }
            }

            VerLorRegController.Start();
        }