Jamy Posted March 4, 2012 Group: Members Topic Count: 23 Topics Per Day: 0.00 Content Count: 54 Reputation: 0 Joined: 02/14/12 Last Seen: September 6, 2013 Share Posted March 4, 2012 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. Quote Link to comment Share on other sites More sharing options...
Tempo Posted March 19, 2012 Group: Members Topic Count: 4 Topics Per Day: 0.00 Content Count: 26 Reputation: 0 Joined: 11/19/11 Last Seen: March 19, 2012 Share Posted March 19, 2012 Hi, I have a question is this @maintenance command works in 3ceam? thanks! Quote Link to comment Share on other sites More sharing options...
ngek202 Posted April 7, 2012 Group: Members Topic Count: 40 Topics Per Day: 0.01 Content Count: 530 Reputation: 33 Joined: 01/17/12 Last Seen: August 16, 2017 Share Posted April 7, 2012 Hmm how do you make it GM's with group_id ranges from 80 above not get kicked can still enter Server during maintenance? tried editing this line: if( runflag != CHARSERVER_ST_RUNNING && (runflag != CHARSERVER_ST_MAINTENANCE || group_id != 99) ) to group_id >= 99) ) also this one if (atoi(data) != 99) { to if (atoi(data) >= 80) { still kicks GM level 80 doesnt seem to work. Quote Link to comment Share on other sites More sharing options...
Brian Posted April 7, 2012 Group: Members Topic Count: 75 Topics Per Day: 0.02 Content Count: 2223 Reputation: 593 Joined: 10/26/11 Last Seen: June 2, 2018 Share Posted April 7, 2012 There is a config in ../conf/login_athena.conf // Required account group id to connect to server. // -1: disabled // 0 or more: group id group_id_to_connect: -1 Quote Link to comment Share on other sites More sharing options...
ngek202 Posted April 7, 2012 Group: Members Topic Count: 40 Topics Per Day: 0.01 Content Count: 530 Reputation: 33 Joined: 01/17/12 Last Seen: August 16, 2017 Share Posted April 7, 2012 There is a config in ../conf/login_athena.conf // Required account group id to connect to server. // -1: disabled // 0 or more: group id group_id_to_connect: -1 @Brian how do you configure it? group_id_to_connect: 80? Quote Link to comment Share on other sites More sharing options...
China Posted April 8, 2012 Group: Members Topic Count: 34 Topics Per Day: 0.01 Content Count: 152 Reputation: 4 Joined: 11/25/11 Last Seen: June 7, 2023 Share Posted April 8, 2012 I got an error, I tried patching this to rAthena trunk sql revision 15832. Below is the picture of my error, any clue? Quote Link to comment Share on other sites More sharing options...
Mystery Posted April 8, 2012 Group: Members Topic Count: 94 Topics Per Day: 0.02 Content Count: 2192 Reputation: 253 Joined: 11/11/11 Last Seen: June 24, 2020 Share Posted April 8, 2012 When it comes to those errors, I manually patch my source manually without using a patcher like TortoiseSVN for instance. Quote Link to comment Share on other sites More sharing options...
FatalEror Posted April 8, 2012 Group: Members Topic Count: 0 Topics Per Day: 0 Content Count: 67 Reputation: 23 Joined: 11/14/11 Last Seen: October 3, 2014 Share Posted April 8, 2012 Hmm how do you make it GM's with group_id ranges from 80 above not get kicked can still enter Server during maintenance? rAthena: Find: if( runflag != CHARSERVER_ST_RUNNING && (runflag != CHARSERVER_ST_MAINTENANCE || group_id != 99) ) Change to: if( runflag != CHARSERVER_ST_RUNNING && (runflag != CHARSERVER_ST_MAINTENANCE || group_id < 80) ) // Below 80 can't enter.. Find: if( (runflag == CHARSERVER_ST_RUNNING || (runflag == CHARSERVER_ST_MAINTENANCE && node->group_id == 99)) && Change to: if( (runflag == CHARSERVER_ST_RUNNING || (runflag == CHARSERVER_ST_MAINTENANCE && node->group_id >= 80)) && // Equal/Above 80 can login Find: if (atoi(data) != 99) { Change to: if (atoi(data) < 80) { //Below 80 can't login Find: if (pc_get_group_level(pl_sd) != 99) { // Only Admin(99) that will stay in maintenance Change to: if (pc_get_group_level(pl_sd) < 80) { // Kick player with group id below 80 eAthena: Find: < 99 Change to: < 80 Find: >= 99 Change to: >= 80 1 Quote Link to comment Share on other sites More sharing options...
Jhosef Posted April 8, 2012 Group: Members Topic Count: 98 Topics Per Day: 0.02 Content Count: 299 Reputation: 5 Joined: 04/05/12 Last Seen: September 9, 2012 Share Posted April 8, 2012 can u please upload this in the rar mode... because im having a hard time to know how to do this Quote Link to comment Share on other sites More sharing options...
Jamy Posted April 8, 2012 Group: Members Topic Count: 23 Topics Per Day: 0.00 Content Count: 54 Reputation: 0 Joined: 02/14/12 Last Seen: September 6, 2013 Author Share Posted April 8, 2012 (edited) Was adding the command in rathena when I was testing, he kicks only players in the map command is used and not all of the server. Edited April 8, 2012 by DeMoNiAC Quote Link to comment Share on other sites More sharing options...
China Posted April 9, 2012 Group: Members Topic Count: 34 Topics Per Day: 0.01 Content Count: 152 Reputation: 4 Joined: 11/25/11 Last Seen: June 7, 2023 Share Posted April 9, 2012 When it comes to those errors, I manually patch my source manually without using a patcher like TortoiseSVN for instance. Oh so , I'll have to open the patch file then do it manually on my own without patching it automatically instead? Quote Link to comment Share on other sites More sharing options...
ngek202 Posted April 11, 2012 Group: Members Topic Count: 40 Topics Per Day: 0.01 Content Count: 530 Reputation: 33 Joined: 01/17/12 Last Seen: August 16, 2017 Share Posted April 11, 2012 @FE Thanks again Sir Quote Link to comment Share on other sites More sharing options...
Elijah23 Posted April 15, 2012 Group: Members Topic Count: 46 Topics Per Day: 0.01 Content Count: 292 Reputation: 17 Joined: 12/12/11 Last Seen: Thursday at 02:33 PM Share Posted April 15, 2012 Yeah, anyone have 3ceam patch for this?.. Quote Link to comment Share on other sites More sharing options...
philfix.sai Posted April 15, 2012 Group: Members Topic Count: 2 Topics Per Day: 0.00 Content Count: 43 Reputation: 2 Joined: 04/15/12 Last Seen: November 6, 2018 Share Posted April 15, 2012 I don't want to make things complicated eathena -- // Indicate the minimum GM level of player that the server accepts to connection. // 0: all players (normal player are 0. it's default), 1-99: GM level at least with level x min_level_to_connect: 0 rathena -- // Required account group id to connect to server. // -1: disabled // 0 or more: group id group_id_to_connect: -1 Quote Link to comment Share on other sites More sharing options...
KaitoKid Posted April 15, 2012 Group: Members Topic Count: 9 Topics Per Day: 0.00 Content Count: 268 Reputation: 27 Joined: 12/06/11 Last Seen: March 13, 2015 Share Posted April 15, 2012 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> Thanks! Quote Link to comment Share on other sites More sharing options...
jharick Posted November 1, 2012 Group: Members Topic Count: 21 Topics Per Day: 0.00 Content Count: 77 Reputation: 3 Joined: 03/25/12 Last Seen: May 8, 2015 Share Posted November 1, 2012 someone who know how to work this commands in 3ceam? Quote Link to comment Share on other sites More sharing options...
MarkZD Posted November 7, 2012 Group: Members Topic Count: 6 Topics Per Day: 0.00 Content Count: 134 Reputation: 35 Joined: 02/27/12 Last Seen: April 5, 2022 Share Posted November 7, 2012 (edited) There's a problem on algorithm security: runflag = MAPSERVER_ST_MAINTENANCE; //Activate maintenance, disable all player except Admin to login Should be before the routine which kicks players from server, not after: + iter = mapit_getallusers(); + for (pl_sd = (TBL_PC*)mapit_first(iter); mapit_exists(iter); pl_sd = (TBL_PC*)mapit_next(iter)) { + if (pc_isGM(pl_sd) < 99) { // Kick anyone with level below Admin(99) + clif_GM_kick(NULL, pl_sd); + } + } + mapit_free(iter); As someone could get in right before the flag being set and just after kicking sequence. Also, apparently while flag is not set, if a player login and wait in char selection page, he just need to wait till kicking routine end to give Ok and play. Edited November 7, 2012 by MarkZD Quote Link to comment Share on other sites More sharing options...
Question
Jamy
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
41 answers to this question
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.