WoW:ItemType: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
No edit summary
No edit summary
Line 9: Line 9:
=== Possible itemType returns ===
=== Possible itemType returns ===
"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.
"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 ===
'''Armor'''
{{Accuracy-section}}
==== Armor ====
* "Miscellaneous" - includes [[Spellstone]]s and [[Firestone]]s
* "Miscellaneous" - includes [[Spellstone]]s and [[Firestone]]s
* "Cloth"
* "Cloth"
Line 20: Line 19:
* "Plate"
* "Plate"
* "Shields"
* "Shields"
* "Librams"
* "[[Libram]]s"
* "Idols"
* "[[Idol]]s"
* "Totems"
* "[[Totem]]s"
* "Sigils"
* "[[Sigil]]s"


'''Consumable'''
==== Consumable ====
* "Food & Drink"
* "Food & Drink"
* "Potion"
* "Potion"
Line 34: Line 33:
* "Scroll"
* "Scroll"
* "Other"
* "Other"
* "Consumable" - Seems some items still show up as this in 2.4.2 (Fel Blossom, Weighted Jack-o'-Lantern)
* "Consumable" - Seems some items still show up as this in 2.4.2 (Fel Blossom, Weighted Jack-o'-Lantern)


'''Container'''
==== Container ====
* "Bag"
* "Bag"
* "Enchanting Bag"
* "Enchanting Bag"
Line 42: Line 41:
* "Gem Bag"
* "Gem Bag"
* "Herb Bag"
* "Herb Bag"
* "Leatherworking Bag"
* "Mining Bag"
* "Mining Bag"
* "Soul Bag"
* "Soul Bag"
* "Leatherworking Bag"


'''Gem'''
==== Gem ====
* "Blue"
* "Blue"
* "Green"
* "Green"
Line 56: Line 55:
* "Simple"
* "Simple"
* "Yellow"
* "Yellow"
* "Artifact Relic"
* "[[Artifact Relic]]"


'''Key'''
==== Key ====
* "Key"
* "Key"


'''Miscellaneous'''
==== Miscellaneous ====
* "Junk"
* "Junk"
* "Reagent"
* "Reagent"
Line 69: Line 68:
* "Other"
* "Other"


'''Money''' - Badges and other "linkable items" used as money
==== Money ====
* Badges and other "linkable items" used as [[currency]].


'''Reagent'''
==== Reagent ====
* "Reagent"  - I think this is defunct
* "Reagent" - this is likely defunct


'''Recipe'''
==== Recipe ====
* "Alchemy"
* "Alchemy"
* "Blacksmithing"
* "Blacksmithing"
Line 82: Line 82:
* "Engineering"
* "Engineering"
* "First Aid"
* "First Aid"
* "Inscription"?
* "Leatherworking"
* "Leatherworking"
* "Tailoring"
* "Tailoring"


'''Projectile'''
==== Projectile ====
{{Rfg-section|expansion=cata}}
* "Arrow"
* "Arrow"
* "Bullet"
* "Bullet"


'''Quest'''
==== Quest ====
* "Quest"
* "Quest"


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


'''Trade Goods'''
==== Trade Goods ====
* "Armor Enchantment"
* "Armor Enchantment"
* "Cloth"
* "Cloth"
Line 111: Line 114:
* "Other"
* "Other"
* "Parts"
* "Parts"
* "Trade Goods" - Some items still show up as this in 2.4.2 (Mountain Silversage)
* "Trade Goods" - Some items still show up as this in [[Patch 2.4.2]] (Mountain Silversage)
* "Weapon Enchantment"
* "Weapon Enchantment"
   
   
'''Weapon'''
==== Weapon ====
* "Bows"
* "Bows"
* "Crossbows"
* "Crossbows"
* "Daggers"
* "Daggers"
* "Guns"
* "Guns"
* "Fishing Poles" (used to be "Fishing Pole" before 2.3)
* "Fishing Poles" (used to be "Fishing Pole" before [[Patch 2.3]])
* "Fist Weapons"
* "Fist Weapons"
* "Miscellaneous"
* "Miscellaneous"
Line 133: Line 136:
* "Wands"
* "Wands"


(for the purpose of [equipped: ] these can be used)
(for the purpose of &91;equipped: &93; these can be used)
* "One-Hand"
* "One-Hand"
* "Two-Hand"
* "Two-Hand"


=== Notes ===
=== 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.
* 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}}

Revision as of 18:38, 29 August 2016

API types

These are the possible itemType and itemSubType returns of GetItemInfo.

Item Types and Item Sub Types

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

"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

Questionmark-medium.png This section may be inaccurate.

Armor

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)

Container

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

Gem

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

Key

  • "Key"

Miscellaneous

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

Money

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

Reagent

  • "Reagent" - this is likely defunct

Recipe

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

Projectile

Template:Rfg-section

  • "Arrow"
  • "Bullet"

Quest

  • "Quest"

Quiver

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

Trade Goods

  • "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"

Weapon

  • "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

  • 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