Hello!
I'm working on a script to determine if the player is targeting a specific monster. Currently, my script can detect when the attack on a monster begins, but it doesn't recognize when the attack stops. Does anyone have any ideas on how to do this? Thanks in advance!
I'm working on a script to determine if the player is targeting a specific monster. Currently, my script can detect when the attack on a monster begins, but it doesn't recognize when the attack stops. Does anyone have any ideas on how to do this? Thanks in advance!
Lua:
local ec = EventCallback
function ec.onTargetCombat(creature, target)
print(target:getName())
return RETURNVALUE_NOERROR
end
ec:register(38651)