function onAdvance(cid, skill, oldlevel, newlevel)
local H = getCreatureMaxHealth(cid)
local M = getCreatureMaxMana(cid)
if skill == SKILL__LEVEL then
doCreatureAddHealth(cid, H)
doCreatureAddMana(cid, M)
doSendMagicEffect(getCreaturePosition(cid), 12)
end
return true
end