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

Windows TFS 1.2 [10.9x] /shutdown command

kladi

New Member
Joined
Jun 20, 2008
Messages
62
Reaction score
0
Hello,
I have TFS 1.2 compiled for x64 win version. But I can not find this command in this server /shutdown.

Can anyone write or give link for this command, with talkaction in game like:

Server is going down in xx minutes, go to Protection Zone, please!


It would be very helpfull for me!
Thank You!
 
Hello,
I have TFS 1.2 compiled for x64 win version. But I can not find this command in this server /shutdown.

Can anyone write or give link for this command, with talkaction in game like:

Server is going down in xx minutes, go to Protection Zone, please!


It would be very helpfull for me!
Thank You!
/closeserver shutdown


It's the same talkaction just a another name.
 
Yes I know, but there is a problem if I do that then all players will be cicked of without any info that this server is going off for a while.That information that server is going down in example 5 minutes is not giving. You know that is to brutal for players if they are on a quest or some bosses.


I need something like this:


Code:
function prepareShutdown(minutes) if(minutes <= 0) then
doSetGameState(GAMESTATE_SHUTDOWN)
return false
end


if(minutes == 1) then
doBroadcastMessage("Server is going down in " .. minutes .. " minute for global save, please log out now!")
elseif(minutes <= 3) then
doBroadcastMessage("Server is going down in " .. minutes .. " minutes for global save, please log out.")
else
doBroadcastMessage("Server is going down in " .. minutes .. " minutes for global save.")
end


shutdownEvent = addEvent(prepareShutdown, 60000, minutes - 1)
return true
end


function onTime(interval)
return prepareShutdown(10)
end


XML:

Code:
<globalevent name="shutdown" time="06:50" event="script" value="shutdown.lua"/>


But this doesn´t work on TFS 1.2 :/
 
Last edited:
Back
Top