WoW:API GetCurrencyInfo: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
Line 31: Line 31:
|-
|-
| 241 || Dalaran Cooking Award
| 241 || Dalaran Cooking Award
|-
| 361 || Illustrious Jewelcrafter's Token
|-
|-
| 390 || Champion's Seal
| 390 || Champion's Seal
|-
| 391 || Tol Barad Commendation
|-
|-
| 392 || Honor Points
| 392 || Honor Points
|-
| 393 || Fossil Archaeology Fragment
|-
|-
| 395 || Justice Points
| 395 || Justice Points
|-
|-
| 402 || ?
| 396 || Valor Points
|-
| 402 || Chef's Award
|}
|}

Revision as of 04:24, 22 January 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 Dalaran Cooking Award
361 Illustrious Jewelcrafter's Token
390 Champion's Seal
391 Tol Barad Commendation
392 Honor Points
393 Fossil Archaeology Fragment
395 Justice Points
396 Valor Points
402 Chef's Award