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

What is this ?!?! [NEED HELP]

lubbe1995

New Member
Joined
Dec 1, 2010
Messages
3
Reaction score
0
When I start my TheForgottenServer it comes up:

>Broadcasted message: "Full server save within 120 seconds, please min it may freeze!"
And that comes up like 100000 times!!!
What can I do to fix it ?
 
go to /server/data/globalevents/scripts/save.lua
and paste this in there
Code:
dofile("./_woe.lua")

local config = {
	broadcast = {120, 30},
	shallow = "no",
	delay = 120,
	events = 30
}

config.shallow = getBooleanFromString(config.shallow)

local function executeSave(seconds)
	if(isInArray(config.broadcast, seconds)) then
		local text = ""
		if(not config.shallow) then
			text = "Full s"
		else
			text = "S"
		end

		text = text .. "erver save within " .. seconds .. " seconds, please mind it may freeze!"
		doBroadcastMessage(text)
	end

	if(seconds > 0) then
		addEvent(executeSave, config.events * 1000, seconds - config.events)
	else
		doSaveServer(config.shallow)
	end
end

function onTime()
	if Woe.isTime() or Woe.isStarted() then
		return true
	end

	if(table.maxn(config.broadcast) == 0) then
		doSaveServer(config.shallow)
	else
		executeSave(config.delay)
	end

	return true
end
 
go to /server/data/globalevents/scripts/save.lua
and paste this in there
Code:
dofile("./_woe.lua")

local config = {
	broadcast = {120, 30},
	shallow = "no",
	delay = 120,
	events = 30
}

config.shallow = getBooleanFromString(config.shallow)

local function executeSave(seconds)
	if(isInArray(config.broadcast, seconds)) then
		local text = ""
		if(not config.shallow) then
			text = "Full s"
		else
			text = "S"
		end

		text = text .. "erver save within " .. seconds .. " seconds, please mind it may freeze!"
		doBroadcastMessage(text)
	end

	if(seconds > 0) then
		addEvent(executeSave, config.events * 1000, seconds - config.events)
	else
		doSaveServer(config.shallow)
	end
end

function onTime()
	if Woe.isTime() or Woe.isStarted() then
		return true
	end

	if(table.maxn(config.broadcast) == 0) then
		doSaveServer(config.shallow)
	else
		executeSave(config.delay)
	end

	return true
end
Isnt it the interval at globalevents.xml? What does the script have to do :p
 
Back
Top