WoW:API GetAuctionItemClasses: Difference between revisions
Jump to navigation
Jump to search
(added new Gem class) |
(Rewrote for clarity and to match the current boilerplate.) |
||
Line 1: | Line 1: | ||
{{ | {{wowapi}} | ||
Gets a list of the auction house item classes. | |||
itemClasses = { GetAuctionItemClasses() } | |||
== Arguments == | |||
None | |||
== Returns == | |||
:; A list (not a table) of localized item classes | |||
:;* "Weapon" | |||
:;* "Armor" | |||
:;* "Container" | |||
:;* "Consumable" | |||
:;* "Trade Goods" | |||
:;* "Projectile" | |||
:;* "Quiver" | |||
:;* "Recipe" | |||
:;* "Reagent" | |||
:;* "Gem" | |||
:;* "Miscallaneous" | |||
== Example == | |||
local itemClasses = { GetAuctionItemClasses() }; | |||
if #itemClasses > 0 then | |||
local itemClass; | |||
for _, itemClass in pairs(itemClasses) do | |||
DEFAULT_CHAT_FRAME:AddMessage(itemClass); | |||
end | |||
end | |||
<big>'''Result'''</big> | |||
This will give you the names of every category, in the client's language. | This will give you the names of every category, in the client's language. | ||
Revision as of 19:50, 25 June 2007
← WoW API < GetAuctionItemClasses
Gets a list of the auction house item classes.
itemClasses = { GetAuctionItemClasses() }
Arguments
None
Returns
- A list (not a table) of localized item classes
- "Weapon"
- "Armor"
- "Container"
- "Consumable"
- "Trade Goods"
- "Projectile"
- "Quiver"
- "Recipe"
- "Reagent"
- "Gem"
- "Miscallaneous"
Example
local itemClasses = { GetAuctionItemClasses() }; if #itemClasses > 0 then local itemClass; for _, itemClass in pairs(itemClasses) do DEFAULT_CHAT_FRAME:AddMessage(itemClass); end end
Result
This will give you the names of every category, in the client's language.