GetItemLinkStacks
ESO Lua API function — used by 65 of the 3,030 addons we indexed (combined 39,724,453 downloads). Signature from the official ESOUIDocumentation.txt, API version 101050.
Official signature
GetItemLinkStacks(string itemLink)Returns: integer stackCountBackpack, integer stackCountBank, integer stackCountCraftBag, integer stackCountHouseBanks, integer stackCountFurnitureVault, integer stackCountVengeanceBag
Real usage — from Dolgubon's Lazy Writ Crafter
local emptySlot = emptySlots[1]
local _,remainingInBank = GetItemLinkStacks(GetItemLink(bag, slot))
if emptySlot and GetItemName(BAG_BACKPACK, emptySlot)=="" thenShort 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 |
| Lost Treasure | 6,404,899 |
| CraftStore | 5,176,147 |
| Potion Maker (for Alchemy Crafting) | 3,765,616 |
| WritWorthy | 2,484,332 |