Hi Gamepedia users and contributors! Please complete this survey to help us learn how to better meet your needs in the future. We have one for editors and readers. This should only take about 7 minutes!

API GetItemSubClassInfo

From Wowpedia
Jump to: navigation, search

Returns the name of the item subtype.

name, isArmorType = GetItemSubClassInfo(classID, subClassID)

Arguments

classID 
number - ID of the ItemType
subClassID 
number - ID of the item subtype

Returns

name 
string - Name of the item subtype
isArmorType 
boolean - Seems to only return true for classID 4: Armor - subClassID 0 to 4 Miscellaneous, Cloth, Leather, Mail, Plate

Example

print(GetItemSubClassInfo(LE_ITEM_CLASS_CONSUMABLE, 0))
> "Explosives and Devices", false

Patch changes

See also