GetItemInfo

From ESOUI Wiki

Jump to: navigation, search

This function returns multiple values representing different pieces of information about the item in a specified bag slot.

Contents

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.

Return values

icon
A string representing the texture path and name for this item's icon.
stack
A number representing how many of the item is in this slot.
sellPrice
A number representing the item's sale price.
meetsUsageRequirement
A boolean indicating that the player meets all level and champion-point requirements for using this item.
locked
A boolean indicating whether the player has locked the item.
equipType
An EquipType value.
itemStyleId
An ItemStyle value. This is defined for both equipment and style materials.
quality
The item's rarity as an ItemQuality value.

Syntax

-- GIVEN:
-- number bagIndex
-- number slotIndex
--
local icon, stack, sellPrice, meetsUsageRequirement, locked, equipType, itemStyleId, quality = GetItemInfo(bagIndex, slotIndex)

External links

Personal tools
Namespaces
Variants
Actions
Menu
Wiki
Toolbox