WoW:API GetAuctionItemClasses: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
m (typo)
(added new Gem class)
Line 2: Line 2:
'''GetAuctionItemClasses()'''<br>
'''GetAuctionItemClasses()'''<br>
'''Parameters:''' none<br>
'''Parameters:''' none<br>
'''Returns:''' n return values, each of which is a major auction category. Right now "Weapon", "Armor", "Container", "Consumable", "Trade Goods", "Projectile", "Quiver", "Recipe", "Reagent", "Miscallaneous"
'''Returns:''' n return values, each of which is a major auction category. Right now "Weapon", "Armor", "Container", "Consumable", "Trade Goods", "Projectile", "Quiver", "Recipe", "Reagent", "Gem", "Miscallaneous"


----
----
;''Example''
;''Example''
  local a,b,c,d,e,f,g,h,i,j = GetAuctionItemClasses();
  local a,b,c,d,e,f,g,h,i,j,k = GetAuctionItemClasses()
  DEFAULT_CHAT_FRAME:AddMessage(a.." "..b.." "..c.." "..d.." "..e.." "..f.." "..g.." "..h.." "..i.." "..j);
  DEFAULT_CHAT_FRAME:AddMessage(a.." "..b.." "..c.." "..d.." "..e.." "..f.." "..g.." "..h.." "..i.." "..j.." "..k)


;''Result''
;''Result''
Line 20: Line 20:
:h = "Recipe"
:h = "Recipe"
:i = "Reagent"
:i = "Reagent"
:j = "Miscellaneous"
:j = "Gem"
:k = "Miscellaneous"
----
----

Revision as of 18:38, 23 May 2007

GetAuctionItemClasses()
Parameters: none
Returns: n return values, each of which is a major auction category. Right now "Weapon", "Armor", "Container", "Consumable", "Trade Goods", "Projectile", "Quiver", "Recipe", "Reagent", "Gem", "Miscallaneous"


Example
local a,b,c,d,e,f,g,h,i,j,k = GetAuctionItemClasses()
DEFAULT_CHAT_FRAME:AddMessage(a.." "..b.." "..c.." "..d.." "..e.." "..f.." "..g.." "..h.." "..i.." "..j.." "..k)
Result

This will give you the names of every category, in the client's language.

a = "Weapon"
b = "Armor"
c = "Container"
d = "Consumable"
e = "Trade Goods"
f = "Projectile"
g = "Quiver"
h = "Recipe"
i = "Reagent"
j = "Gem"
k = "Miscellaneous"