There is no frequent server save script.
How can i enable frequest server save? like every 15 mins. (Saving both players and houses)
function onThink(interval)
doSaveServer(false) -- true = pay houses
return true
end
I tried to add all my "avesta" npcs to the othire "npc" folder.
It did not work as planned, none of the npcs will load.
Why is that? can someone share their npcs or tell me how to convert them to work with othire?
xampp , universer it doest not matter you have to add some tables to your database check at tutorials sections znote acc tables
local shutdownAtServerSave = false
local function serverSave()
if shutdownAtServerSave then
doSetGameState(GAME_STATE_CLOSED)
doSaveServer(true)
doSetGameState(GAME_STATE_SHUTDOWN)
else
doSetGameState(GAME_STATE_NORMAL)
doSaveServer(true)
doSetGameState(GAME_STATE_NORMAL)
end
end
local function secondServerSaveWarning()
addEvent(serverSave, 60000)
end
local function firstServerSaveWarning()
addEvent(secondServerSaveWarning, 120000)
end
function onThink(interval)
doSetGameState(GAME_STATE_NORMAL)
addEvent(firstServerSaveWarning, 120000)
return true
end
<globalevent name="yourserversave" interval="480000" script="everyeightminutes.lua"/>
There is no frequent server save script.
How can i enable frequest server save? like every 15 mins. (Saving both players and houses)
function onThink(interval)
doSaveServer(false) -- true = pay houses
return true
end
Add this script in globalevents
Lua:function onThink(interval) doSaveServer(false) -- true = pay houses return true end
Then declare it in globalevents.xml and set whatever interval you want
Then you did not do it rightThis didnt work, will test evansiruis script now.
Then you did not do it right
function onThink(interval)
doSaveServer(false) -- true = pay houses
return true
end
how did you solve it?Got it to work, thank you so much @ond <3 best