The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
Every item returned from GetItemInfo () has a type and subtype. It's preferable to use the item classID (since they match the item enums) instead of the localized itemType strings.
GetItemInfo
itemType, itemSubType, _, _, _, _, classID, subclassID = select(6, GetItemInfo(itemID))
6. itemType
string - The localized type of the item.
7. itemSubType
string - The localized sub-type of the item.
12. classID
number - The class ID of the item.
13. subclassID
number - The subclass ID of the item.
Item Type
Enum.ItemClass
Key
classID
itemType (enUS)
SubType Enum
Description
Consumable
0
Consumable
Enum.ItemConsumableSubclass
Container
1
Container
Weapon
2
Weapon
Enum.ItemWeaponSubclass
Gem
3
Gem
Enum.ItemGemSubclass
Armor
4
Armor
Enum.ItemArmorSubclass
Reagent
5
Reagent
Enum.ItemReagentSubclass
Obsolete
Projectile
6
Projectile
Obsolete
Tradegoods
7
Tradeskill
ItemEnhancement
8
Item Enhancement
Recipe
9
Recipe
Enum.ItemRecipeSubclass
CurrencyTokenObsolete
10
Money (OBSOLETE)
Quiver
11
Quiver
Obsolete
Questitem
12
Quest
Key
13
Key
PermanentObsolete
14
Permanent(OBSOLETE)
Miscellaneous
15
Miscellaneous
Enum.ItemMiscellaneousSubclass
Glyph
16
Glyph
Battlepet
17
Battle Pets
Enum.BattlePetTypes
WoWToken
18
WoW Token
Profession
19
Profession
Enum.ItemProfessionSubclass
Added in 10.0.0
Example:
/ dump Enum . ItemClass . Battlepet -- 17
Item Subtype
Note: All (localized) type names are spelled verbatim.
0: Consumable
Warning : The ItemConsumableSubclass enums actually have the wrong values (Issue #218 ).
1: Container
2: Weapon
3: Gem
4: Armor
5: Reagent
- For crafting reagents see 7: Tradeskill. For spell reagents see 15: Miscellaneous.
Enum.ItemReagentSubclass
Key
subclassID
itemSubType (enUS)
Description
Reagent
0
Reagent
Keystone
1
Keystone
ContextToken
2
Context Token
6: Projectile
subclassID
itemSubType (enUS)
Description
0
Wand(OBSOLETE)
1
Bolt(OBSOLETE)
2
Arrow
3
Bullet
4
Thrown (OBSOLETE)
7: Tradeskill
8: Item Enhancement
9: Recipe
10: Money (Obsolete)
subclassID
itemSubType (enUS)
Description
0
Money(OBSOLETE)
11: Quiver
subclassID
itemSubType (enUS)
Description
0
Quiver(OBSOLETE)
1
Bolt(OBSOLETE)
2
Quiver
3
Ammo Pouch
12: Quest
subclassID
itemSubType (enUS)
Description
0
Quest
13: Key
subclassID
itemSubType (enUS)
Description
0
Key
1
Lockpick
14: Permanent (Obsolete)
subclassID
itemSubType (enUS)
Description
0
Permanent
15: Miscellaneous
Enum.ItemMiscellaneousSubclass
Key
subclassID
itemSubType (enUS)
Description
Junk
0
Junk
Reagent
1
Reagent
Mainly spell reagents. For crafting reagents see 7: Tradeskill.
CompanionPet
2
Companion Pets
Holiday
3
Holiday
Other
4
Other
Mount
5
Mount
MountEquipment
6
Mount Equipment
16: Glyph
17: Battle Pets
18: WoW Token
subclassID
itemSubType (enUS)
Description
0
WoW Token
19: Profession
Enum.ItemProfessionSubclass
Key
subclassID
itemSubType (enUS)
Description
Blacksmithing
0
Blacksmithing
Leatherworking
1
Leatherworking
Alchemy
2
Alchemy
Herbalism
3
Herbalism
Cooking
4
Cooking
Mining
5
Mining
Tailoring
6
Tailoring
Engineering
7
Engineering
Enchanting
8
Enchanting
Fishing
9
Fishing
Skinning
10
Skinning
Jewelcrafting
11
Jewelcrafting
Inscription
12
Inscription
Archaeology
13
Archaeology
Patch changes
Patch 10.0.0 (2022-10-25): Added Enum.ItemClass.Profession
.
Patch 9.1.0 (2021-06-29): Changed from LE_
Lua Enums to the Enum
table.
See also