Quantcast PARTY_KILL event and world creature - WoWInterface
Thread Tools Display Modes
12-11-17, 07:55 AM   #1
maqjav
An Aku'mai Servant
Join Date: Feb 2012
Posts: 32
PARTY_KILL event and world creature

Hello.

I'm trying to see if a member of my party (or just me) killed an enemy.
I'm capturing the event PARTY_KILL, however I'm seeing that if the person who deals the last hit isn't in the group, the event is not fired.
If I use UNIT_DIED, I always capture the event, but even if I'm walking beside the enemy and didn't even hit it once.

How can I capture if someone in my party/raid, and only in my party/raid killed or helped to kill an enemy (with help I mean to kill something that you can loot after)?

Thanks.
  Reply With Quote
12-16-17, 07:28 AM   #2
myrroddin
A Molten Giant
 
myrroddin's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2008
Posts: 878
PARTY_KILL only checks within your party, as you noticed. It does not even check if someone in your raid but not in your actual party gets the kill.

What I would do is use UNIT_DIED and from that get the GUID of the killer, then check if that GUID is also in your party (or raid, or both, depending on what you need).
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » PARTY_KILL event and world creature

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