R
Rozinx
Guest
Is that possible?
Cause I've been having some issues with level 500s killing level 100s
Cause I've been having some issues with level 500s killing level 100s
function onStatsChange(cid, attacker, type, combat, value)
if isPlayer(cid) and isPlayer(attacker) and type == STATSCHANGE_HEALTHLOSS and getPlayerLevel(attacker) > math.floor(getPlayerLevel(cid)/2) then
return false
end
return true
end
Also if STATSCHANGE_MANALOSS, because of attacked player has mana shield.onAttack(cid, target)
doesn't have damage amount, sorry
onStatsChange(cid, attacker, type, combat, value)
oh look this one does have it
well onAttack I think does not cover area attacks
this one is abs, theoretically this is what he wants
LUA:function onStatsChange(cid, attacker, type, combat, value) if isPlayer(cid) and isPlayer(attacker) and type == STATSCHANGE_HEALTHLOSS and getPlayerLevel(attacker) > math.floor(getPlayerLevel(cid)/2) then return false end return true end
onAttack(cid, target)
doesn't have damage amount, sorry
onStatsChange(cid, attacker, type, combat, value)
oh look this one does have it
well onAttack I think does not cover area attacks
this one is abs, theoretically this is what he wants
LUA:function onStatsChange(cid, attacker, type, combat, value) if isPlayer(cid) and isPlayer(attacker) and type == STATSCHANGE_HEALTHLOSS and getPlayerLevel(attacker) > math.floor(getPlayerLevel(cid)/2) then return false end return true end