public virtual void DropBackpack() { if ( Backpack != null ) { if( Backpack.Items.Count > 0 ) { Backpack b = new CreatureBackpack( Name ); List<Item> list = new List<Item>( Backpack.Items ); foreach ( Item item in list ) { b.DropItem( item ); } BaseHouse house = BaseHouse.FindHouseAt( this ); if ( house != null ) b.MoveToWorld( house.BanLocation, house.Map ); else b.MoveToWorld( Location, Map ); } } }
public virtual void DropBackpack() { if ( Backpack != null ) { if( Backpack.Items.Count > 0 ) { Backpack b = new CreatureBackpack( Name ); List<Item> list = new List<Item>( Backpack.Items ); foreach ( Item item in list ) { b.DropItem( item ); } b.MoveToWorld( Location, Map ); } } }