WoW API: GetCurrencyInfo

From AddOn Studio
Revision as of 16:29, 10 August 2012 by WoWWiki>Fandyllic (→‎Details: ; add Mists currencies and more)
Jump to navigation Jump to search

WoW API < GetCurrencyInfo

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

localized_label, amount, icon_file_name = GetCurrencyInfo(index)

Arguments

index
Integer - Index of the currency to retrieve

Returns

localized_label, amount, icon_file_name
localized_label
String - the name of the currency, localized to the language
amount
Number - Current amount of the currency at index
icon_file_name
String - The file name of the currency's icon. Does not include the path (\\Interface\\Icons\\)

Details

  • index appears to correspond to IDs seen at Wowhead's currencies list.[1]
    • As of patch 4.0.1 (16-Oct-2010) new indexes: 241-Champion's Seal 390-Conquest Points 392-Honor Points 395-Justice Points
    • Patch 4.0.3 (09-Aug-2012) - Table Updated ID's 0-1000
index name
61 Dalaran Jewelcrafter's Token Template:Wotlk-inline (Dalaran Template:Ability dailies)
81 Dalaran Cooking Award Template:Wotlk-inline
(Dalaran Template:Ability dailies; becomes Epicurean's Award Template:Mists-inline, NYR)
241 Champion's Seal Template:Wotlk-inline (Argent Tournament)
361 Illustrious Jewelcrafter's Token Template:Cata-inline (Template:Ability dailies)
384 Dwarf Archaeology Fragment Template:Cata-inline
385 Troll Archaeology Fragment Template:Cata-inline
390 Conquest Points Template:Cata-inline (PvP, Ranked Arena/Rated battleground)
391 Tol Barad Commendation Template:Cata-inline
392 Honor Points (PvP)
393 Fossil Archaeology Fragment Template:Cata-inline
394 Night Elf Archaeology Fragment Template:Cata-inline
395 Justice Points Template:Cata-inline
396 Valor Points Template:Cata-inline
397 Orc Archaeology Fragment Template:Cata-inline
398 Draenei Archaeology Fragment Template:Cata-inline
399 Vrykul Archaeology Fragment Template:Cata-inline
400 Nerubian Archaeology Fragment Template:Cata-inline
401 Tol'vir Archaeology Fragment Template:Cata-inline
402 Chef's Award Template:Cata-inline (Template:Ability dailies)
416 Mark of the World Tree Template:Cata-inline (Molten Front, Firelands)
515 Darkmoon Prize Ticket Template:Cata-inline
614 Mote of Darkness Template:Cata-inline (Dragon Soul)
615 Essence of Corrupted Deathwing Template:Cata-inline (Madness of Deathwing)
676 Pandaren Archaeology Fragment Template:Mists-inline (NYR)
679 Elder Charm of Good Fortune Template:Mists-inline (NYR)

References

  1. Currencies. Wowhead. Retrieved on 2012-08-09.