GetAttachedItemInfo
ESO Lua API function — used by 30 of the 3,030 addons we indexed (combined 2,814,151 downloads). Signature from the official ESOUIDocumentation.txt, API version 101050.
Official signature
GetAttachedItemInfo(id64 mailId, luaindex attachIndex)Returns: textureName icon, integer stack, string creatorName, integer sellPrice, bool meetsUsageRequirement, integer equipType, integer itemStyleId, displayQuality
Real usage — from Lootdrop, Continued (All in One)
self.MailStacks[attachIndex] = {}
local icon, stack, _, _, _, _, itemStyle, quality = GetAttachedItemInfo( mailId, attachIndex)
local mailitemlink = GetAttachedItemLink( mailId, attachIndex, LINK_STYLE_DShort excerpt from the shipping addon Lootdrop, Continued (All in One) — 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 |
|---|---|
| Lootdrop, Continued (All in One) | 1,145,178 |
| Postmaster Mail | 427,397 |
| Merlin the Enchanter | 228,648 |
| LootDrop Reborn | 192,278 |
| Quick Enchanter | 135,864 |
| The Librarium | 128,992 |