GetCurrencyInfo

From Warcraft Wiki
Jump to navigation Jump to search
GitHub Octocat.png  Townlong-Yak Globe.png  Townlong-Yak BAD.png  Blizz.gif  ProfIcons engineering.png C_CurrencyInfo.GetCurrencyInfo 11.1.5 (60428)4.4.2 (59734)1.15.7 (60191) + 9.0.1 / 2.5.1 / 1.14.0
GitHub Octocat.png  Townlong-Yak Globe.png  Townlong-Yak BAD.png  Blizz.gif  ProfIcons engineering.png C_CurrencyInfo.GetCurrencyInfoFromLink 11.1.5 (60428)4.4.2 (59734)1.15.7 (60191) + 9.0.1 / 2.5.1 / 1.14.0
GitHub Octocat.png  Townlong-Yak Globe.png  Wowprogramming.png GetCurrencyInfo 4.4.2 (59734)1.15.7 (60191) + 4.0.1 / 3.4.0 / 1.14.4

Retrieve Information about a currency at index including it's amount.

name, currentAmount, texture, earnedThisWeek, weeklyMax, totalMax, isDiscovered, rarity = GetCurrencyInfo(id or "currencyLink" or "currencyString")

Arguments

One of the following three ways to specify which currency to query:

id
Integer - CurrencyID
currencyLink
String - The full currencyLink as found with GetCurrencyLink() or GetCurrencyListLink().
currencyString
String - A fragment of the currencyLink string for the item, e.g. "currency:396" for Valor Points.

Returns

name
String - the name of the currency, localized to the language
amount
Number - Current amount of the currency at index
texture
String - The file name of the currency's icon.
earnedThisWeek
Number - The amount of the currency earned this week
weeklyMax
Number - Maximum amount of currency possible to be earned this week
totalMax
Number - Total maximum currency possible to stockpile
isDiscovered
Boolean - Whether the character has ever got some of this currency
rarity
Integer - Rarity indicator for this currency

Patch changes

External links