function onAdvance(cid, skill, oldlevel, newlevel)
if newlevel > oldlevel then
doCreatureAddHealth(cid, getCreatureMaxHealth(cid))
doPlayerAddMana(cid, getCreatureMaxMana(cid))
end
return true
end
can you make the script so that it can only add 200 hp and 100 mana?
function onAdvance(cid, skill, oldlevel, newlevel)
if newlevel > oldlevel then
m = getCreatureMaxMana(cid) * 0.85
h = getCreatureMaxHealth(cid) * 0.85
doCreatureAddHealth(cid, h)
doCreatureAddMana(cid, m)
end
return true
end