WoW:API GetInventoryItemID: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
m (Move page script moved page API GetInventoryItemID to API GetInventoryItemID without leaving a redirect) |
||
(One intermediate revision by one other user not shown) | |||
Line 4: | Line 4: | ||
== Arguments == | == Arguments == | ||
;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 04:46, 15 August 2023
← 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.