Inheritance: Item, IMount, IMountItem, Engines.VeteranRewards.IRewardItem
Esempio n. 1
0
        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;
            }
        }
Esempio n. 2
0
        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.");
                }
            }
        }
Esempio n. 3
0
 public EtherealSpell(EtherealMount mount, Mobile rider)
     : base(rider, null, m_Info)
 {
     m_Rider = rider;
     m_Mount = mount;
 }
Esempio n. 4
0
 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);
 }