Olddies
Classicot.com
HELLO I WANT TO KNOW IF THERE IS ANY WAY TO MAKE AUTO SERVER SAVE.. I'M USING AVESTA 7.6
function onThink(interval)
doSaveServer(true) -- true = global save
print("Server was saved: " .. os.date())
end
<globalevent name="save" interval="300000" script="save.lua"/>
wich avesta are you using ?
this should work, put it in your config.lua
Code:-- Example: 10 <= every 10 minutes automatic server save servesave = 60
Use OTHire.I have this options in my CONFIG.LUA, but it do not works![]()
-- globalevents.xml
-- only save players, 1000 = 1s, 900000 = 15m
-- <globalevent name="TimedSave" interval="900000" event="script" script="autosave.lua"/>
function onThink(interval, lastExecution, thinkInterval)
local PlayersOnline = getPlayersOnlineList()
for o = 1, table.maxn(PlayersOnline) do
doSavePlayer(PlayersOnline[o])
end
print(" - Server saved. " ..os.date("%d %b %H:%M", (os.time())))
doBroadcastMessage("Server is saving.")
return true
end