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