LUA Events Help

I’m trying to find events for when reputation/renown changes and when currency/money/items change. I can’t find anything related to reputation/renown, the only one I can find related to currency/money/items is PLAYER_TRADE_CURRENCY and PLAYER_TRADE_MONEY. Does anyone know what the events I’m looking for are? The only thing I can think of would be a chat event to detect when it sees “Reputation with x increased/decreased by y.”, but I imagine that being extremely resource heavy and thus inefficient.

You’re covering various types of interactions so some may or may not help.

The ones documented for the C_CurrencyInfo system are:

ACCOUNT_CHARACTER_CURRENCY_DATA_RECEIVED
ACCOUNT_MONEY
CURRENCY_DISPLAY_UPDATE
CURRENCY_TRANSFER_FAILED
CURRENCY_TRANSFER_LOG_UPDATE
PLAYER_MONEY

You’ve also go renown events like:

COVENANT_SANCTUM_RENOWN_LEVEL_CHANGED
COVENANT_RENOWN_CATCH_UP_STATE_UPDATE

and

MAJOR_FACTION_RENOWN_LEVEL_CHANGED

Hello, thanks for the reply, I haven’t tried the currency/money events yet, but none of the reputation events fired when gaining reputation with Undercity.

Edit 3: I have tried the money event and that fires PLAYER_MONEY successfully, thanks!

“Reputation with Undercity increased by 10.”

Blizzard’s Reputation frame shows 1,285 / 6,000 where mine shows 1,275 / 6,000 still.

Edit 1: Here is what I have for Reputation frame:

local function UpdateReputation(event)
    print("UpdateReputation - Start");

    if (event ~= nil) then
        print(event);
    end;

    print("UpdateReputation - End");
end;

local frameReputationUpdate = CreateFrame("Frame");
frameReputationUpdate:RegisterEvent("COVENANT_SANCTUM_RENOWN_LEVEL_CHANGED");
frameReputationUpdate:RegisterEvent("COVENANT_RENOWN_CATCH_UP_STATE_UPDATE");
frameReputationUpdate:RegisterEvent("MAJOR_FACTION_RENOWN_LEVEL_CHANGED");
frameReputationUpdate:SetScript("OnEvent", function(self, event)
    UpdateReputation(event);
end);

Edit 2: Note I removed the code of actually updating the reputation for this demo to see if the event fires and calls UpdateReputation and passes in one of the 3 events, but none of the events fired.

You could find the events as they occur (if they occur) with /etrace. Disable the more “spamy” events so you’re not flooded with them.

1 Like

I did not know about that, that is EXTREMELY helpful, thanks!