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

Need Help with map cleaing!

leeebux

Awsome
Joined
May 18, 2009
Messages
116
Reaction score
17
Location
Sweden
Hello all!

I got a problem with map cleaning, Its happend to often, and i dont have the fastet server computer, so i was wounder if i could change it so its only save like 2times at day, so 12hours delay, Using TFS 3.6.1p

Rep++ to the one that got the answer i'm seaching for! :)
 
Last edited:
replace this in your globalevenst.xml
Code:
	<globalevent name="clean" interval="43200" script="clean.lua"/>

There it cleans after 12 hours

and this in clean.lua
LUA:
function executeClean()
	doCleanMap()
	doBroadcastMessage("Game map cleaned, next clean in 12 hours.")
	return true
end

function onThink(interval, lastExecution, thinkInterval)
	doBroadcastMessage("Game map cleaning within 30 seconds, please pick up your items!")
	addEvent(executeClean, 30000)
	return true
end
 
Back
Top