• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

AutoSave in Sources [outdated]

just do it through lua

global events and set interval to whatever you want it in the xml

LUA:
function onThink(cid, interval, lastExecution)
	return doSaveServer()
end
 
"Okay, many people started searching this.
This is fully working feature, that doesn't cause lags like .lua ones." - Elf

C++ = No/less lag
.lua = lag
 
How do you know that it doesn't cause lag if it is outdated?
Saving 500 players will always take some time and its not like u are saving every 2 seconds.
 
"Okay, many people started searching this.
This is fully working feature, that doesn't cause lags like .lua ones." - Elf

C++ = No/less lag
.lua = lag

That thread is from 2008. A lot has changed since then, and regardless if you're doing it via C++ / Lua you will still have the same outcome. Just because you do it in C++ doesn't mean it will take no time to save.. like Summ said you're not saving every 2 seconds, and it will always take some time.
 

Similar threads

Back
Top