(update for 9.1.0 enums) Tag: WoW API docs |
mNo edit summary Tag: WoW API docs |
||
Line 59: | Line 59: | ||
{| class="sortable darktable zebra col1-center" |
{| class="sortable darktable zebra col1-center" |
||
|+ Enum.ItemConsumableSubclass |
|+ Enum.ItemConsumableSubclass |
||
− | ! Key !! subclassID !! itemSubType !! Description |
+ | ! Key !! subclassID !! itemSubType !! Description |
|- |
|- |
||
| Generic || 0 || [[Explosive|Explosives and Devices]] || |
| Generic || 0 || [[Explosive|Explosives and Devices]] || |
||
Line 80: | Line 80: | ||
=== 1: Container === |
=== 1: Container === |
||
{| class="sortable darktable zebra col1-center" |
{| class="sortable darktable zebra col1-center" |
||
− | ! subclassID !! itemSubType !! Description |
+ | ! subclassID !! itemSubType !! Description |
|- |
|- |
||
| 0 || [[Bag]] || |
| 0 || [[Bag]] || |
||
Line 108: | Line 108: | ||
{| class="sortable darktable zebra col2-center" |
{| class="sortable darktable zebra col2-center" |
||
|+ Enum.ItemWeaponSubclass |
|+ Enum.ItemWeaponSubclass |
||
− | ! Key !! subclassID !! itemSubType !! Description |
+ | ! Key !! subclassID !! itemSubType !! Description |
|- |
|- |
||
| Axe1H || 0 || [[Axe|One-Handed Axes]] || |
| Axe1H || 0 || [[Axe|One-Handed Axes]] || |
||
Line 156: | Line 156: | ||
{| class="sortable darktable zebra col2-center" |
{| class="sortable darktable zebra col2-center" |
||
|+ Enum.ItemGemSubclass |
|+ Enum.ItemGemSubclass |
||
− | ! Key !! subclassID !! itemSubType !! Description |
+ | ! Key !! subclassID !! itemSubType !! Description |
|- |
|- |
||
| Intellect || 0 || [[Intellect]] || |
| Intellect || 0 || [[Intellect]] || |
||
Line 186: | Line 186: | ||
{| class="sortable darktable zebra col2-center" |
{| class="sortable darktable zebra col2-center" |
||
|+ Enum.ItemArmorSubclass |
|+ Enum.ItemArmorSubclass |
||
− | ! Key !! subclassID !! itemSubType !! Description |
+ | ! Key !! subclassID !! itemSubType !! Description |
|- |
|- |
||
| Generic || 0 || Miscellaneous || Includes [[Spellstone]]s, [[Firestone (item)|Firestone]]s, Trinkets, Rings and Necks |
| Generic || 0 || Miscellaneous || Includes [[Spellstone]]s, [[Firestone (item)|Firestone]]s, Trinkets, Rings and Necks |
||
Line 217: | Line 217: | ||
{| class="sortable darktable zebra col1-center" |
{| class="sortable darktable zebra col1-center" |
||
|+ Enum.ItemReagentSubclass |
|+ Enum.ItemReagentSubclass |
||
− | ! Key !! subclassID !! itemSubType !! Description |
+ | ! Key !! subclassID !! itemSubType !! Description |
|- |
|- |
||
| Reagent || 0 || Reagent || |
| Reagent || 0 || Reagent || |
||
Line 229: | Line 229: | ||
=== 6: Projectile === |
=== 6: Projectile === |
||
{| class="sortable darktable zebra col1-center" |
{| class="sortable darktable zebra col1-center" |
||
− | ! subclassID !! itemSubType !! Description |
+ | ! subclassID !! itemSubType !! Description |
|- |
|- |
||
| 0 || Wand(OBSOLETE) || |
| 0 || Wand(OBSOLETE) || |
||
Line 244: | Line 244: | ||
=== 7: Tradeskill === |
=== 7: Tradeskill === |
||
{| class="sortable darktable zebra col1-center" |
{| class="sortable darktable zebra col1-center" |
||
− | ! subclassID !! itemSubType !! Description |
+ | ! subclassID !! itemSubType !! Description |
|- |
|- |
||
| 0 || [[Trade Goods]] (OBSOLETE) || |
| 0 || [[Trade Goods]] (OBSOLETE) || |
||
Line 285: | Line 285: | ||
=== 8: Item Enhancement === |
=== 8: Item Enhancement === |
||
{| class="sortable darktable zebra col1-center" |
{| class="sortable darktable zebra col1-center" |
||
− | ! subclassID !! itemSubType !! Description |
+ | ! subclassID !! itemSubType !! Description |
|- |
|- |
||
| 0 || [[Equipment_slot#Head|Head]] || |
| 0 || [[Equipment_slot#Head|Head]] || |
||
Line 321: | Line 321: | ||
{| class="sortable darktable zebra col2-center" |
{| class="sortable darktable zebra col2-center" |
||
|+ Enum.ItemRecipeSubclass |
|+ Enum.ItemRecipeSubclass |
||
− | ! Key !! subclassID !! itemSubType !! Description |
+ | ! Key !! subclassID !! itemSubType !! Description |
|- |
|- |
||
| Book || 0 || [[Book]] || |
| Book || 0 || [[Book]] || |
||
Line 350: | Line 350: | ||
=== 10: Money(OBSOLETE) === |
=== 10: Money(OBSOLETE) === |
||
{| class="sortable darktable zebra col1-center" |
{| class="sortable darktable zebra col1-center" |
||
− | ! subclassID !! itemSubType !! Description |
+ | ! subclassID !! itemSubType !! Description |
|- |
|- |
||
| 0 || Money(OBSOLETE) || |
| 0 || Money(OBSOLETE) || |
||
Line 357: | Line 357: | ||
=== 11: Quiver === |
=== 11: Quiver === |
||
{| class="sortable darktable zebra col1-center" |
{| class="sortable darktable zebra col1-center" |
||
− | ! subclassID !! itemSubType !! Description |
+ | ! subclassID !! itemSubType !! Description |
|- |
|- |
||
| 0 || Quiver(OBSOLETE) || |
| 0 || Quiver(OBSOLETE) || |
||
Line 370: | Line 370: | ||
=== 12: Quest === |
=== 12: Quest === |
||
{| class="sortable darktable zebra col1-center" |
{| class="sortable darktable zebra col1-center" |
||
− | ! subclassID !! itemSubType !! Description |
+ | ! subclassID !! itemSubType !! Description |
|- |
|- |
||
| 0 || [[Quest]] || |
| 0 || [[Quest]] || |
||
Line 377: | Line 377: | ||
=== 13: Key === |
=== 13: Key === |
||
{| class="sortable darktable zebra col1-center" |
{| class="sortable darktable zebra col1-center" |
||
− | ! subclassID !! itemSubType !! Description |
+ | ! subclassID !! itemSubType !! Description |
|- |
|- |
||
| 0 || [[Key]] || |
| 0 || [[Key]] || |
||
Line 386: | Line 386: | ||
=== 14: Permanent(OBSOLETE) === |
=== 14: Permanent(OBSOLETE) === |
||
{| class="sortable darktable zebra col1-center" |
{| class="sortable darktable zebra col1-center" |
||
− | ! subclassID !! itemSubType !! Description |
+ | ! subclassID !! itemSubType !! Description |
|- |
|- |
||
| 0 || Permanent || |
| 0 || Permanent || |
||
Line 394: | Line 394: | ||
{| class="sortable darktable zebra col2-center" |
{| class="sortable darktable zebra col2-center" |
||
|+ Enum.ItemMiscellaneousSubclass |
|+ Enum.ItemMiscellaneousSubclass |
||
− | ! Key !! subclassID !! itemSubType !! Description |
+ | ! Key !! subclassID !! itemSubType !! Description |
|- |
|- |
||
| Junk || 0 || [[Junk]] || |
| Junk || 0 || [[Junk]] || |
||
Line 413: | Line 413: | ||
=== 16: Glyph === |
=== 16: Glyph === |
||
{| class="sortable darktable zebra col1-center" |
{| class="sortable darktable zebra col1-center" |
||
− | ! subclassID !! itemSubType !! Description |
+ | ! subclassID !! itemSubType !! Description |
|- |
|- |
||
| 1 || [[Warrior]] || |
| 1 || [[Warrior]] || |
||
Line 443: | Line 443: | ||
{| class="sortable darktable zebra col1-center" |
{| class="sortable darktable zebra col1-center" |
||
|+ Enum.BattlePetTypes |
|+ Enum.BattlePetTypes |
||
− | ! Key !! subclassID !! itemSubType !! Description |
+ | ! Key !! subclassID !! itemSubType !! Description |
|- |
|- |
||
| Humanoid || 0 || [[Humanoid_companions|Humanoid]] || |
| Humanoid || 0 || [[Humanoid_companions|Humanoid]] || |
||
Line 468: | Line 468: | ||
=== 18: WoW Token === |
=== 18: WoW Token === |
||
{| class="sortable darktable zebra col1-center" |
{| class="sortable darktable zebra col1-center" |
||
− | ! subclassID !! itemSubType !! Description |
+ | ! subclassID !! itemSubType !! Description |
|- |
|- |
||
| 0 || [[:WoW Token]] || |
| 0 || [[:WoW Token]] || |
Revision as of 23:14, 24 September 2021
Every item returned from GetItemInfo() has a type and subtype. It's preferable to use the item classID (since they match the LE_ITEM_CLASS
enums) instead of the localized itemType.
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
Key | classID | itemType | Description |
---|---|---|---|
Consumable | 0 | Consumable | |
Container | 1 | Container | |
Weapon | 2 | Weapon | |
Gem | 3 | Gem | |
Armor | 4 | Armor | |
Reagent | 5 | Reagent | Obsolete |
Projectile | 6 | Projectile | Obsolete |
Tradegoods | 7 | Tradeskill | |
ItemEnhancement | 8 | Item Enhancement | |
Recipe | 9 | Recipe | |
CurrencyTokenObsolete | 10 | Money(OBSOLETE) | |
Quiver | 11 | Quiver | Obsolete |
Questitem | 12 | Quest | |
Key | 13 | Key | Obsolete |
PermanentObsolete | 14 | Permanent(OBSOLETE) | |
Miscellaneous | 15 | Miscellaneous | |
Glyph | 16 | Glyph | |
Battlepet | 17 | Battle Pets | |
WoWToken | 18 | WoW Token |
Item Subtype
0: Consumable
Key | subclassID | itemSubType | Description |
---|---|---|---|
Generic | 0 | Explosives and Devices | |
Potion | 1 | Potion | |
Elixir | 2 | Elixir | |
Scroll | 3 | Scroll (OBSOLETE) | |
Fooddrink | 4 | Food & Drink | |
Itemenhancement | 5 | Item Enhancement (OBSOLETE) | |
Bandage | 6 | Bandage | |
Other | 7 | Other |
1: Container
subclassID | itemSubType | Description |
---|---|---|
0 | Bag | |
1 | Soul Bag | Classic |
2 | Herb Bag | |
3 | Enchanting Bag | |
4 | Engineering Bag | |
5 | Gem Bag | |
6 | Mining Bag | |
7 | Leatherworking Bag | |
8 | Inscription Bag | |
9 | Tackle Box | |
10 | Cooking Bag |
2: Weapon
Key | subclassID | itemSubType | Description |
---|---|---|---|
Axe1H | 0 | One-Handed Axes | |
Axe2H | 1 | Two-Handed Axes | |
Bows | 2 | Bows | |
Guns | 3 | Guns | |
Mace1H | 4 | One-Handed Maces | |
Mace2H | 5 | Two-Handed Maces | |
Polearm | 6 | Polearms | |
Sword1H | 7 | One-Handed Swords | |
Sword2H | 8 | Two-Handed Swords | |
Warglaive | 9 | Warglaives | |
Staff | 10 | Staves | |
Bearclaw | 11 | Bear Claws | |
Catclaw | 12 | CatClaws | |
Unarmed | 13 | Fist Weapons | |
Generic | 14 | Miscellaneous | |
Dagger | 15 | Daggers | |
Thrown | 16 | Thrown | Classic |
Obsolete3 | 17 | Spears | |
Crossbow | 18 | Crossbows | |
Wand | 19 | Wands | |
Fishingpole | 20 | Fishing Poles |
3: Gem
Key | subclassID | itemSubType | Description |
---|---|---|---|
Intellect | 0 | Intellect | |
Agility | 1 | Agility | |
Strength | 2 | Strength | |
Stamina | 3 | Stamina | |
Spirit | 4 | Spirit | |
Criticalstrike | 5 | Critical Strike | |
Mastery | 6 | Mastery | |
Haste | 7 | Haste | |
Versatility | 8 | Versatility | |
Other | 9 | Other | |
Multiplestats | 10 | Multiple Stats | |
Artifactrelic | 11 | Artifact Relic |
4: Armor
Key | subclassID | itemSubType | Description |
---|---|---|---|
Generic | 0 | Miscellaneous | Includes Spellstones, Firestones, Trinkets, Rings and Necks |
Cloth | 1 | Cloth | |
Leather | 2 | Leather | |
3 | |||
Plate | 4 | Plate | |
Cosmetic | 5 | Cosmetic | |
Shield | 6 | Shields | |
Libram | 7 | Librams | Classic |
Idol | 8 | Idols | Classic |
Totem | 9 | Totems | Classic |
Sigil | 10 | Sigils | Classic |
Relic | 11 | Relic |
5: Reagent
- For crafting reagents see 7: Tradeskill. For spell reagents see 15: Miscellaneous.
Key | subclassID | itemSubType | Description |
---|---|---|---|
Reagent | 0 | Reagent | |
Keystone | 1 | Keystone | |
ContextToken | 2 | Context Token |
6: Projectile
subclassID | itemSubType | Description |
---|---|---|
0 | Wand(OBSOLETE) | |
1 | Bolt(OBSOLETE) | |
2 | Arrow | |
3 | Bullet | |
4 | Thrown(OBSOLETE) |
7: Tradeskill
subclassID | itemSubType | Description |
---|---|---|
0 | Trade Goods (OBSOLETE) | |
1 | Parts | |
2 | Explosives (OBSOLETE) | |
3 | Devices (OBSOLETE) | |
4 | Jewelcrafting | |
5 | Cloth | |
6 | Leather | |
7 | Metal & Stone | |
8 | Cooking | |
9 | Herb | |
10 | Elemental | |
11 | Other | |
12 | Enchanting | |
13 | Materials (OBSOLETE) | |
14 | Item Enchantment (OBSOLETE) | |
15 | Weapon Enchantment - Obsolete | |
16 | Inscription | |
17 | Explosives and Devices (OBSOLETE) |
8: Item Enhancement
subclassID | itemSubType | Description |
---|---|---|
0 | Head | |
1 | Neck | |
2 | Shoulder | |
3 | Cloak | |
4 | Chest | |
5 | Wrist | |
6 | Hands | |
7 | Waist | |
8 | Legs | |
9 | Feet | |
10 | Finger | |
11 | Weapon | One-handed weapons |
12 | Two-Handed Weapon | |
13 | Shield/Off-hand | |
14 | Misc |
9: Recipe
Key | subclassID | itemSubType | Description |
---|---|---|---|
Book | 0 | Book | |
Leatherworking | 1 | Leatherworking | |
Tailoring | 2 | Tailoring | |
Engineering | 3 | Engineering | |
Blacksmithing | 4 | Blacksmithing | |
Cooking | 5 | Cooking | |
Alchemy | 6 | Alchemy | |
FirstAid | 7 | First Aid | |
Enchanting | 8 | Enchanting | |
Fishing | 9 | Fishing | |
Jewelcrafting | 10 | Jewelcrafting | |
Inscription | 11 | Inscription |
10: Money(OBSOLETE)
subclassID | itemSubType | Description |
---|---|---|
0 | Money(OBSOLETE) |
11: Quiver
subclassID | itemSubType | Description |
---|---|---|
0 | Quiver(OBSOLETE) | |
1 | Bolt(OBSOLETE) | |
2 | Quiver | |
3 | Ammo Pouch |
12: Quest
subclassID | itemSubType | Description |
---|---|---|
0 | Quest |
13: Key
subclassID | itemSubType | Description |
---|---|---|
0 | Key | |
1 | Lockpick |
14: Permanent(OBSOLETE)
subclassID | itemSubType | Description |
---|---|---|
0 | Permanent |
15: Miscellaneous
Key | subclassID | itemSubType | 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
subclassID | itemSubType | Description |
---|---|---|
1 | Warrior | |
2 | Paladin | |
3 | Hunter | |
4 | Rogue | |
5 | Priest | |
6 | Death Knight | |
7 | Shaman | |
8 | Mage | |
9 | Warlock | |
10 | Monk | |
11 | Druid | |
12 | Demon Hunter |
17: Battle Pets
Key | subclassID | itemSubType | Description |
---|---|---|---|
Humanoid | 0 | Humanoid | |
Dragonkin | 1 | Dragonkin | |
Flying | 2 | Flying | |
Undead | 3 | Undead | |
Critter | 4 | Critter | |
Magic | 5 | Magic | |
Elemental | 6 | Elemental | |
Beast | 7 | Beast | |
Aquatic | 8 | Aquatic | |
Mechanical | 9 | Mechanical |
18: WoW Token
subclassID | itemSubType | Description |
---|---|---|
0 | WoW Token |
See also
- GetItemClassInfo() - Returns item class names.
- GetItemSubClassInfo() - Returns item subclass names.
- GetAuctionItemSubClasses() - Returns valid item subclasses for the Auction House.
- BlizzardInterfaceResources/LuaEnum.lua - List of item enums.