Jump to content

Maintenance Mode


shan

Recommended Posts


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  24
  • Reputation:   0
  • Joined:  07/22/12
  • Last Seen:  

How can we fix the server without the players that only admin and Developers can log in?

Edited by shan
edited title and content.
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  414
  • Reputation:   102
  • Joined:  11/13/11
  • Last Seen:  

Well there's an @maintenance command from a few months ago, idk if it still work with the latest revisions. :x

http://rathena.org/b...enance-command/

Or just use this?

conf/login_athena.conf

// Required account group id to connect to server.
// -1: disabled
// 0 or more: group id
group_id_to_connect: -1


// Minimum account group id required to connect to server.
// Will not function if group_id_to_connect config is enabled.
// -1: disabled
// 0 or more: group id
min_group_id_to_connect: -1

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  24
  • Reputation:   0
  • Joined:  07/22/12
  • Last Seen:  

Thank you ill going to try it

hope it work :( i really need to fix my server...

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:  

Here's something for the maintenance mode functionality.. I didn't figure out how to check group id in the character server, w/c is why I'm using account id..

Index: char.c
===================================================================
--- char.c (revision 16496)
+++ char.c (working copy)
@@ -3524,7 +3526,14 @@
 WFIFOSET(fd,3);
 break;
   }
-
+   if(char_maintenance == 1 && sd && sd->account_id != 2000000)
+   {
+    WFIFOHEAD(fd,3);
+    WFIFOW(fd,0) = 0x6c;
+    WFIFOB(fd,2) = 0;// rejected from server
+    WFIFOSET(fd,3);
+    break;
+   }
   // search authentification
   node = (struct auth_node*)idb_get(auth_db, account_id);
   if( node != NULL &&

to add more account ids,edit this line

if(char_maintenance == 1 && sd && sd->account_id != 2000000)

make it like this

if(char_maintenance == 1 && sd && (sd->account_id != 2000000 || sd->account_id != 2000001 || sd->account_id != 2000002 || sd->account_id != 2000003))

To activate maintenance mode, open conf/char_athena.conf

set it to 1

// Type of server.
// No functional side effects at the moment.
// Displayed next to the server name in the client.
// 0=normal, 1=maintenance, 2=over 18, 3=paying, 4=P2P
char_maintenance: 1

15mjtzd.jpg

What Eurydice said is easier, what I've provided is mainly for server cosmetics.

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
Reply to this topic...

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