GetInventoryItemID

From Warcraft Wiki
Jump to navigation Jump to search
Flavors
Links
Info
Added in 3.1.0 / 1.13.2

Returns the item ID for an equipped item.

itemId, unknown = GetInventoryItemID(unit, invSlotId)

Arguments

unit
string : UnitId - The unit whose inventory is to be queried.
invSlotId
number : InventorySlotId - to be queried, obtained via GetInventorySlotInfo.

Returns

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