WoW:InventorySlotId: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
mNo edit summary
(Move slot list to API TYPE InventorySlotID/Slots so it can be pulled into e.g. InventorySlots)
Line 1: Line 1:
{{wowapitype}}
You may obtain the IDs either by calling [[API GetInventorySlotInfo|GetInventorySlotInfo]] or from the table below.
You may obtain the IDs either by calling [[API GetInventorySlotInfo|GetInventorySlotInfo]] or from the table below.


The IDs for Inventory Slots are:
* 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.   This list is only meant to be used as a reference for reverse mapping while debugging, or possibly for use in [[macro]]s.
<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>
20 = first bag (the most at right)<br>
21 = second bag<br>
22 = third bag<br>
23 = fourth bag (the most at left)<br>


'''THEN WHEN THE BANK FRAME IS OPENED :'''<br>
The current IDs for Inventory Slots are:
40 to 63 = the 24 bank slots<br>
64 = first bank bag<br>
65 = second bank bag<br>
66 = third bank bag<br>
67 = fourth bank bag<br>
68 = fifth bank bag<br>
69 = sixth bank bag<br>


----
{{:API TYPE InventorySlotID/Slots}}
{{WoW API}}

Revision as of 05:58, 8 July 2006

API types

You may obtain the IDs either by calling GetInventorySlotInfo 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.


The current IDs for Inventory Slots are:

API TYPE InventorySlotID/Slots