View Single Post
04/08/14, 05:07 PM   #13
Xrystal
caritas omnia vincit
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2014
Posts: 369
Well I just did a registerallevents on the eventmanager to see what happens event wise and which order .. here they are with their first 2 parameters. I see a couple of key events there that sound like ones that may be usable to know certain aspects of the game are loaded. I tried telling it to write to the Saved Variable file but it looks like ADD_ON_LOADED doesn't have access to it. Trying to write to a temp table and then use the PlayerActivated event to write it to the saved variables table to get the other parameters.

Lua Code:
  1. EVENT_ADD_ON_LOADED - 65536 - ZO_IngameLocalization,nil
  2. EVENT_ACTIVE_QUEST_TOOL_CHANGED - 131102 - 64, false
  3. EVENT_ADD_ON_LOADED - 65536 - ZO_Libraries,nil
  4. EVENT_ADD_ON_LOADED - 65536 - ZO_Common,nil
  5. EVENT_KEYBINDINGS_LOADED - 65547 - nil,nil
  6. EVENT_ACTIVE_QUEST_TOOL_CHANGED - 131102 - 64, false
  7. EVENT_ACTIVE_QUEST_TOOL_CHANGED - 131102 - 64, false
  8. EVENT_ADD_ON_LOADED - 65536 - ZO_Ingame
  9. EVENT_ADD_ON_LOADED - 65536 - XrysStartUpTest,nil
  10. EVENT_KEYBINDINGS_LOADED - 65547 - nil,nil
  11. EVENT_KEYBINDINGS_LOADED - 65547 - nil,nil
  12. EVENT_ACTION_LAYER_PUSHED - 65548 - 1,1
  13. EVENT_QUEST_DAILY_COUNT_CHANGED - 131100 - 540, 10
  14. EVENT_QUEST_DAILY_COUNT_CHANGED - 131100 - 541, 10
  15. EVENT_QUEST_DAILY_COUNT_CHANGED - 131100 - 542, 7
  16. EVENT_QUEST_DAILY_COUNT_CHANGED - 131100 - 543, 10
  17. etc
  18. EVENT_QUEST_DAILY_COUNT_CHANGED - 131100 - 549, 10
  19. EVENT_QUEST_DAILY_COUNT_CHANGED - 131100 - 551, 10
  20. EVENT_QUEST_DAILY_COUNT_CHANGED - 131100 - 550, 10
  21. EVENT_GUILD_HISTORY_RESPONSE_RECEIVED - 327721 - 1, 1  
  22. EVENT_PLAYER_ACTIVATED - 131072 - nil,nil
  23. EVENT_GUILD_REPUTATION_ADDED - 131364 - nil,nil
  24. EVENT_SKILL_LINE_ADDED - 131367 - false,nil
  25. EVENT_QUEST_DAILY_COUNT_CHANGED - 131100 - 554, 7
  26. EVENT_QUEST_DAILY_COUNT_CHANGED - 131100 - 560, 10
  27. etc
  28. EVENT_QUEST_DAILY_COUNT_CHANGED - 131100 - 569, 10
  29. EVENT_QUEST_DAILY_COUNT_CHANGED - 131100 - 571, 10
  30. EVENT_QUEST_DAILY_COUNT_CHANGED - 131100 - 570, 10
  31. EVENT_ACTIVE_QUEST_TOOL_CHANGED - 131102 - 64, false
  32. EVENT_GUILD_MEMBER_CHARACTER_ZONE_CHANGED - 327709 - 2, @xxxxxx
  33. EVENT_ACTIVE_QUEST_TOOL_CHANGED - 131102 - 64, false
  34. EVENT_ZONE_CHANNEL_CHANGED - 131117 - nil,nil
  35. EVENT_ACTIVE_QUEST_TOOL_CHANGED - 131102 - 64, false
  36. EVENT_GUILD_REPUTATION_ADDED - 131364 - nil,nil
  37. EVENT_SKILL_LINE_ADDED - 131367 - nil,nil
  38. EVENT_ACTION_LAYER_PUSHED - 65548   - 6,2
  39. EVENT_ZONE_CHANNEL_CHANGED - 131117 - nil,nil

edit: Interesting, I can't even get the saved variables table updated using the EVENT_PLAYER_ACTIVATED event. Unless, the function used to track all cannot do anything like that ... lets see.

edit2: *whistles* ... nothing to see here .. move along .. rofl .. forgot to initialise the saved variables table *slaps head*

edit3: rofl .. file created but empty ... but .. if I run a slash command to list the contents it is all there rofl .. wacky stuff these saved variables files.

Last edited by Xrystal : 04/08/14 at 05:27 PM.
  Reply With Quote