Fandom

WoWWiki

API GetInventoryItemID

104,632pages on
this wiki
Add New Page
Talk0 Share

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.

WoW API < GetInventoryItemID

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

itemId = GetInventoryItemID("unit", invSlot);

Arguments Edit

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

Returns Edit

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

Also on Fandom

Random Wiki