Lore archive · Warcraft Wiki, 2023 dump
ItemType
Last wiki revision 2023-10-29
Every item returned from 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.
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.
Example:
The ItemConsumableSubclass enums actually have the wrong values (Issue #218).
- For crafting reagents see 7: Tradeskill. For spell reagents see 15: Miscellaneous.
- - Returns item class names.
- - Returns item subclass names.
- - Returns valid item subclasses for the Auction House.
Source
https://warcraft.wiki.gg/wiki/ItemType · retrieved 2023-11-13 · CC BY-SA 4.0
Converted from wikitext with templates, tables and images removed, so some sentences may be missing values.
This archive predates WoW: Forever. For collected gameplay facts see the Forever database. Search the archive.