Thread Tools Display Modes
07-30-17, 12:45 PM   #1
Mortimerlol
A Cliff Giant
AddOn Author - Click to view addons
Join Date: Jul 2017
Posts: 71
PARTY_KILL can be used for check who kill me? [SOLVED]

Hello,

if it is for check if I kill a player:
Lua Code:
  1. --timeStamp, event, hideCaster, sourceGUID, sourceName, sourceFlags, sourceRaidFlags, destGUID, destName, destFlags, destRaidFlags, ... = ()
  2. if event == "PARTY_KILL" and (sourceGUID == UnitGUID("player")) and bit.band(destFlags, COMBATLOG_OBJECT_TYPE_PLAYER) > 0 then

for know who player kill me should to be it?:
Lua Code:
  1. --timeStamp, event, hideCaster, sourceGUID, sourceName, sourceFlags, sourceRaidFlags, destGUID, destName, destFlags, destRaidFlags, ... = ()
  2. if event == "PARTY_KILL" and (destGUID == UnitGUID("player")) and bit.band(sourceFlags, COMBATLOG_OBJECT_TYPE_PLAYER) > 0 then
Thanks

Last edited by Mortimerlol : 08-05-17 at 11:18 PM. Reason: [SOLVED]
  Reply With Quote
08-03-17, 07:51 AM   #2
Mortimerlol
A Cliff Giant
AddOn Author - Click to view addons
Join Date: Jul 2017
Posts: 71
Solved, thanks.
  Reply With Quote
08-03-17, 10:09 AM   #3
Ketho
A Pyroguard Emberseer
 
Ketho's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 1,026
You're welcome
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » PARTY_KILL can be used for check who kill me?


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