C_Transmog.GetSlotForInventoryType

From Warcraft Wiki
Jump to navigation Jump to search

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.