Wowpedia

We have moved to Warcraft Wiki. Click here for information and the new URL.

READ MORE

Wowpedia
Advertisement

Returns the equipment slot for an inventory type.

slot = C_Transmog.GetSlotForInventoryType(inventoryType)

Arguments[]

inventoryType
number : Enum.InventoryType

Returns[]

slot
number - The equipmentSlot for an inventory type.

Values[]

Note
Note: This function uses Enum.InventoryType off-by-one; 1-29 instead of 0-28
InvType InvTypeName InvSlotId InvSlotName
2 IndexHeadType 1 HEADSLOT
4 IndexShoulderType 3 SHOULDERSLOT
5 IndexBodyType 4 SHIRTSLOT
6 IndexChestType 5 CHESTSLOT
7 IndexWaistType 6 WAISTSLOT
8 IndexLegsType 7 LEGSSLOT
9 IndexFeetType 8 FEETSLOT
10 IndexWristType 9 WRISTSLOT
11 IndexHandType 10 HANDSSLOT
14 IndexWeaponType 16 MAINHANDSLOT
15 IndexShieldType 17 SECONDARYHANDSLOT
16 IndexRangedType 16 MAINHANDSLOT
17 IndexCloakType 15 BACKSLOT
18 Index2HweaponType 16 MAINHANDSLOT
20 IndexTabardType 19 TABARDSLOT
21 IndexRobeType 5 CHESTSLOT
22 IndexWeaponmainhandType 16 MAINHANDSLOT
23 IndexWeaponoffhandType 16 MAINHANDSLOT
24 IndexHoldableType 17 SECONDARYHANDSLOT
27 IndexRangedrightType 16 MAINHANDSLOT

Patch changes[]

Legion Patch 7.2.0 (2017-03-28): Added.

Advertisement