Wowpedia
Advertisement
Game Flavors
Links
Info
Added in 1.0.0 / 1.13.2
Removed in 8.3.0

Gets a list of the sub-classes for an Auction House item class.

subClass1, subClass2, subClass3, ... = GetAuctionItemSubClasses(classID)

Arguments

classID
number - ID of the item class.

Returns

subClass1, subClass2, subClass3, ...
number - The valid subclasses for an item class.

Example

Prints all subclass IDs for the Consumables category.

local classID = LE_ITEM_CLASS_CONSUMABLE
for _, subClassID in pairs({GetAuctionItemSubClasses(classID)}) do
	print(subClassID, (GetItemSubClassInfo(classID, subClassID)))
end
0, Explosives and Devices
1, Potion
2, Elixir
3, Flask
5, Food & Drink
7, Bandage
9, Vantus Runes
8, Other

See also


Advertisement