WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   General Authoring Discussion (https://www.wowinterface.com/forums/forumdisplay.php?f=20)
-   -   Combat Log Unfiltered (https://www.wowinterface.com/forums/showthread.php?t=58254)

glupikreten 10-06-20 03:06 AM

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.

Rilgamon 10-06-20 03:23 AM

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.

glupikreten 10-06-20 03:30 AM

Quote:

Originally Posted by Rilgamon (Post 337035)
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.

Rilgamon 10-06-20 04:01 AM

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".

glupikreten 10-06-20 08:40 AM

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

Rilgamon 10-06-20 11:05 AM

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.

glupikreten 10-06-20 01:01 PM

It seems to be working...

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

Anyhow.. thank you .


All times are GMT -6. The time now is 12:54 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI