Wowpedia
Advertisement
Wowpedia
240,495
pages
Game Flavors
Links
Patch
Added in 3.1.0 / 1.13.2

Returns the item id of the item in the specified inventory slot

itemId, unknown = GetInventoryItemID("unit", invSlot);

Arguments

unit 
string - The UnitId of the unit whose inventory is to be queried.
invSlot 
Number (InventorySlotId) - index of the inventory slot to query.

Returns

itemId 
number - item id of the item in the inventory slot; nil if there is no item.
unknown 
number - ?
Advertisement