Jump to content

@shutdown command


EvilPuncker

@shutdown command  

20 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


  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.00
  • Content Count:  713
  • Reputation:   70
  • Joined:  11/08/11
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  72
  • Topics Per Day:  0.02
  • Content Count:  2997
  • Reputation:   1130
  • Joined:  05/27/12
  • Last Seen:  

Uh... @mapexit?

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.00
  • Content Count:  713
  • Reputation:   70
  • Joined:  11/08/11
  • Last Seen:  

Uh... @mapexit?

close map,login and char

hope it is clear enough?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  72
  • Topics Per Day:  0.02
  • Content Count:  2997
  • Reputation:   1130
  • Joined:  05/27/12
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.00
  • Content Count:  713
  • Reputation:   70
  • Joined:  11/08/11
  • Last Seen:  

that was just an idea =D they can make it secure btw

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  967
  • Reputation:   53
  • Joined:  11/13/11
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  392
  • Reputation:   47
  • Joined:  11/18/11
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  28
  • Topics Per Day:  0.01
  • Content Count:  218
  • Reputation:   16
  • Joined:  01/24/12
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  392
  • Reputation:   47
  • Joined:  11/18/11
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  29
  • Topics Per Day:  0.01
  • Content Count:  566
  • Reputation:   34
  • Joined:  11/17/11
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  28
  • Topics Per Day:  0.01
  • Content Count:  218
  • Reputation:   16
  • Joined:  01/24/12
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.00
  • Content Count:  754
  • Reputation:   186
  • Joined:  05/22/12
  • Last Seen:  

yeah it is better to leave char server running so it can save all characters.

Link to comment
Share on other sites


  • Group:  Development Manager
  • Topic Count:  56
  • Topics Per Day:  0.01
  • Content Count:  732
  • Reputation:   525
  • Joined:  12/13/11
  • Last Seen:  

@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


  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  392
  • Reputation:   47
  • Joined:  11/18/11
  • Last Seen:  

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


  • Group:  Development Manager
  • Topic Count:  56
  • Topics Per Day:  0.01
  • Content Count:  732
  • Reputation:   525
  • Joined:  12/13/11
  • Last Seen:  

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...