Skip to content

Better Warband Currency handling #1418

@R41z0r

Description

@R41z0r

Hi there,

With the release of The War Within and the introduction of Warbands, I’ve noticed a slight issue with how WoWthing handles account currencies. When I transfer a currency from Character B to Character A, both characters still display their previous currency values in WoWthing. This results in an inaccurate total, showing more currency than I actually have.

Would it be possible to update the way WoWthing gathers currency information to leverage the new API functions? This would ensure that the data is accurate and reflects the currency amounts per character.

You could use the Event:
ACCOUNT_CHARACTER_CURRENCY_DATA_RECEIVED -- This gives you the ready-state of the Account-wide currency loading.

With this event, you can just
C_CurrencyInfo.FetchCurrencyDataFromAccountCharacters(<currencyID>)
Resulting in an Array of characterinfo for this specific currency:
CleanShot 2024-12-26 at 19 01 14

As WoWthing already crawls all currencies, I believe it could be easily extended to include Warband currency data. This would result in dynamic and more accurate currency information within WoWthing, aligning with the Warband system introduced in The War Within.

I’ve noticed that the event ACCOUNT_CHARACTER_CURRENCY_DATA_RECEIVED is triggered once per WoW client startup (in my case) and then cached. To request updated data, you can use the function C_CurrencyInfo.RequestCurrencyDataForAccountCharacters, which will retrigger the event once new data becomes available.

Additionally, you can use C_CurrencyInfo.IsAccountCharacterCurrencyDataReady to check if the data is already available.

Adding this functionality would be an incredibly useful enhancement to WoWthing and would ensure that the displayed data stays up-to-date and accurate.

Thanks in advance for considering this suggestion!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions