Namespaces

Variants
Actions

InventorySlotId

From Wowpedia
(Redirected from API TYPE InventorySlotID)
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

40 to 67 = the 28 bank slots 
68 = first bank bag slot
69 = second bank bag slot
70 = third bank bag slot
71 = fourth bank bag slot
72 = fifth bank bag slot
73 = sixth bank bag slot
74 = seventh bank bag slot