View Single Post
03/26/19, 06:01 AM   #6
Drummerx04
AddOn Author - Click to view addons
Join Date: Sep 2017
Posts: 54
Originally Posted by Baertram View Post
Yeah and all you have is
targetName, targetType

Where the name is a String and the type is one of those:
https://wiki.esoui.com/Globals#CombatUnitType

CombatUnitType
COMBAT_UNIT_TYPE_GROUP
COMBAT_UNIT_TYPE_NONE
COMBAT_UNIT_TYPE_OTHER
COMBAT_UNIT_TYPE_PLAYER
COMBAT_UNIT_TYPE_PLAYER_PET
COMBAT_UNIT_TYPE_TARGET_DUMMY


This is all you get as info so you'd end up in a list og stored "names". If they are not the same it will create e.g. 2 entries for "Crab" and "Mudcrab" as there is no type = Crab we could check.
You'd need to consolidate this in the end on your site.

But if the addon is already collecting this info you could simply use it and check the SavedVariables file then. The contents should list the kills for you.
It's not ingame but at least you'd have a text file (.lua) which you are able to read and check the collected data from.
I wasn't originally going to comment, but since I did some work on Kill Counter... which essentially does what this dude requested (but for pvp), I figured I would point out that they types are even more limited than I initially thought, since MOST targets in the game are classed as "OTHER" (including both enemy mobs and enemy players).

But it might make sense to fork off of Kill Counter if anyone doesn't wish to start from scratch, though fair warning, even with my updates last year, KC is still ancient and I think comes from a time before some of the common UI libraries.
  Reply With Quote