Quote from myrroddinI'm sure someone will correct me, but wouldn't checking CLEU for anything pvp related require the opposing player to actually do something that would show up in the combat log? If the player is just moving by you, then no entry in CLEU, and then what?
Now, if he casts, uses an item, or whatever, then maybe.
Yes, that is my understanding. You could potentially have a PVP flagged enemy unit walk right past you completely undetected. However, I didn't find an event that fired when a unit was in a players vicinity. Ideally there would be a UNIT_IN_VICINITY that passed a unitid and coordinates of the unit, but since this doesn't exist (at least I haven't found it) then I think this is the next best thing. If you know of a better way, I'm all ears, err, eyes :)
In addition though I am going to monitor the mouse over event as well which should increase the chance of finding these players.