WoW:InventorySlotId: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
No edit summary
m (Move page script moved page InventorySlotId to InventorySlotId without leaving a redirect)
 
(7 intermediate revisions by 7 users not shown)
Line 1: Line 1:
You may obtain the IDs either by calling [[API GetInventorySlotInfo|GetInventorySlotInfo]] or from the table below.
{{stub/API}}
{{wowapitype}}


The IDs for Inventory Slots are:
You may obtain the IDs either by calling [[API GetInventorySlotInfo|GetInventorySlotInfo]], [[API ContainerIDToInventoryID|ContainerIDToInventoryID]], or from the table below.
<br>
0 = ammo<br>
1 = head<br>
2 = neck<br>
3 = shoulder<br>
4 = shirt<br>
5 = chest<br>
6 = belt<br>
7 = legs<br>
8 = feet<br>
9 = wrist<br>
10 = gloves<br>
11 = finger 1<br>
12 = finger 2<br>
13 = trinket 1<br>
14 = trinket 2<br>
15 = back<br>
16 = main hand<br>
17 = off hand<br>
18 = ranged<br>
19 = tabard<br>


* Note that you should never use these values in AddOns, since they may change. Use [[API GetInventorySlotInfo|GetInventorySlotInfo]] ([[API TYPE InventorySlotName|invSlotName]]) to get the current mapping. &nbsp; This list is only meant to be used as a reference for reverse mapping while debugging, or possibly for use in [[macro]]s.


----
[[Image:InventorySlots.jpg|thumb|Graphical Explanation]]
{{WoW API}}
 
The current IDs for Inventory Slots are:
 
{{:API TYPE InventorySlotID/Slots}}

Latest revision as of 04:48, 15 August 2023

API types

You may obtain the IDs either by calling GetInventorySlotInfo, ContainerIDToInventoryID, or from the table below.

  • Note that you should never use these values in AddOns, since they may change. Use GetInventorySlotInfo (invSlotName) to get the current mapping.   This list is only meant to be used as a reference for reverse mapping while debugging, or possibly for use in macros.
File:InventorySlots.jpg
Graphical Explanation

The current IDs for Inventory Slots are:

API TYPE InventorySlotID/Slots