- Joined
- Mar 3, 2016
- Messages
- 40
- Solutions
- 2
- Reaction score
- 20
These days a friend (Xeraphus) here on the forum helped me to set up this script:
It works like this: When the player dies, he loses 0.02% of all life and mana.
But the script is running in the arena,
where should not have any kind of penalty, how I can modify it so that this penalty does not occur in arenas?
Code:
function onPrepareDeath(cid, lastHitKiller, mostDamageKiller)
setCreatureMaxHealth(cid, getCreatureMaxHealth(cid) *0.998)
setCreatureMaxMana(cid, getCreatureMaxMana(cid) *0.998)
end
return true
end
It works like this: When the player dies, he loses 0.02% of all life and mana.
But the script is running in the arena,
where should not have any kind of penalty, how I can modify it so that this penalty does not occur in arenas?