View Single Post
07/29/14, 05:57 PM   #2
Xrystal
caritas omnia vincit
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2014
Posts: 369
I'm not sure how it would affect things but you could have it so that it only tracks normal state after player state has been processed, then once normal state has been checked it stops tracking it until the next player state.

Theoretically it should then have your player state reports before the normal state reports.

EG.

Lua Code:
  1. function CombatEvent(eventID,...)
  2.     -- Process Regular Combat Events
  3.     UnregisterEvent(blah,eventID)
  4. end
  5.  
  6. function PlayerCombatState(eventID,...)
  7.     -- Process Player Combat Events
  8.     RegisterEvent(blah,EVENT_COMBAT_EVENT,CombatEvent)
  9. end
  10.  
  11. RegisterEvent(blah,EVENT_PLAYER_COMBAT_STATE,playerCombatState)

Of course, memory recalls that event buffering is a suggestion, so it might be worth checking out http://wiki.esoui.com/Event_%26_Update_Buffering to see how it can be done in your situation. It might prove to be the better choice with stopping event tracking possibly missing events needed.

Of course I am falling asleep so I may be totally wrong in both suggestions
  Reply With Quote