API C_TransmogCollection.GetCategoryInfo

From Wowpedia
Jump to: navigation, search

Returns appearance category info applicable to the current class proficiencies, or nil for types that do not apply.

name, isWeapon, canEnchant, canMainHand, canOffHand = C_TransmogCollection.GetCategoryInfo(categoryID)

Arguments

categoryID 
number - See LuaEnum.lua or refer to the table below.

Returns

name 
string
isWeapon 
boolean
canEnchant 
boolean
canMainHand 
boolean
canOffHand 
boolean

Values

✔️ - returns true for all classes who may use this item

❔ - returns true for some classes who may use this item, false for others

Enum Value Usage isWeapon canEnchant canMainHand canOffHand
n/a
0
(Unobtainable)
LE_TRANSMOG_COLLECTION_TYPE_HEAD
1
Head
LE_TRANSMOG_COLLECTION_TYPE_SHOULDER
2
Shoulder
LE_TRANSMOG_COLLECTION_TYPE_BACK
3
Back
LE_TRANSMOG_COLLECTION_TYPE_CHEST
4
Chest
LE_TRANSMOG_COLLECTION_TYPE_SHIRT
5
Shirt
LE_TRANSMOG_COLLECTION_TYPE_TABARD
6
Tabard
LE_TRANSMOG_COLLECTION_TYPE_WRIST
7
Wrist
LE_TRANSMOG_COLLECTION_TYPE_HANDS
8
Hands
LE_TRANSMOG_COLLECTION_TYPE_WAIST
9
Waist
LE_TRANSMOG_COLLECTION_TYPE_LEGS
10
Legs
LE_TRANSMOG_COLLECTION_TYPE_FEET
11
Feet
LE_TRANSMOG_COLLECTION_TYPE_WAND
12
Wands
✔️
✔️
✔️
LE_TRANSMOG_COLLECTION_TYPE_1H_AXE
13
One-Handed Axes
✔️
✔️
✔️
LE_TRANSMOG_COLLECTION_TYPE_1H_SWORD
14
One-Handed Swords
✔️
✔️
✔️
LE_TRANSMOG_COLLECTION_TYPE_1H_MACE
15
One-Handed Maces
✔️
✔️
✔️
LE_TRANSMOG_COLLECTION_TYPE_DAGGER
16
Daggers
✔️
✔️
✔️
LE_TRANSMOG_COLLECTION_TYPE_FIST
17
Fist Weapons
✔️
✔️
✔️
✔️
LE_TRANSMOG_COLLECTION_TYPE_SHIELD
18
Shields
✔️
✔️
LE_TRANSMOG_COLLECTION_TYPE_HOLDABLE
19
Held In Off-hand
✔️
✔️
LE_TRANSMOG_COLLECTION_TYPE_2H_AXE
20
Two-Handed Axes
✔️
✔️
✔️
LE_TRANSMOG_COLLECTION_TYPE_2H_SWORD
21
Two-Handed Swords
✔️
✔️
✔️
LE_TRANSMOG_COLLECTION_TYPE_2H_MACE
22
Two-Handed Maces
✔️
✔️
✔️
LE_TRANSMOG_COLLECTION_TYPE_STAFF
23
Staves
✔️
✔️
✔️
LE_TRANSMOG_COLLECTION_TYPE_POLEARM
24
Polearms
✔️
✔️
✔️
LE_TRANSMOG_COLLECTION_TYPE_BOW
25
Bows
✔️
✔️
LE_TRANSMOG_COLLECTION_TYPE_GUN
26
Guns
✔️
✔️
LE_TRANSMOG_COLLECTION_TYPE_CROSSBOW
27
Crossbows
✔️
✔️
LE_TRANSMOG_COLLECTION_TYPE_WARGLAIVES
28
Warglaives
✔️
✔️
✔️
✔️
LE_TRANSMOG_COLLECTION_TYPE_PAIRED
29
Legion Artifacts
✔️
✔️
✔️

Patch changes