public static void EthyDismount(Mobile m, bool clear) { IMount mount = m.Mount; if (mount != null && mount is EtherealMount && clear) { EtherealMount ethy = (EtherealMount)mount; ethy.Owner = null; } }
public static void DismountPlayer(Mobile m) { CleanClaimList(m); if (m.Mount is EtherealMount) { IMount mount = m.Mount; EtherealMount ethy = (EtherealMount)mount; Server.Mobiles.EtherealMount.Dismount(m); ethy.Owner = m; if (!Server.Misc.Worlds.InBuilding(m)) { m.SendMessage("Your mount has moved to your pack."); } } else if (m.Mount is BaseMount) { BaseCreature pet = (BaseCreature)(m.Mount); Server.Mobiles.BaseMount.Dismount(m); pet.ControlTarget = null; pet.Internalize(); pet.SetControlMaster(null); pet.SummonMaster = null; pet.IsStabled = true; pet.Loyalty = BaseCreature.MaxLoyalty; pet.Language = "mount"; m.Stabled.Add(pet); if (!Server.Misc.Worlds.InBuilding(m)) { m.SendMessage("Your mount is safely waiting for you elsewhere."); } } }
public EtherealSpell(EtherealMount mount, Mobile rider) : base(rider, null, m_Info) { m_Rider = rider; m_Mount = mount; }
public EtherealSpell( EtherealMount mount, Mobile rider ) : base(rider, null, m_Info) { m_Rider = rider; m_Mount = mount; }
public EtherealMountClone(EtherealMount original) : base(original.RegularID, original.MountedID) { foreach (var property in (typeof(EtherealMount)).GetProperties()) if (property.CanRead && property.CanWrite && property.Name != "Rider") property.SetValue(this, property.GetValue(original, null), null); }