TheDoc
Member
Shouldn't list.Clear() be safe to use to only remove item names from a list and not the actual item from game?
For example calling it here causes all items in pack to be deleted..
For example calling it here causes all items in pack to be deleted..
Code:
List<Server.Item> items = this.Backpack.Items;
for ( int i = items.Count - 1; i >= 0; --i )
{
Item item = (Item)items[i];
if ( item != null && item is BaseWeapon || item is BaseClothing || item is BaseArmor || item is BaseJewel )
{
Backpack.DropItem( item );
this.EquipItem(item);
}
}
items.Clear();
}