• 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!

GlobalEvent [Auto save + broadcast]

NilssoN042

Banned User
Joined
Sep 8, 2008
Messages
998
Reaction score
2
Location
Sweden, Helsingborg
Hello! This is the frist script I ever edited!
I took "broadcasting" from a clean script and putted it into a server save script, so it broadcast and save the servers.



Script that I "edited" = serversave script + broadcasting:
Code:
function executeSaveServer()
	doSaveServer()
	doBroadcastMessage("Server saved, next save in 30 minutes.")
	return true
end

function onThink(interval, lastExecution, thinkInterval)
    doBroadcastMessage("Automatic Serversave in 10seconds!")
	addEvent(executeSaveServer, 10000)
	return true
end

Edit in your globalevent "interval" to 1800. The server will save 1 time each 30minutes.
Code:
<globalevent name="save" interval="1800" event="script" value="save.lua"/>

I know that this already exist but I just tried to make it work :p and I did it!


I know that Iam a noob in scripting...

REP ME if you like it :p
 
lol why releasing something that already exists?
anyway keep scripting
 
hm did you know that it has been scripted like that for stability?
 
Rox. Now make other script = maybe.. rox new script? instead of roxxest oldest?:S
 
Back
Top