Hello,
someone can explain me how to create creaturescript, that work when monster `X` die, and player deal more than 33% damage to that monster.
Currently im using script, that only player who lastHit recive something. Idk how to change this.
someone can explain me how to create creaturescript, that work when monster `X` die, and player deal more than 33% damage to that monster.
Currently im using script, that only player who lastHit recive something. Idk how to change this.
Code:
function onKill(cid, target, lastHit)
if isMonster(target) and getCreatureName(target):lower() == 'x' then
if lastHit then
--code
end
end
return true
end