if(index == SLOT_LEFT || index == SLOT_RIGHT)
{
if(ret == RET_NOERROR && item->getWeaponType()!= WEAPON_NONE)
self->setLastAttack(OTSYS_TIME());
Item* tmpItem = inventory[(slots_t)index];
if(ret == RET_BOTHHANDSNEEDTOBEFREE && g_game.internalAddItem(
NULL,self, tmpItem, INDEX_WHEREEVER)== RET_NOERROR)
{
self->sendRemoveInventoryItem((slots_t)index, tmpItem);
self->onRemoveInventoryItem((slots_t)index, tmpItem);
self->inventory[(slots_t)index]= NULL;
self->updateWeapon();
self->inventoryWeight -= tmpItem->getWeight();
self->sendStats();
}
}