Esempio n. 1
0
 public override void OnDeath(Mobile m)
 {
     if (VerLorRegController.Mobile != null && VerLorRegController.Mobile == m)
     {
         VerLorRegController.Stop();
         new ExitTimer(this).Start();
     }
 }
Esempio n. 2
0
 public static void Initialize()
 {
     if (IlshenarInstance == null)
     {
         IlshenarInstance = new VerLorRegController(Map.Ilshenar);
         IlshenarInstance.MoveToWorld(new Point3D(849, 648, -40), Map.Ilshenar);
     }
 }
Esempio 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();
        }
Esempio 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;
            }
        }
Esempio 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();
        }