This article is a World of Warcraft API stub. You can help expand it by editing it

InventorySlotId

From Wowpedia
Jump to: navigation, search

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. These can be used for commands such as UseInventoryItem and PickupInventoryItem.

Graphical Explanation

Regular inventory items

The current IDs for Inventory Slots are (see FrameXML\Constants.lua):

INVSLOT_AMMO = 0
INVSLOT_HEAD = 1
INVSLOT_NECK = 2
INVSLOT_SHOULDER = 3
INVSLOT_BODY = 4 (shirt)
INVSLOT_CHEST = 5
INVSLOT_WAIST = 6
INVSLOT_LEGS = 7
INVSLOT_FEET = 8
INVSLOT_WRIST = 9
INVSLOT_HAND = 10
INVSLOT_FINGER1 = 11
INVSLOT_FINGER2 = 12
INVSLOT_TRINKET1 = 13
INVSLOT_TRINKET2 = 14
INVSLOT_BACK = 15
INVSLOT_MAINHAND = 16
INVSLOT_OFFHAND = 17
INVSLOT_RANGED = 18
INVSLOT_TABARD = 19
CONTAINER_BAG_OFFSET+1 = 20 (first bag, the rightmost one)
CONTAINER_BAG_OFFSET+2 = 21 (second bag)
CONTAINER_BAG_OFFSET+3 = 22 (third bag)
CONTAINER_BAG_OFFSET+4 = 23 (fourth bag, the leftmost one)

When bank frame is open

48 to 75 = the 28 bank slots 
76 = first bank bag slot
77 = second bag slot
78 = third bag slot
79 = fourth bag slot
80 = fifth bag slot
81 = sixth bag slot
82 = seventh bag slot