ESODecoded

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_D

Short 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

AddonTotal downloads
Lootdrop, Continued (All in One)1,145,178
Postmaster Mail427,397
Merlin the Enchanter228,648
LootDrop Reborn192,278
Quick Enchanter135,864
The Librarium128,992