示例#1
0
        public static void ClearHand(this Mobile m, Item item)
        {
            if (item != null && item.Movable && !item.AllowEquipedCast(m))
            {
                Container pack = m.Backpack;

                if (pack == null)
                {
                    m.AddToBackpack(item);
                }
                else
                {
                    pack.DropItem(item);
                }
            }
        }
示例#2
0
        public virtual void ClearHand( Item item )
        {
            if ( item != null && item.Movable && !item.AllowEquipedCast( this ) )
            {
                Container pack = this.Backpack;

                if ( pack == null )
                    AddToBackpack( item );
                else
                    pack.DropItem( item );
            }
        }