GetItemLinkStacks

From ESOUI Wiki

Jump to: navigation, search

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.

Contents

Arguments

itemLink
A string containing an item link. It does not matter whether the link is in brackets.

Return values

bagCount
How many of this item can be found in the player's inventory (BAG_BACKPACK).
bankCount
How many of this item can be found in the player's bank (BAG_BANK).
craftBagCount
How many of this item can be found in the player's Craft Bag (BAG_VIRTUAL).

Syntax

-- GIVEN:
-- number itemLink
--
-- RETURNS:
-- number inventoryCount
-- number bankCount
-- number craftBagCount
local inventoryCount, bankCount, craftBagCount = GetItemLinkStacks(itemLink)

External links

Personal tools
Namespaces
Variants
Actions
Menu
Wiki
Toolbox