Jump to content
  • 0

@maintenance command


Jamy

Question


  • Group:  Members
  • Topic Count:  23
  • Topics Per Day:  0.01
  • Content Count:  54
  • Reputation:   0
  • Joined:  02/14/12
  • Last Seen:  

Hello I was wondering how to create a command that causes the server to enter for maintenance when typing the command giving en kick all players and not letting them connect until the command is enabledagain.

Link to comment
Share on other sites

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  104
  • Topics Per Day:  0.03
  • Content Count:  290
  • Reputation:   3
  • Joined:  09/29/13
  • Last Seen:  

Hello there, can anyone update this source file that can be compatible for the latest rAthena Emulator?

Thanks

  • Upvote 1
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:  

Quick question. Are you using eAthena or rAthena? Because if you're using rAthena, I'd have to make my script differently.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  40
  • Topics Per Day:  0.01
  • Content Count:  530
  • Reputation:   33
  • Joined:  01/17/12
  • Last Seen:  

@Eden this would be a nice Feature if added to SVN in future release. and would benefit the Administrators much.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  67
  • Reputation:   23
  • Joined:  11/14/11
  • Last Seen:  

Hello I was wondering how to create a command that causes the server to enter for maintenance when typing the command giving en kick all players and not letting them connect until the command is enabledagain.

@maintenance → kick all players except Admin → change map-server status to Maintenance → tell char-server to change status to Maintenance

Player login → check if (server is in Maintenance and player is not an admin), if yes → block player

at_maintenance.patch

Usage: @maintenance <on/off>

  • Upvote 3
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  26
  • Topics Per Day:  0.01
  • Content Count:  2244
  • Reputation:   182
  • Joined:  11/19/11
  • Last Seen:  

nice

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:  

Beat me to it! Haha nice one. :D

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:  

yes, this is a brilliant idea.

anyway just to make easy for you Eden,

How about

Check if GM LEVEL = N

N stands for the level of Game Master so we can allow Sub-GMs to test it inside the game.

if GM Level = 0 or 1

autokick.. or they will logout automatically.

Edited by Jezu
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  39
  • Topics Per Day:  0.01
  • Content Count:  386
  • Reputation:   15
  • Joined:  11/17/11
  • Last Seen:  

Sounds the IDEA is very nice, thanks for the 'Diff' FataError.

Release it on 'Source Modifcations' so that it can easily to find the modifications you made.

Thank you Again!

Regards,

Mindless

Edited by Mindless
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  27
  • Reputation:   5
  • Joined:  11/19/11
  • Last Seen:  

I hate when people do same thing that i already have written for my server. :D

Anyway, gw!

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  70
  • Topics Per Day:  0.02
  • Content Count:  1245
  • Reputation:   392
  • Joined:  11/19/11
  • Last Seen:  

Love the idea. Very useful!

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  40
  • Topics Per Day:  0.01
  • Content Count:  530
  • Reputation:   33
  • Joined:  01/17/12
  • Last Seen:  

possible to change the Message Rejected from Server to Server Maintenance?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  69
  • Topics Per Day:  0.02
  • Content Count:  1315
  • Reputation:   372
  • Joined:  12/10/11
  • Last Seen:  

possible to change the Message Rejected from Server to Server Maintenance?

Try looking at the msgstringtable or the lua file for it.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  40
  • Topics Per Day:  0.01
  • Content Count:  530
  • Reputation:   33
  • Joined:  01/17/12
  • Last Seen:  

it might also affect the other Message when Map server is still loading.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  94
  • Topics Per Day:  0.02
  • Content Count:  2192
  • Reputation:   252
  • Joined:  11/11/11
  • Last Seen:  

Could you possibly provide a diff patch for those who are currently with eAthena still?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  23
  • Topics Per Day:  0.01
  • Content Count:  54
  • Reputation:   0
  • Joined:  02/14/12
  • Last Seen:  

If someone could make one for eAthena, because I am still configuring rathena not have much time to move through the emulator then take a while to change.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  8
  • Reputation:   0
  • Joined:  03/11/12
  • Last Seen:  

I'm developing this and I'll post when I complete the tests, probably on Saturday

Edited by Heaven_BR
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  23
  • Topics Per Day:  0.01
  • Content Count:  54
  • Reputation:   0
  • Joined:  02/14/12
  • Last Seen:  

okay Heaven

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  54
  • Reputation:   24
  • Joined:  11/22/11
  • Last Seen:  

Not a bad command indeed, gj.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  67
  • Reputation:   23
  • Joined:  11/14/11
  • Last Seen:  

Could you possibly provide a diff patch for those who are currently with eAthena still?

oh well..

at_maintenance_eathena_r15077_sql.patch

possible to change the Message Rejected from Server to Server Maintenance?

WFIFOHEAD(fd,3);
WFIFOW(fd,0) = 0x6c;
WFIFOB(fd,2) = 0; // <-- CHANGE 0 TO 1
WFIFOSET(fd,3);
break;

It should change the message to: "You cannot use this ID on this server."

search for that line in msgstringtable.txt and edit it..

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  94
  • Topics Per Day:  0.02
  • Content Count:  2192
  • Reputation:   252
  • Joined:  11/11/11
  • Last Seen:  

Thanks a lot dude! Not Much was really affected from what I see o_o

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  40
  • Topics Per Day:  0.01
  • Content Count:  530
  • Reputation:   33
  • Joined:  01/17/12
  • Last Seen:  

@FatalEror Thanks man God Bless you.

Fix is Working Thanks FatalEror.

Edited by ngek202
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  39
  • Topics Per Day:  0.01
  • Content Count:  386
  • Reputation:   15
  • Joined:  11/17/11
  • Last Seen:  

Could you possibly provide a diff patch for those who are currently with eAthena still?

oh well..

at_maintenance_eathena_r15077_sql.patch

possible to change the Message Rejected from Server to Server Maintenance?

WFIFOHEAD(fd,3);
WFIFOW(fd,0) = 0x6c;
WFIFOB(fd,2) = 0; // <-- CHANGE 0 TO 1
WFIFOSET(fd,3);
break;

It should change the message to: "You cannot use this ID on this server."

search for that line in msgstringtable.txt and edit it..

Much better if you could 'UPDATE' the latest rAthena SVN.

Thank you.

Yours,

Mindless

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  318
  • Topics Per Day:  0.07
  • Content Count:  931
  • Reputation:   13
  • Joined:  12/20/11
  • Last Seen:  

nice idea. . Does ths work in eathena

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  39
  • Topics Per Day:  0.01
  • Content Count:  386
  • Reputation:   15
  • Joined:  11/17/11
  • Last Seen:  

WTF? please do read what 'FATALERROR' says, he also diff for eAthena.

Links: http://rathena.org/board/topic/59786-maintenance-command/page__view__findpost__p__85436

Please read don't be stup!d.

Yours,

Mindless

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.00
  • Content Count:  235
  • Reputation:   55
  • Joined:  12/02/11
  • Last Seen:  

This is very useful!

Edited by Kaze
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...