AnnieRuru Posted January 2, 2014 Group: Members Topic Count: 18 Topics Per Day: 0.00 Content Count: 2044 Reputation: 682 Joined: 10/09/12 Last Seen: December 20, 2020 Share Posted January 2, 2014 http://rathena.org/board/topic/90766-gm-staff-online-status/?p=236954 weird, you both using same image ... Quote Link to comment Share on other sites More sharing options...
hendra814 Posted January 2, 2014 Group: Members Topic Count: 59 Topics Per Day: 0.01 Content Count: 1278 Reputation: 170 Joined: 06/12/12 Last Seen: 5 hours ago Share Posted January 2, 2014 @Annie That's right a same image. but i want use Emistry script, and just add status display ( online/offline) Quote Link to comment Share on other sites More sharing options...
Vale Posted March 25, 2020 Group: Members Topic Count: 21 Topics Per Day: 0.01 Content Count: 46 Reputation: 1 Joined: 03/16/20 Last Seen: March 25, 2021 Share Posted March 25, 2020 Hi @Emistry can you help me with your script? GameMaster3 must Event GM and not just (GM) how can i fix it? here is my script firstcity,207,66,6 script GM Online List 655,{ function get_GM_Title; function get_GM_State; cutin "kafra_09",2; .@size = query_sql( "SELECT `char`.`account_id`,`char`.`char_id`,`char`.`name`,`login`.`lastlogin`,TIMEDIFF( NOW(),`login`.`lastlogin` ),`login`.`group_id` FROM `char` INNER JOIN `login` ON `char`.`account_id` = `login`.`account_id` WHERE `group_id` > "+.min_group_id+" ORDER BY `char`.`online` DESC, `login`.`group_id` DESC LIMIT 10",.@aid,.@cid,.@name$,.@lastlogin$,.@lastlogin_duration$,.@group_id ); mes "There are total ^FF0000"+.@size+"^000000 GM(s)"; while ( .@i < .@size ) { mes get_GM_Title( .@name$[.@i],.@group_id[.@i] )+" - "+get_GM_State( .@aid[.@i],.@cid[.@i],.@name$[.@i] ); mes "Last Seen: ^777777"+.@lastlogin_duration$[.@i]+" hours ago^000000"; mes "Last Login: ^777777"+.@lastlogin$[.@i]+"^000000"; mes " "; .@i++; } close2; cutin "",255; end; OnInit: .min_group_id = 1; .afk_second = 300; end; function get_GM_Title { switch ( getarg( 1,0 ) ) { default: .@title$ = ""; case 1: .@title$ = "(Super Player)"; case 2: .@title$ = "(Support)"; case 3: .@title$ = "(Script Manager)"; case 4: .@title$ = "(Event Manager)"; case 10: .@title$ = "(Law Enforcement)"; case 98: .@title$ = "(Developer)"; case 99: .@title$ = "(GM)"; } return .@title$ + " " + getarg( 0,"NULL" ); } function get_GM_State { .@aid = getarg( 0,0 ); .@cid = getarg( 1,0 ); .@name$ = getarg( 2,"NULL" ); if ( isloggedin( .@aid,.@cid ) ) { .@idle = checkidle( .@name$ ); if ( .@idle >= .afk_second && .afk_second ) { .@state$ = "AFK/Away"; } else { .@state$ = "Online"; } } else { .@state$ = "Offline"; } return .@state$; } } Quote Link to comment Share on other sites More sharing options...
Angeluz Posted March 25, 2020 Group: Members Topic Count: 10 Topics Per Day: 0.00 Content Count: 109 Reputation: 19 Joined: 07/28/12 Last Seen: 18 hours ago Share Posted March 25, 2020 Here Quote function get_GM_Title { switch ( getarg( 1,0 ) ) { default: .@title$ = ""; case 1: .@title$ = "(Super Player)"; case 2: .@title$ = "(Support)"; case 3: .@title$ = "(Script Manager)"; case 4: .@title$ = "(Event Manager)"; case 10: .@title$ = "(Law Enforcement)"; case 98: .@title$ = "(Developer)"; case 99: .@title$ = "(GM)"; } return .@title$ + " " + getarg( 0,"NULL" ); } Quote Link to comment Share on other sites More sharing options...
Vale Posted March 25, 2020 Group: Members Topic Count: 21 Topics Per Day: 0.01 Content Count: 46 Reputation: 1 Joined: 03/16/20 Last Seen: March 25, 2021 Share Posted March 25, 2020 1 hour ago, Angeluz said: Here yes i tried but it doesn't change sir Quote Link to comment Share on other sites More sharing options...
Angeluz Posted March 25, 2020 Group: Members Topic Count: 10 Topics Per Day: 0.00 Content Count: 109 Reputation: 19 Joined: 07/28/12 Last Seen: 18 hours ago Share Posted March 25, 2020 (edited) check in /conf/group.conf that you have the same Id for GM Edited March 25, 2020 by Angeluz Quote Link to comment Share on other sites More sharing options...
Vale Posted March 26, 2020 Group: Members Topic Count: 21 Topics Per Day: 0.01 Content Count: 46 Reputation: 1 Joined: 03/16/20 Last Seen: March 25, 2021 Share Posted March 26, 2020 9 hours ago, Angeluz said: check in /conf/group.conf that you have the same Id for GM Nope, I don't have, I just change the (Admin) into (GM) because of that bug occurs Quote Link to comment Share on other sites More sharing options...
Angeluz Posted March 26, 2020 Group: Members Topic Count: 10 Topics Per Day: 0.00 Content Count: 109 Reputation: 19 Joined: 07/28/12 Last Seen: 18 hours ago Share Posted March 26, 2020 2 hours ago, Vale said: Nope, I don't have, I just change the (Admin) into (GM) because of that bug occurs then u need to change GM level of GameMaster3 to 4. Quote Link to comment Share on other sites More sharing options...
Vale Posted March 26, 2020 Group: Members Topic Count: 21 Topics Per Day: 0.01 Content Count: 46 Reputation: 1 Joined: 03/16/20 Last Seen: March 25, 2021 Share Posted March 26, 2020 (edited) 4 minutes ago, Angeluz said: then u need to change GM level of GameMaster3 to 4. GameMaster 3 is already Level 4 In that case it should be Event Manager but it doesn't change Edited March 26, 2020 by Vale Quote Link to comment Share on other sites More sharing options...
Angeluz Posted March 26, 2020 Group: Members Topic Count: 10 Topics Per Day: 0.00 Content Count: 109 Reputation: 19 Joined: 07/28/12 Last Seen: 18 hours ago Share Posted March 26, 2020 (edited) 1 minute ago, Vale said: GameMaster 3 is already Level 4 In that case it should be Event Manager but it doesn't change Lvl or group_id? Edited March 26, 2020 by Angeluz Quote Link to comment Share on other sites More sharing options...
Vale Posted March 26, 2020 Group: Members Topic Count: 21 Topics Per Day: 0.01 Content Count: 46 Reputation: 1 Joined: 03/16/20 Last Seen: March 25, 2021 Share Posted March 26, 2020 Just now, Angeluz said: Lvl or id? ID 4 Quote Link to comment Share on other sites More sharing options...
Emistry Posted March 26, 2020 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10017 Reputation: 2369 Joined: 10/28/11 Last Seen: 3 hours ago Author Share Posted March 26, 2020 On 3/25/2020 at 8:07 PM, Vale said: Hi @Emistry can you help me with your script? GameMaster3 must Event GM and not just (GM) how can i fix it? here is my Fixed in new version. A bug that take 5 years before someone noticed it ... 1 Quote Link to comment Share on other sites More sharing options...
Vale Posted March 26, 2020 Group: Members Topic Count: 21 Topics Per Day: 0.01 Content Count: 46 Reputation: 1 Joined: 03/16/20 Last Seen: March 25, 2021 Share Posted March 26, 2020 8 minutes ago, Emistry said: Fixed in new version. A bug that take 5 years before someone noticed it ... where can i download it? hehe 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.