v0.13.8

C_CurrencyInfo

namespaceavailable in: camelot

Status in wowlua

43 functions: 4 implemented, 1 recorded, 38 guessed. 8 events, 2 of them fired by the emulator on its own.

Functions

functionwhat it doesstatus
CanTransferCurrencyWhether a currency can be transferred between the account's characters, and the reason when it can't. · by wowlua
(currencyID: number): (boolean, AccountCurrencyTransferResult?)
guessed
DoesCurrentFilterRequireAccountCurrencyDataWhether the current currency filter needs the currency data of the account's other characters. · by wowlua
(): boolean
recorded
DoesWarModeBonusApplyWhether the War Mode bonus applies to a currency. · by wowlua
(currencyID: number): (boolean?, boolean?)
guessed
ExpandCurrencyListExpands/collapses a currency list header.
(index: number, expand: boolean)
guessed
FetchCurrencyDataFromAccountCharactersReturns the amounts of a currency the account's other characters hold. · by wowlua
(currencyID: number): CharacterCurrencyData[]?
guessed
FetchCurrencyTransferTransactionsReturns the account's recent currency transfers. · by wowlua
(): CurrencyTransferTransaction[]
guessed
GetAzeriteCurrencyIDReturns the currency ID of Azerite. · by wowlua
(): number
guessed
GetBackpackCurrencyInfoReturns info for a tracked currency in the backpack.
(index: number): BackpackCurrencyInfo?
implemented
GetBasicCurrencyInfoReturns display information about a currency. · by wowlua
(currencyType: number, quantity: number?): CurrencyDisplayInfo?
guessed
GetCoinIconReturns the icon of the largest coin (gold, silver or copper) in an amount of money. · by wowlua
(amount: WOWMONEY): number
guessed
GetCoinTextBreaks up an amount of money into gold/silver/copper.
(amount: WOWMONEY, separator: string): string
guessed
GetCoinTextureStringBreaks up an amount of money into gold/silver/copper with icons.
(amount: WOWMONEY, fontHeight: number): string
implemented
GetCostToTransferCurrencyReturns the cost of transferring an amount of a currency. · by wowlua
(currencyID: number, quantity: number): number?
guessed
GetCurrencyContainerInfoReturns display information about a currency container holding an amount of a currency. · by wowlua
(currencyType: number, quantity: number): CurrencyDisplayInfo?
guessed
GetCurrencyDescriptionReturns a currency's description. · by wowlua
(type: number): string
guessed
GetCurrencyFilterReturns the currency list's filter. · by wowlua
(): CurrencyFilterType
guessed
GetCurrencyIDFromLinkConverts currency links to IDs.
(currencyLink: string): number
guessed
GetCurrencyInfoReturns info for a currency by ID.
(type: number): CurrencyInfo?
guessed
GetCurrencyInfoFromLinkReturns information about currencies from a link.
(link: string): CurrencyInfo?
guessed
GetCurrencyLinkReturns a currency link.
(type: number, amount: number?): string
guessed
GetCurrencyListInfoReturns info for a currency in the currency tab.
(index: number): CurrencyInfo?
implemented
GetCurrencyListLinkGet the currencyLink for the specified currency list index.
(index: number): string
guessed
GetCurrencyListSizeReturns the amount of currencies and headers in the currency tab.
(): number
implemented
GetDragonIslesSuppliesCurrencyIDReturns the currency ID of Dragon Isles Supplies. · by wowlua
(): number
guessed
GetFactionGrantedByCurrencyGets the faction ID for currency that is immediately converted into reputation with that faction instead.
(currencyID: number): number?
guessed
GetMaxTransferableAmountFromQuantityReturns the most of a currency that can be transferred out of the requested amount. · by wowlua
(currencyID: number, requestedQuantity: number): number?
guessed
GetPlayerCurrencyCategoryInfoReturns information about a currency category. · by wowlua
(categoryID: number, includeAccountWide: boolean): PlayerCurrencyCategoryInfo
guessed
GetWarResourcesCurrencyIDReturns the currency ID of War Resources. · by wowlua
(): number
guessed
IsAccountCharacterCurrencyDataReadyWhether the currency data of the account's other characters has loaded. · by wowlua
(): boolean
guessed
IsAccountTransferableCurrencyWhether a currency can be transferred between the account's characters. · by wowlua
(currencyID: number): boolean
guessed
IsAccountWideCurrencyWhether a currency is shared by all of the account's characters. · by wowlua
(currencyID: number): boolean
guessed
IsCurrencyContainerWhether an amount of a currency is shown as a currency container. · by wowlua
(currencyID: number, quantity: number): boolean
guessed
IsCurrencyTransferInProgressWhether a currency transfer is in progress. · by wowlua
(): boolean
guessed
IsCurrencyTransferTransactionDataReadyWhether the account's currency transfer history has loaded. · by wowlua
(): boolean
guessed
PickupCurrencyPicks up a currency to the cursor.
(type: number)
guessed
PlayerHasMaxQuantityWhether the player holds the maximum amount of a currency. · by wowlua
(currencyID: number): boolean
guessed
PlayerHasMaxWeeklyQuantityWhether the player has earned this week's maximum of a currency. · by wowlua
(currencyID: number): boolean
guessed
RequestCurrencyDataForAccountCharactersRequests the currency data of the account's other characters. · by wowlua
()
guessed
RequestCurrencyFromAccountCharacterTransfers an amount of a currency from another of the account's characters to the player. · by wowlua
(sourceCharacterGUID: string, currencyID: number, quantity: number)
guessed
SetCurrencyBackpackTracks a currency in the backpack.
(index: number, backpack: boolean)
guessed
SetCurrencyBackpackByIDSets whether a currency is shown in the backpack. · by wowlua
(currencyType: number, backpack: boolean)
guessed
SetCurrencyFilterSets the currency list's filter. · by wowlua
(filterType: CurrencyFilterType)
guessed
SetCurrencyUnusedMarks a currency as unused in the currency tab.
(index: number, unused: boolean)
guessed

"by wowlua": no one documents this function, so wowlua wrote the description from its name, signature and behaviour.

Events

eventpayloadfired by the emulator
ACCOUNT_CHARACTER_CURRENCY_DATA_RECEIVEDno payloadnot implemented
ACCOUNT_MONEYno payloadnot implemented
CURRENCY_DISPLAY_UPDATEcurrencyType: number?, quantity: number?, quantityChange: number?, quantityGainSource: number?, destroyReason: number?implemented
CURRENCY_TRANSFER_FAILEDfailureReason: AccountCurrencyTransferResultnot implemented
CURRENCY_TRANSFER_INITIATEDno payloadnot implemented
CURRENCY_TRANSFER_LOG_UPDATEno payloadnot implemented
CURRENCY_TRANSFER_SUCCESSno payloadnot implemented
PLAYER_MONEYno payloadimplemented

An event the emulator doesn't fire on its own can still be fired from a test: mock.fireEvent("ACCOUNT_CHARACTER_CURRENCY_DATA_RECEIVED").

Structures

  • BackpackCurrencyInfo · name, quantity, iconFileID, currencyTypesID
  • CharacterCurrencyData · characterGUID, characterName, fullCharacterName, currencyID, quantity
  • CurrencyDisplayInfo · name, description, icon, quality, displayAmount, actualAmount
  • CurrencyInfo · name, description, currencyID, isHeader, isHeaderExpanded, currencyListDepth, isTypeUnused, isShowInBackpack, quantity, trackedQuantity, iconFileID, maxQuantity, canEarnPerWeek, quantityEarnedThisWeek, isTradeable, quality, maxWeeklyQuantity, totalEarned, discovered, useTotalEarnedForMaxQty, isAccountWide, isAccountTransferable, transferPercentage?, rechargingCycleDurationMS, rechargingAmountPerCycle
  • CurrencyTransferTransaction · sourceCharacterGUID, sourceCharacterName, fullSourceCharacterName, destinationCharacterGUID, destinationCharacterName, fullDestinationCharacterName, currencyType, quantityTransferred, totalQuantityConsumed, timestamp
  • PlayerCurrencyCategoryInfo · categoryName, currencyTypes, childCategories

sources

Signatures, events and structures: Blizzard's API documentation (Blizzard_APIDocumentationGenerated) (CurrencySystem system, camelot 1.60.1). Descriptions: warcraft.wiki.gg's API pages, by its contributors, CC BY-SA 4.0 ↗; written by wowlua where no documentation describes the entry.