View Single Post
03/25/19, 05:03 AM   #4
Ciannicay
Join Date: May 2014
Posts: 4
Lightbulb

I did some more searching and i found out that ESO-Database (one of Woehlers projects) is using a means of getting this data already.
Took me a while to nail the lines in his addon. Basically its all there but i would like to have it work for more targets (possibly all PvE ones) and without transferring the data to an external webpage for viewing.

He uses

EVENT_MANAGER:RegisterForEvent(ADDON_NAME, EVENT_COMBAT_EVENT, OnCombatEvent)

with

OnCombatEvent(_, result, isError, abilityName, _, _, sourceName, sourceType, targetName, targetType, hitValue, _, damageType)

and then he filters for

sourceType == COMBAT_UNIT_TYPE_PLAYER or sourceType == COMBAT_UNIT_TYPE_PLAYER_PET or sourceType == COMBAT_UNIT_TYPE_GROUP) and (targetType == COMBAT_UNIT_TYPE_NONE or targetType == COMBAT_UNIT_TYPE_OTHER))

after that he filters the AvA kills and adds the kill to his predefined list regardless if it gave xp or not

result == ACTION_RESULT_DIED or result == ACTION_RESULT_DIED_XP


I can read the code but i am totally lost at writing it.
Maybe these snippets can help.

Kind regards
Ciannicay
  Reply With Quote