function onAdvance(cid, skill, oldlevel, newlevel)
if skill == SKILL__LEVEL then
doPlayerAddMana(cid, getCreatureMaxMana(cid))
doCreatureAddHealth(cid, getCreatureMaxHealth(cid))
end
return true
end
ALL HP/MANA
050-function.lua
function isInBattle(cid) -- blazingfire
return isPlayer(cid) and getCreatureCondition(cid, CONDITION_INFIGHT)
end
in script
if isInBattle(cid) then