Method PlayerBotAI:CanEquipItem [-] [+]
Checks whether the bot could equip the given Item in the given slot.
Synopsis
inventoryResult, dest = PlayerBotAI:CanEquipItem( slot, item )
inventoryResult, dest = PlayerBotAI:CanEquipItem( slot, item, swap )
inventoryResult, dest = PlayerBotAI:CanEquipItem( slot, item, swap, notLoading )
Arguments
number slotValid numbers: integers from 0 to 255.
Item item- See method description.
boolean swap (false)- See method description.
boolean notLoading (true)- See method description.
Returns
number inventoryResult0 when the item can be equipped.
Valid numbers: integers from 0 to 4,294,967,295.
number destThe destination slot the item would go to.
Valid numbers: integers from 0 to 65,535.