by bsmorgan » Tue Mar 13, 2007 11:30 pm
If only it were that easy...
PvPLog doesn't use any of the duel events. It parses the chat log messages. When I was trying to figure out how it worked, I seem to remember that the reason it was done this way was that while there's a DUEL_REQUESTED event and a DUEL_FINISHED event, there's no DUEL_STARTED event. If you dismiss the duel requested box with a decline, there's no event associated with that. If you initiate the duel, then there's no DUEL_REQUESTED event.
I need to find a partner to do some experiments. I did most of the duel debugging with two level 1 characters. Getting them to a boat might be a challenge! I'm guessing that I can clear the isDuel flag when the player isn't in combat and at full health, a point in time that PvPLog already identifies.
I believe there is an event that fires when a player zones so that's another possibility. I don't currently register for that event. I'm researching away so expect 2.4.2 when I figure something out.
Regards,
Brad
Last edited by
bsmorgan on Wed Mar 14, 2007 1:16 am, edited 1 time in total.