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

Lua serversave

lopez65

Member
Joined
May 10, 2012
Messages
294
Solutions
1
Reaction score
16
Location
Barcelona
hi
need someone to help me put in:
Code:
<globalevent name="ServerSave" time="09:55:00" script="serversave.lua"/>

and I need to make a saved every 4 hours, you would have to do?
Using TFS distro 1.0 and 1.5 SVN Znote
Greetings and thanks for reading
 
Code:
<globalevent name="ServerSave" interval="240000" script="serversave.lua"/>

Then change the function in the lua:
Code:
function onTime(interval)

to

Code:
function onThink(interval, lastExecution)
 
sorry did not know why the images are cloned: S

ok

I had forgotten works and put it in the globalevents.xml xDD but how long you put it?

SOLVED

thanks and regards
 
Have you updated your datapack to the latest? Since broadcast was removed from sources and moved to global.lua
 
Back
Top