View Single Post
04/21/14, 01:20 PM   #12
mikethecoder4
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 13
I mayu have figured it out.

I used to EVENT_COMBAT_EVENT event, and did the following

Code:
function OnKill( eventCode , result , isError , abilityName, abilityGraphic, abilityActionSlotType, sourceName, sourceType, targetName, targetType, hitValue, powerType, damageType, log )

	if result == ACTION_RESULT_KILLING_BLOW then
		--d("Works")
		counter = counter + 1
	end
end
I registered the combat event like so

Code:
EVENT_MANAGER:RegisterForEvent("KillCounter", EVENT_PLAYER_DEAD, OnKilled)
Gonna keep testing to make sure it works. Thanks all for the help, I'll let you guys know if i confirm it works.


EDIT: Nope, not quite but ALMOST THERE. This event definitely procs when killing blows and such happen, but are not limited to the players killing blows it seems. Will report with progress as I figure this out. Need to figure out these arguments. For many of the events, alot of the arguments are empty, so its hard to find out their values without looking through like a million of them.

Last edited by mikethecoder4 : 04/21/14 at 01:30 PM.