sestorme
Member
LUA:
function onStatsChange(cid, attacker, type, combat, value)
if type == STATSCHANGE_HEALTHLOSS and combat == COMBAT_PHYSICALDAMAGE then
attacker = attacker
if isPlayer(attacker) == TRUE then
doSendAnimatedText(getPlayerPosition(cid), "XYZ!", 18)
end
end
return true
end
How to detect a PLAYER actually dealing damage to anything? This of course don't work. And yes, it is added to login and creaturescripts.