GetCurrencyAmount
ESO Lua API function — used by 105 of the 3,030 addons we indexed (combined 21,925,707 downloads). Signature from the official ESOUIDocumentation.txt, API version 101050.
Official signature
GetCurrencyAmount([CurrencyType|#CurrencyType] currencyType, [CurrencyLocation|#CurrencyLocation] currencyLocation)Returns: integer amount
Real usage — from Dolgubon's Lazy Writ Crafter
local maxTransmutes = GetMaxPossibleCurrency( 5 , CURRENCY_LOCATION_ACCOUNT)
local currentTransmutes = GetCurrencyAmount(CURT_CHAOTIC_CREATIA,CURRENCY_LOCATION_ACCOUNT)
local transmuteSpace = maxTransmutes - currentTransmutesShort 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 |
| Inventory Insight | 2,763,446 |
| LibFilters-3.0 | 2,063,617 |
| MiniMap by Fyrakin [Masteroshi430's branch] | 1,392,567 |
| Auto Category - Revised | 1,180,586 |
| Wykkyd Toolbar | 567,448 |