• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • New resources must be posted under Resources tab. A discussion thread will be created automatically, you can't open threads manually anymore.

Full HP/Mana each level

Code:
function onAdvance(cid, skill, oldlevel, newlevel)

if skill == SKILL__LEVEL then
doCreatureAddHealth(cid, getCreatureMaxHealth(cid) - getCreatureHealth(cid))
doCreatureAddMana(cid, getCreatureMaxMana(cid) - getCreatureMana(cid))
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_MAGIC_BLUE)
end
return TRUE
end
Where I have to paste it?
PMM please.
 
Code:
function onAdvance(cid, skill, oldlevel, newlevel)

if skill == SKILL__LEVEL then
doCreatureAddHealth(cid, getCreatureMaxHealth(cid) - getCreatureHealth(cid))
doCreatureAddMana(cid, getCreatureMaxMana(cid) - getCreatureMana(cid))
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_MAGIC_BLUE)
end
return TRUE
end
Where I have to paste it?
PMM please.
read it: http://otland.net/threads/full-hp-and-mp-when-level-up.46080/
 
Back
Top