ESODecoded

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 - currentTransmutes

Short excerpt from the shipping addon Dolgubon's Lazy Writ Crafterits 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
Dolgubon's Lazy Writ Crafter9,498,314
Inventory Insight2,763,446
LibFilters-3.02,063,617
MiniMap by Fyrakin [Masteroshi430's branch]1,392,567
Auto Category - Revised1,180,586
Wykkyd Toolbar567,448