Ah, that's true.
local function Heal(cid, amount, left)
if (!isPlayer(cid)) return; end
doCreatureAddHealth(cid, amount);
if (left > 0)
addEvent(Heal,500,cid,amount,left-1)
end
end
function onCastSpell(cid, var)
Heal(cid, getPlayerLevel(cid)*10+100, 10);
return true
end