From ESOUI Wiki
Given an item link, this function returns three numbers representing how many of the item the player has in their inventory, bank, and craft bag. These are total counts: if the player has three stacks in their inventory, totaling 600 items, then the function's first return value will be 600.
- A string containing an item link. It does not matter whether the link is in brackets.
- How many of this item can be found in the player's inventory (BAG_BACKPACK).
- How many of this item can be found in the player's bank (BAG_BANK).
- How many of this item can be found in the player's Craft Bag (BAG_VIRTUAL).
-- GIVEN: -- number itemLink -- -- RETURNS: -- number inventoryCount -- number bankCount -- number craftBagCount local inventoryCount, bankCount, craftBagCount = GetItemLinkStacks(itemLink)