Ad blocker interference detected!
Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers
Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.
Retrieve Information about a currency at index including it's amount.
name, CurrentAmount, texture, earnedThisWeek, weeklyMax, totalMax, isDiscovered = GetCurrencyInfo(index)
- Integer - Index of the currency to retrieve
String - the name of the currency, localized to the language
Number - Current amount of the currency at index
String - The file name of the currency's icon. As of 5.2.0, does include the path (\\Interface\\Icons\\)
Number - The amount of the currency earned this week
Number - Maximum amount of currency possible to be earned this week
Number - Total maximum currency possible to stockpile
Boolean - Whether the character has ever got some of this currency
indexappears to correspond to IDs seen at Wowhead's currencies list.
|61||Dalaran Jewelcrafter's Token (Dalaran dailies)|
|81|| Dalaran Cooking Award |
(Dalaran dailies; becomes Epicurean's Award )
|241||Champion's Seal (Argent Tournament)|
|361||Illustrious Jewelcrafter's Token ( dailies)|
|384||Dwarf Archaeology Fragment|
|385||Troll Archaeology Fragment|
|390||Conquest Points (PvP, Ranked Arena/Rated battleground)|
|391||Tol Barad Commendation|
|392||Honor Points (PvP)|
|393||Fossil Archaeology Fragment|
|394||Night Elf Archaeology Fragment|
|397||Orc Archaeology Fragment|
|398||Draenei Archaeology Fragment|
|399||Vrykul Archaeology Fragment|
|400||Nerubian Archaeology Fragment|
|401||Tol'vir Archaeology Fragment|
|402||Chef's Award ( dailies)|
|416||Mark of the World Tree (Molten Front, Firelands)|
|515||Darkmoon Prize Ticket|
|614||Mote of Darkness (Dragon Soul)|
|615||Essence of Corrupted Deathwing (Madness of Deathwing)|
|676||Pandaren Archaeology Fragment|
|679||Elder Charm of Good Fortune|
|692||Conquest Random BG Meta|
|697||Elder Charm of Good Fortune|
|738||Lesser Charm of Good Fortune|
|752||Mogu Rune of Fate|
- This Example will Output every currency you have Discovered, and have at least one of, to the Main chat Frame.
local name, currentAmount, texture, earnedThisWeek, weeklyMax, totalMax, isDiscovered = nil,nil,nil,nil,nil,nil,nil; for i = 61,777,1 do name, currentAmount, texture, earnedThisWeek, weeklyMax, totalMax, isDiscovered = GetCurrencyInfo(i); if name ~= nil and isDiscovered and currentAmount > 0 then if weeklyMax > 0 then DEFAULT_CHAT_FRAME:AddMessage(string.format("(%s): Current: %d Earned This Week: %d/%d",name,currentAmount,earnedThisWeek,weeklyMax)) else DEFAULT_CHAT_FRAME:AddMessage(string.format("(%s): Current: %d",name,currentAmount)) end end end
Patch Changes Edit
- Some time after Patch 4.0.1, the returns changed from "localized_label, amount, icon_file_name = GetCurrencyInfo(id)" to "name, currentAmount, texture, weeklyMax, totalMax, isDiscovered = GetCurrencyInfo(index)"