fullmh.lua and inside it addfunction onAdvance(cid, skill, oldlevel, newlevel)
if skill == SKILL__LEVEL then
doCreatureAddHealth(cid, getCreatureMaxHealth(cid))
doCreatureAddMana(cid, getCreatureMaxMana(cid))
end
return true
end
creaturescript.xml<event type="advance" name="fullmh" event="script" value="fullmh.lua"/>
registerCreatureEvent(cid, "fullmh")
8.6You didn't say what TFS are you using but you can try this one mana/hp on advance
fullmh.lua and inside it addfunction onAdvance(cid, skill, oldlevel, newlevel)
if skill == SKILL__LEVEL then
doCreatureAddHealth(cid, getCreatureMaxHealth(cid))
doCreatureAddMana(cid, getCreatureMaxMana(cid))
end
return true
end
creaturescript.xml<event type="advance" name="fullmh" event="script" value="fullmh.lua"/>
registerCreatureEvent(cid, "fullmh")
Well thank you I'll try thisOkey, Open data/creaturescripts/scripts then addfullmh.luaand inside it add
then inLUA:function onAdvance(cid, skill, oldlevel, newlevel) if skill == SKILL__LEVEL then doCreatureAddHealth(cid, getCreatureMaxHealth(cid)) doCreatureAddMana(cid, getCreatureMaxMana(cid)) end return true endcreaturescript.xml
add
and in data/creaturescripts/scripts/login.lua addXML:<event type="advance" name="fullmh" event="script" value="fullmh.lua"/>
That's the most simple I can explain since it seems that you don't understand.LUA:registerCreatureEvent(cid, "fullmh")
TFS 0.3.6You didn't say what TFS are you using but you can try this one mana/hp on advance