alguem pode colocar pra so upar healando quem for lvl 150k pra baixo?
porque nesse script qualquer lvl upa e heala toda life e mana, quero que so noob do lvl 150k pra baixo heale upando
function onAdvance(cid, skill, oldlevel, newlevel) if skill == 8 then if oldlevel < newlevel then local addmana = getPlayerMaxMana(cid) local addhp = getCreatureMaxHealth(cid) local addattribute = (getPlayerStorageValue(cid, 47061)+(newlevel-oldlevel)*2) doSendAnimatedText(getPlayerPosition(cid), "Level UP", 129) -- will show a hovering text of "Level Up" doSendMagicEffect(getPlayerPosition(cid),math.random(28, 30)) -- will show the range of fireworks doCreatureAddHealth(cid, addhp) -- will give max Hp after level up doPlayerAddMana(cid, addmana) -- Will give Max mana after level up setPlayerStorageValue(cid, 47061, addattribute) -- Will add 2 attribute points after level end end return true end
aqui o script!
UPP?