|Go to Page...|
||Thread Tools||Display Modes|
|11-25-12, 06:06 PM||#1|
A Chromatic Dragonspawn
Best way to determine who killed me
I'd like to improve my ganklist addon to offer the possibility to show a frame with the name of the char that killed you to easily add to the db.
So I begin to study a little bit the combat log.
The best way I found to determine who killed me is something like this pseudo sample code:
Some questions now:
1) As noted in another thread the UNIT_DIED subevent not contain all the information about the src of the damage so I think I can't use it. So is this the best way ( check the overkill ) ?
2) May I use the CLE not CLEU ? I have not understand so much the differences but if in the first there are only events related to me probably is more efficent than the second and for what I need is the same.
3) I am a little bit scared about the so many conditions to parsing of the die event ... if it is my name related (destName), if I am not in a bg/arena, if the srcName is a Player, if this player is an Enemy (this could be omitted I think), if the there is an overkill so I am died by spell or it was a melee ... etc :-) . But I think I can't summarize them all :-)
Thanks all for attention.
|WoWInterface » Developer Discussions » Lua/XML Help » Best way to determine who killed me|