shan Posted October 11, 2012 Group: Members Topic Count: 9 Topics Per Day: 0.00 Content Count: 24 Reputation: 0 Joined: 07/22/12 Last Seen: November 12, 2012 Share Posted October 11, 2012 (edited) How can we fix the server without the players that only admin and Developers can log in? Edited October 11, 2012 by shan edited title and content. Quote Link to comment Share on other sites More sharing options...
Eurydice Posted October 11, 2012 Group: Members Topic Count: 4 Topics Per Day: 0.00 Content Count: 414 Reputation: 103 Joined: 11/13/11 Last Seen: September 28, 2013 Share Posted October 11, 2012 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 Quote Link to comment Share on other sites More sharing options...
shan Posted October 11, 2012 Group: Members Topic Count: 9 Topics Per Day: 0.00 Content Count: 24 Reputation: 0 Joined: 07/22/12 Last Seen: November 12, 2012 Author Share Posted October 11, 2012 Thank you ill going to try it hope it work i really need to fix my server... Quote Link to comment Share on other sites More sharing options...
clydelion Posted October 11, 2012 Group: Members Topic Count: 17 Topics Per Day: 0.00 Content Count: 754 Reputation: 186 Joined: 05/22/12 Last Seen: October 15, 2022 Share Posted October 11, 2012 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 What Eurydice said is easier, what I've provided is mainly for server cosmetics. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.