WoW:API GetCurrencyInfo: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
(Created page for GetCurrencyInfo())
 
Line 20: Line 20:
     REMOVE the section if you're just going to restate the intro line! -->
     REMOVE the section if you're just going to restate the intro line! -->
: As of patch 4.0.1 (10/16/2010) Index is 241-Champion's Seal 390-Conquest Points 392-Honor Points 395-Justice Points
: 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
{| class="darktable"
|-
! id
! name
|-
| 61 || Dalaran Jewelcrafter's Token
|-
| 81 || Dalaran Cooking Award
|-
| 241 || Dalaran Cooking Award
|-
| 390 || Champion's Seal
|-
| 392 || Honor Points
|-
| 395 || Justice Points
|-
| 402 || ?
|}

Revision as of 06:14, 28 November 2010

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
390 Champion's Seal
392 Honor Points
395 Justice Points
402 ?