Wikia

WoWWiki

Changes: API GetInventoryItemID

Edit

Back to page

m
 
Line 4: Line 4:
   
 
== Arguments ==
 
== Arguments ==
("unit", slotId)
 
 
 
;unit : String - The [[API TYPE UnitId|UnitId]] of the unit whose inventory is to be queried.
 
;unit : String - The [[API TYPE UnitId|UnitId]] of the unit whose inventory is to be queried.
 
;invSlot : Number ([[InventorySlotId]]) - index of the inventory slot to query.
 
;invSlot : Number ([[InventorySlotId]]) - index of the inventory slot to query.

Latest revision as of 08:41, June 28, 2010

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.

Around Wikia's network

Random Wiki