WoW:ItemType: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
({{wowapitype}})
m (Move page script moved page ItemType to ItemType without leaving a redirect)
 
(27 intermediate revisions by 25 users not shown)
Line 1: Line 1:
{{wowapitype}}
{{wowapitype}}<br />


These are the possible 5th and 6th returns of [[API GetItemInfo|GetItemInfo]].
These are the possible '''itemType''' and itemSubType returns of [[API GetItemInfo|GetItemInfo]].


== Item Types and Item Sub Types ==
== Item Types and Item Sub Types ==
Every item in the game has an type and subtype of some kind.  No valid item will return nil for either of these values.
Every item in the game has a type and subtype of some kind.  No valid item will return nil for either of these values.
'''Be aware that the strings are localized on the clients.'''


=== Possible itemType returns ===
=== Possible itemType returns ===
"Armor", "Consumable", "Container", "Key", "Miscellaneous", "Reagent", "Recipe", "Projectile", "Quest", "Quiver", "Trade Goods", "Weapon"
"Armor", "Consumable", "Container", "Gem", "Key", "Miscellaneous", "Money", "Reagent", "Recipe", "Projectile", "Quest", "Quiver", "Trade Goods", "Weapon" for English client. Generally they are the same strings you see in the auction search tab.


=== Sorted Types and Subtypes ===
=== Sorted Types and Subtypes ===
<b>Armor</b>
{{Accuracy-section}}
==== Armor ====
* "Miscellaneous" - includes [[Spellstone]]s and [[Firestone]]s
* "Cloth"
* "Cloth"
* "Idols"
* "Leather"
* "Leather"
* "Librams"
* "Mail"
* "Mail"
* "Miscellaneous"
* "Plate"
* "Shields"
* "Shields"
* "Totems"
* "[[Libram]]s"
* "Plate"
* "[[Idol]]s"
* "[[Totem]]s"
* "[[Sigil]]s"


<b>Consumable</b>
==== Consumable ====
* "Consumable"
* "Food & Drink"
* "Potion"
* "Elixir"
* "Flask"
* "Bandage"
* "Item Enhancement"
* "Scroll"
* "Other"
* "Consumable" - Seems some items still show up as this in 2.4.2 (Fel Blossom, Weighted Jack-o'-Lantern)


<b>Container</b>
==== Container ====
* "Bag"
* "Bag"
* "Enchanting Bag"
* "Enchanting Bag"
* "Engineering Bag" - (exists in Auction house, no known item in game uses this subtype).
* "Engineering Bag"  
* "Gem Bag"
* "Herb Bag"
* "Herb Bag"
* "Leatherworking Bag"
* "Mining Bag"
* "Soul Bag"
* "Soul Bag"


<b>Key</b>
==== Gem ====
* "Blue"
* "Green"
* "Orange"
* "Meta"
* "Prismatic"
* "Purple"
* "Red"
* "Simple"
* "Yellow"
* "[[Artifact Relic]]"
 
==== Key ====
* "Key"
* "Key"


<b>Miscellaneous</b>
==== Miscellaneous ====
* "Junk"
* "Junk"
* "Reagent"
* "Pet"
* "Holiday"
* "Mount"
* "Other"


<b>Reagent</b>
==== Money ====
* "Reagent"
* Badges and other "linkable items" used as [[currency]].
 
==== Reagent ====
* "Reagent" -  this is likely defunct


<b>Recipe</b>
==== Recipe ====
* "Alchemy"
* "Alchemy"
* "Blacksmithing"
* "Blacksmithing"
Line 48: Line 82:
* "Engineering"
* "Engineering"
* "First Aid"
* "First Aid"
* "Inscription"?
* "Leatherworking"
* "Leatherworking"
* "Tailoring"
* "Tailoring"


<b>Projectile</b>
==== Projectile ====
{{Rfg-section|expansion=cata}}
* "Arrow"
* "Arrow"
* "Bullet"
* "Bullet"


<b>Quest</b>
==== Quest ====
* "Quest"
* "Quest"


<b>Quiver</b>
==== Quiver ====
:''Not specific to ammo, as of {{Cata-inline}} Cataclysm.''
* "Ammo Pouch"
* "Ammo Pouch"
* "Quiver"
* "Quiver"


<b>Trade Goods</b>
==== Trade Goods (Tradeskill) ====
* "Armor Enchantment"
* "Cloth"
* "Devices"
* "Devices"
* "Elemental"
* "Enchanting"
* "Explosives"
* "Explosives"
* "Herb"
* "Jewelcrafting"
* "Leather"
* "Materials"
* "Meat"
* "Metal & Stone"
* "Other"
* "Parts"
* "Parts"
* "Trade Goods"
* "Trade Goods" - Some items still show up as this in [[Patch 2.4.2]] (Mountain Silversage)
* "Weapon Enchantment" 
<b>Weapon</b>
The actual parent item type returned for these as of Battle For Azeroth Patch 8.0.1 is called Tradeskill.
 
==== Weapon ====
* "Bows"
* "Bows"
* "Crossbows"
* "Crossbows"
* "Daggers"
* "Daggers"
* "Guns"
* "Guns"
* "Fishing Pole"
* "Fishing Poles" (used to be "Fishing Pole" before [[Patch 2.3]])
* "Fist Weapons"
* "Fist Weapons"
* "Miscellaneous"
* "Miscellaneous"
Line 86: Line 136:
* "Two-Handed Swords"
* "Two-Handed Swords"
* "Wands"
* "Wands"
(for the purpose of &91;equipped: &93; these can be used)
* "One-Hand"
* "Two-Hand"
=== Notes ===
* For the itemtype "Armor" and the itemtype "Weapon," the possible itemsubtype returns seem to be consistent with the names of the proficiency spells. For example "Daggers" is the same name as [http://www.wowhead.com/?spell=1180 Spell 1180]. This may be useful for localizing an add-on that checks against these values. However, if your add-on just prints these values, [[API GetItemInfo|GetItemInfo]] already returns the localized string.
== References ==
{{reflist}}

Latest revision as of 04:48, 15 August 2023

API types

These are the possible itemType and itemSubType returns of GetItemInfo.

Item Types and Item Sub Types[edit]

Every item in the game has a type and subtype of some kind. No valid item will return nil for either of these values. Be aware that the strings are localized on the clients.

Possible itemType returns[edit]

"Armor", "Consumable", "Container", "Gem", "Key", "Miscellaneous", "Money", "Reagent", "Recipe", "Projectile", "Quest", "Quiver", "Trade Goods", "Weapon" for English client. Generally they are the same strings you see in the auction search tab.

Sorted Types and Subtypes[edit]

Questionmark-medium.png This section may be inaccurate.

Armor[edit]

Consumable[edit]

  • "Food & Drink"
  • "Potion"
  • "Elixir"
  • "Flask"
  • "Bandage"
  • "Item Enhancement"
  • "Scroll"
  • "Other"
  • "Consumable" - Seems some items still show up as this in 2.4.2 (Fel Blossom, Weighted Jack-o'-Lantern)

Container[edit]

  • "Bag"
  • "Enchanting Bag"
  • "Engineering Bag"
  • "Gem Bag"
  • "Herb Bag"
  • "Leatherworking Bag"
  • "Mining Bag"
  • "Soul Bag"

Gem[edit]

  • "Blue"
  • "Green"
  • "Orange"
  • "Meta"
  • "Prismatic"
  • "Purple"
  • "Red"
  • "Simple"
  • "Yellow"
  • "Artifact Relic"

Key[edit]

  • "Key"

Miscellaneous[edit]

  • "Junk"
  • "Reagent"
  • "Pet"
  • "Holiday"
  • "Mount"
  • "Other"

Money[edit]

  • Badges and other "linkable items" used as currency.

Reagent[edit]

  • "Reagent" - this is likely defunct

Recipe[edit]

  • "Alchemy"
  • "Blacksmithing"
  • "Book"
  • "Cooking"
  • "Enchanting"
  • "Engineering"
  • "First Aid"
  • "Inscription"?
  • "Leatherworking"
  • "Tailoring"

Projectile[edit]

Template:Rfg-section

  • "Arrow"
  • "Bullet"

Quest[edit]

  • "Quest"

Quiver[edit]

Not specific to ammo, as of Template:Cata-inline Cataclysm.
  • "Ammo Pouch"
  • "Quiver"

Trade Goods (Tradeskill)[edit]

  • "Armor Enchantment"
  • "Cloth"
  • "Devices"
  • "Elemental"
  • "Enchanting"
  • "Explosives"
  • "Herb"
  • "Jewelcrafting"
  • "Leather"
  • "Materials"
  • "Meat"
  • "Metal & Stone"
  • "Other"
  • "Parts"
  • "Trade Goods" - Some items still show up as this in Patch 2.4.2 (Mountain Silversage)
  • "Weapon Enchantment" 

The actual parent item type returned for these as of Battle For Azeroth Patch 8.0.1 is called Tradeskill.

Weapon[edit]

  • "Bows"
  • "Crossbows"
  • "Daggers"
  • "Guns"
  • "Fishing Poles" (used to be "Fishing Pole" before Patch 2.3)
  • "Fist Weapons"
  • "Miscellaneous"
  • "One-Handed Axes"
  • "One-Handed Maces"
  • "One-Handed Swords"
  • "Polearms"
  • "Staves"
  • "Thrown"
  • "Two-Handed Axes"
  • "Two-Handed Maces"
  • "Two-Handed Swords"
  • "Wands"

(for the purpose of &91;equipped: &93; these can be used)

  • "One-Hand"
  • "Two-Hand"

Notes[edit]

  • For the itemtype "Armor" and the itemtype "Weapon," the possible itemsubtype returns seem to be consistent with the names of the proficiency spells. For example "Daggers" is the same name as Spell 1180. This may be useful for localizing an add-on that checks against these values. However, if your add-on just prints these values, GetItemInfo already returns the localized string.

References[edit]