View Single Post
11-24-23, 09:14 AM   #9
Xrystal
nUI Maintainer
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,938
The only thing I can think of, is registering for all events and save it out to a saved variables table. And then check what events fired, when and with what values.

https://warcraft.wiki.gg/wiki/API_Fr...isterAllEvents
https://warcraft.wiki.gg/wiki/API_Fr...isterAllEvents

Basically set up a saved variable table like EventDebug. And in the event callback function add the information to the table.

An untested example would be something as follows. Just log in, then log out and see what it is in the table. I've used something like this in the past when I've had similar puzzles to solve. If you find it useful and want to add it to your addons you can always include and use a slash command to turn off and on the registering of all events or have a variable at the top of the file that is checked before registering the events.

Lua Code:
  1. SV_EVENTDEBUG = {}  
  2. -- Make sure this table is added as a saved variable table in the toc file
  3.  
  4. local function OnEvent(self, event, ...)
  5.     local eventData = {}
  6.     eventData[event] = { ... }
  7.     table.insert(SV_EVENTDEBUG, eventData)
  8. end
  9.  
  10. local f = CreateFrame("Frame")
  11. f:RegisterAllEvents()
  12. f:SetScript("OnEvent", OnEvent)
__________________


Characters:
Gwynedda - 70 - Demon Warlock
Galaviel - 65 - Resto Druid
Gamaliel - 61 - Disc Priest
Gwynytha - 60 - Survival Hunter
Lienae - 60 - Resto Shaman
Plus several others below level 60

Info Panel IDs : http://www.wowinterface.com/forums/s...818#post136818
  Reply With Quote