GetItemQuality

From ESOUI Wiki

Jump to: navigation, search

This function returns an ItemQuality value representing the rarity of the item in a specified bag slot. If the function is called on an empty or invalid bag slot, then it returns ITEM_QUALITY_NORMAL.

The English names for each value are:

ITEM_QUALITY_TRASH
Worn
ITEM_QUALITY_NORMAL
Normal
ITEM_QUALITY_MAGIC
Fine
ITEM_QUALITY_ARCANE
Superior
ITEM_QUALITY_ARTIFACT
Epic
ITEM_QUALITY_LEGENDARY
Legendary

Arguments

bagId
A number representing the bag to check; it must be one of the built-in Bag values.
slotIndex
The numeric index of the slot in that bag which should be checked. For most bags, this is a number ranging from 1 to the size of the bag.

Syntax

-- GIVEN:
-- number bagIndex
-- number slotIndex
--
local rarity = GetItemQuality(bagIndex, slotIndex)

External links

Personal tools
Namespaces
Variants
Actions
Menu
Wiki
Toolbox