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); } } }
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 ); } }