Wowpedia
Advertisement
Wowpedia
240,505
pages
Game Flavors
Links
Patch
Added in 1.1.0 / 1.13.2

Return the quality of an inventory item.

quality = GetInventoryItemQuality(unitId, slotId)

Arguments

unitId 
string - The UnitId of the unit whose inventory is to be queried.
slotId 
number - The InventorySlotId to be queried, obtained via GetInventorySlotInfo().

Returns

quality 
Enum.ItemQuality
Value Key GlobalString (enUS)
0 Poor Poor ITEM_QUALITY0_DESC
1 Common Common ITEM_QUALITY1_DESC
2 Uncommon Uncommon ITEM_QUALITY2_DESC
3 Rare Rare ITEM_QUALITY3_DESC
4 Epic Epic ITEM_QUALITY4_DESC
5 Legendary Legendary ITEM_QUALITY5_DESC
6 Artifact Artifact ITEM_QUALITY6_DESC
7 Heirloom Heirloom ITEM_QUALITY7_DESC
8 WoWToken WoW Token ITEM_QUALITY8_DESC
Advertisement