GetItemInfo
ESO Lua API function — used by 159 of the 3,030 addons we indexed (combined 57,902,177 downloads). Signature from the official ESOUIDocumentation.txt, API version 101050.
Official signature
GetItemInfo([Bag|#Bag] bagId, integer slotIndex)Returns: textureName icon, integer stack, integer sellPrice, bool meetsUsageRequirement, bool locked, equipType, integer itemStyleId, functionalQuality, displayQuality
Real usage — from Dolgubon's Lazy Writ Crafter
if itemType == ITEMTYPE_STYLE_MATERIAL then
local icon, stack, sellPrice, meetsUsageRequirement, locked, equipType, itemStyleId, quality = GetItemInfo(bagId, slotId)
if Short excerpt from the shipping addon Dolgubon's Lazy Writ Crafter — its ESOUI page; the code belongs to its author. Shown because documentation without a working example is half a reference.
Most-downloaded addons using it
| Addon | Total downloads |
|---|---|
| Dolgubon's Lazy Writ Crafter | 9,498,314 |
| LibLazyCrafting | 6,538,592 |
| CraftStore | 5,176,147 |
| AwesomeGuildStore | 4,722,462 |
| Master Merchant 3.0 | 3,883,523 |
| Potion Maker (for Alchemy Crafting) | 3,765,616 |