WoW:API GetCurrencyInfo: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
Line 30: Line 30:
| 81 || Dalaran Cooking Award
| 81 || Dalaran Cooking Award
|-
|-
| 241 || Dalaran Cooking Award
| 241 || Champion Seal
|-
|-
| 361 || Illustrious Jewelcrafter's Token
| 361 || Illustrious Jewelcrafter's Token
|-
|-
| 390 || Champion's Seal
| 390 || Conquest Points
|-
|-
| 391 || Tol Barad Commendation
| 391 || Tol Barad Commendation

Revision as of 05:30, 13 February 2011

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

As of patch 4.0.1 (10/16/2010) Index is 241-Champion's Seal 390-Conquest Points 392-Honor Points 395-Justice Points
Patch 4.0.3
id name
61 Dalaran Jewelcrafter's Token
81 Dalaran Cooking Award
241 Champion Seal
361 Illustrious Jewelcrafter's Token
390 Conquest Points
391 Tol Barad Commendation
392 Honor Points
393 Fossil Archaeology Fragment
395 Justice Points
396 Valor Points
402 Chef's Award