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