function onAdvance(cid, skill, oldlevel, newlevel)
local ppos = getPlayerPosition(cid)
if newlevel > oldlevel then
doSendAnimatedText(ppos, "Level Up", 210)
doSendMagicEffect(ppos, 28)
doCreatureAddHealth(cid, getCreatureMaxHealth(cid))
doPlayerAddMana(cid, getCreatureMaxMana(cid))
end
return true
end