Thread Tools Display Modes
07-15-23, 09:42 AM   #1
A Defias Bandit
Join Date: Apr 2019
Posts: 3
Question event QUEST_ACCEPTED getting weird arg

Sometime before Dragonflight, I started getting weird questId values in my quest tracker.
Lua says it's a table. All the documentation says it should be in int.
I get stuff like 000002067A296EE0 or 0000023BDDFEF130.

Obviously the game operates normally, but what change in the API is causing this?
  Reply With Quote
07-15-23, 10:08 AM   #2
I did that?
Fizzlemizz's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Dec 2011
Posts: 1,735
Are you sure you didn't accidently change your code and are seeing the frame (self) that is processing the event rather than the first argument in the payload?

It might help to see your code that registers, sets and process the OnEvent scripts.
Maintainer of Discord Unit Frames and Discord Art.
Author of FauxMazzle, FauxMazzleHUD and Move Pad Plus.
  Reply With Quote
07-17-23, 04:14 PM   #3
A Defias Bandit
Join Date: Apr 2019
Posts: 3
Thanks! Got it working.
Sure enough, Blizz is now sending a userdata table before the questId.
Strange that etrace doesn't call that out.
  Reply With Quote
07-17-23, 07:19 PM   #4
A Molten Giant
Kanegasi's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2007
Posts: 660
The first arg given to every function attached to a frame with setscript is the frame itself.

QUEST_ACCEPTED has only one return on retail: the quest ID.

Blizzard didn't change anything, that "user data" is the frame you registered the event to. Somehow you changed something, most likely a simple : to . in how you handle events, which caused your first arg to be the frame instead of the quest ID.
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » AddOn Help/Support » event QUEST_ACCEPTED getting weird arg

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off