Wikia

WoWWiki

API GetAuctionItemClasses

Talk0
101,391pages on
this wiki
WoW API < GetAuctionItemClasses

Gets a list of the auction house item classes.

itemClasses = { GetAuctionItemClasses() }


Arguments Edit

None


Returns Edit

A list (not a table) of localized item classes
  • "Weapon"
  • "Armor"
  • "Container"
  • "Consumable"
  • "Glyph"
  • "Trade Goods"
  • "Projectile"
  • "Quiver"
  • "Recipe"
  • "Gem"
  • "Miscallaneous"
  • "Quest"

Example Edit

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.

Around Wikia's network

Random Wiki