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. |
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.
|
Quote:
|
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". |
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 |
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.
|
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 02:59 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI