Wikia

WoWWiki

API GetInventoryItemID

Talk0
102,281pages on
this wiki
Revision as of 13:42, June 27, 2010 by Ziljin (Talk | contribs)

WoW API < GetInventoryItemID

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

itemId = GetInventoryItemID("unit", invSlot);

Arguments

("unit", slotId)

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.

Around Wikia's network

Random Wiki