Quantcast
Combat Log Unfiltered - WoWInterface
Thread Tools Display Modes
10-06-20, 03:06 AM   #1
glupikreten
An Aku'mai Servant
Join Date: Apr 2009
Posts: 37
Combat Log Unfiltered

Hi,

I tried to find answer in Blizzards API and on various forum posts and whatnot but couldn't...

I'm trying to identify pet's kill (overkill)... i know i can listen PARTY_KILL and match source with player do identify his slain. But that does not work for any kind of pet/totem... upon pet kill only UNIT_DIED event is triggered with source = nil.

So .. how can i be sure that my pet killed that target? I noticed in combat log a line saying something like this "Pet attacked some target for XX dmg (YY overkill)"... so i guess that means pet killed that target. Should i just parse that? If so any tips? And wouldn't that have performance issues? How can i be sure that its actually my pet given that pet names are not unique?

Thank you.
  Reply With Quote
10-06-20, 03:23 AM   #2
Rilgamon
Premium Member
 
Rilgamon's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Sep 2009
Posts: 789
In every combat log line you get a guid for source and destination that is unique. You should be able to compare with your pet guid.
__________________
The cataclysm broke the world ... and the pandas could not fix it!
  Reply With Quote
10-06-20, 03:30 AM   #3
glupikreten
An Aku'mai Servant
Join Date: Apr 2009
Posts: 37
Originally Posted by Rilgamon View Post
In every combat log line you get a guid for source and destination that is unique. You should be able to compare with your pet guid.
That is not true for pets.. only players afaik. Tho i will double check that.
  Reply With Quote
10-06-20, 04:01 AM   #4
Rilgamon
Premium Member
 
Rilgamon's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Sep 2009
Posts: 789
https://wow.gamepedia.com/COMBAT_LOG_EVENT

guid = string - Globally unique identifier for units (NPCs, players, pets, etc), for example "Creature-0-3113-0-47-94-00003AD5D7".
__________________
The cataclysm broke the world ... and the pandas could not fix it!
  Reply With Quote
10-06-20, 08:40 AM   #5
glupikreten
An Aku'mai Servant
Join Date: Apr 2009
Posts: 37
So ... if my pet kills the target only UNIT_DIED event fires... and all the info i get is:

https://i.postimg.cc/rsFfVCG9/Screen...t-16-33-27.jpg
  Reply With Quote
10-06-20, 11:05 AM   #6
Rilgamon
Premium Member
 
Rilgamon's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Sep 2009
Posts: 789
Check the combat log events that end with _DAMAGE. The one with overkill (2nd or 16th parameter) and the source guid of your pet should be the line you're looking for.
__________________
The cataclysm broke the world ... and the pandas could not fix it!
  Reply With Quote
10-06-20, 01:01 PM   #7
glupikreten
An Aku'mai Servant
Join Date: Apr 2009
Posts: 37
It seems to be working...

That COMBAT_LOG_EVENT_UNFILTERED is not exactly user friendly .. at least not for me.

Anyhow.. thank you .
  Reply With Quote

WoWInterface » Developer Discussions » General Authoring Discussion » Combat Log Unfiltered

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off