L2Item item_templ = ItemTable.getInstance().getTemplate(item.getItemId());
if(!player.getInventory().validateCapacity(item_templ))
DropItem(player, item);
else
player.doAutoLoot(this, item); // Give this or these Item(s) to the L2PcInstance that has killed the L2Attackable
}
else
{
DropItem(player, item); // drop the item on the ground
}