I want to make a script: when someone advances in level, script gives him full mana and hp. Simple script and I don't know why it doesn't work. When advance --> nothing happens. Creaturescript ofc
Tibia : 8.5
Engine : TFS 0.3.5PL1
TIA
Tibia : 8.5
Engine : TFS 0.3.5PL1
Code:
function onAdvance(cid, fromPosition, toPosition, oldlevel, newlevel)
local ppos = getPlayerPosition(cid)
doSendMagicEffect(ppos, CONST_ME_BIGCLOUDS)
doCreatureAddHealth(cid, 9999)
doPlayerAddMana(cid, 9999)
end
TIA