native UnitAddItemToSlotById takes unit whichUnit, integer itemId, integer itemSlot returns boolean
function UnitAddItemToSlot takes unit whichUnit, item whichItem, integer slot returns boolean if UnitAddItem(whichUnit, whichItem) then return UnitDropItemSlot(whichUnit, whichItem, slot) endif return false endfunction