Jump to content
EvilPuncker

@shutdown command

@shutdown command  

19 members have voted

You do not have permission to vote in this poll, or see the poll results. Please sign in or register to vote in this poll.

Recommended Posts

I would like to suggest an in-game safe method to shutdown the server, my ideas for the command follows:

@shutdown <time in minutes>

so an admin would use for example @shutdown 5

then there will start a broadcast every 1 minute telling "Server is going down in X minutes, we will come back soon." and then it would kick all players then save them and finally close map,login and char servers.

don't flame telling that it is possible to make it manually via X or Y way, my suggestion is that, if you don't like just leave since i'm not going to argue with anyone xd

Link to comment
Share on other sites

It's inherently insecure to allow closing login/char servers through a mapserver command, especially since you can run multiple mapservers per login. o.o

Link to comment
Share on other sites

No for me

for me...

its lame.. cause no RO Server(ofc) will do maintenance (server side)

without accessing the server where is it hosted...

btw

why you want 3 of them to go exit automatically?

i think killing login and char is safe when you do it manually or possible

send delay time after map server goes down to char then login or login to char (whatever)

Link to comment
Share on other sites

Automatic countdown...

But that's something you can do via script. Trigger it via a whisper or some kind of NPC that only Administrators can access it, and when you trigger, it will announce in how much time (~~APROX) the server may be offline.

Link to comment
Share on other sites

Automatic countdown...

But that's something you can do via script. Trigger it via a whisper or some kind of NPC that only Administrators can access it, and when you trigger, it will announce in how much time (~~APROX) the server may be offline.

Like this...

- script Shutdown -1,{
end;

OnWhisperGlobal:
if( getgmlevel() < 60 )
end;
if( @whispervar0$ == "stop" )
{
stopnpctimer;
announce "-- Server Shutdown canceled by Game Master --",0,0xFFA500;
end;
}

if( set(.Minutes, atoi(@whispervar0$)) <= 0 )
end;

initnpctimer;
announce "-- Server Shutdown in " + .Minutes + " minute(s) --",0,0xFFA500;
end;

OnTimer60000:
set .Minutes, .Minutes - 1;
announce "-- Server Shutdown in " + .Minutes + " minute(s) --",0,0xFFA500;
if( .Minutes == 1 )
{.
end;
}

initnpctimer;
end;

OnTimer90000:
announce "-- Server Shutdown in 30 seconds --",0,0xFFA500;
end;

OnTimer100000:
announce "-- Server Shutdown in 20 seconds --",0,0xFFA500;
end;

OnTimer110000:
announce "-- Server Shutdown in 10 seconds --",0,0xFFA500;
end;

OnTimer115000:
announce "-- We will be back soon. Bye bye --",0,0x00BFFF;
end;

OnTimer120000:
atcommand "@mapexit";
end;
}

Edited by Eden
  • Upvote 1
Link to comment
Share on other sites

Well what I meant was that but, closing map, login and char manually though.

Link to comment
Share on other sites

It is not safe to close all servers, @mapexit will do the job by script function. You will rain out reports about Roll Backs by your players..

Edited by Jezu
Link to comment
Share on other sites

It is not safe to close all servers, @mapexit will do the job by script function. You will rain out reports about Roll Backs by your players..

Indeed. I forgot what which server I think char, but it needs some time to save up all of the character's data before it can actually be closed.

Link to comment
Share on other sites

@kickall

@mapexit

That is the chain you need to follow. The kick all will forcefully make the server save all characters who are online. Then you can map exit safely.

Edited by Aleos
  • Upvote 2
Link to comment
Share on other sites

Well of course you gotta know when you can turn it off lol. It's not just like that.

Link to comment
Share on other sites

It was meant to be an addon to Eden's script. But the original topic starter wants an actual command rather than a script.

Link to comment
Share on other sites



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.