Hello!
i want message befor server save like:
"Server save in 30 sec!"
After 30 sec (after save):
"Server save done, next save in 30 minutes."
Thanks![]()
local function saveGame()
saveServer()
doBroadcastMessage("Next save in 30 minutes.")
return TRUE
end
function onThink(interval, lastExecution)
doBroadcastMessage("Saving Server in 30 seconds.")
addEvent(saveGame, 30000)
return TRUE
end
he talk about global events
function executeSave()
saveServer()
doBroadcastMessage("Server save done, next save in 30 minutes.")
return TRUE
end
function onThink(interval, lastExecution)
doBroadcastMessage("Server save in 30 sec!.")
addEvent(executeSave, 300000)
return TRUE
end
not testedd and how much time must be execute save you must configure;P
you put this to sctrips in folder globalevents and in global.xml
<globalevent name="save" interval="57600" script="nameofyourscript.lua"/>
interval is time fot how much is ss and addEvent(executeSave, 300000) is time when you see the message then 30 seconds you must put there 30 000