Worried because when your server crash the players loss a lot of level/skills/addons/items?, so this script is your solution.
It save the character on each advance, it doesn't matter if is level or skill, it will save it.
Remember add this to login.lua:
And that's it eace:
It save the character on each advance, it doesn't matter if is level or skill, it will save it.
PHP:
<event type="advance" name="advance" event="script" value="advance.lua"/>
Lua:
function onAdvance(cid, skill, oldlevel, newlevel)
doPlayerSave(cid)
end
Remember add this to login.lua:
Lua:
registerCreatureEvent(cid, "advance")
And that's it eace:
Last edited: