AnnieRuru Posted January 2, 2014 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 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 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; [email protected] = 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",[email protected],[email protected],[email protected]$,[email protected]$,[email protected]_duration$,[email protected]_id ); mes "There are total ^FF0000"[email protected]+"^000000 GM(s)"; while ( [email protected] < [email protected] ) { mes get_GM_Title( [email protected]$[[email protected]],[email protected]_id[[email protected]] )+" - "+get_GM_State( [email protected][[email protected]],[email protected][[email protected]],[email protected]$[[email protected]] ); mes "Last Seen: ^777777"[email protected]_duration$[[email protected]]+" hours ago^000000"; mes "Last Login: ^777777"[email protected]$[[email protected]]+"^000000"; mes " "; [email protected]++; } close2; cutin "",255; end; OnInit: .min_group_id = 1; .afk_second = 300; end; function get_GM_Title { switch ( getarg( 1,0 ) ) { default: [email protected]$ = ""; case 1: [email protected]$ = "(Super Player)"; case 2: [email protected]$ = "(Support)"; case 3: [email protected]$ = "(Script Manager)"; case 4: [email protected]$ = "(Event Manager)"; case 10: [email protected]$ = "(Law Enforcement)"; case 98: [email protected]$ = "(Developer)"; case 99: [email protected]$ = "(GM)"; } return [email protected]$ + " " + getarg( 0,"NULL" ); } function get_GM_State { [email protected] = getarg( 0,0 ); [email protected] = getarg( 1,0 ); [email protected]$ = getarg( 2,"NULL" ); if ( isloggedin( [email protected],[email protected] ) ) { [email protected] = checkidle( [email protected]$ ); if ( [email protected] >= .afk_second && .afk_second ) { [email protected]$ = "AFK/Away"; } else { [email protected]$ = "Online"; } } else { [email protected]$ = "Offline"; } return [email protected]$; } } Quote Link to comment Share on other sites More sharing options...
Angeluz Posted March 25, 2020 Share Posted March 25, 2020 Here Quote function get_GM_Title { switch ( getarg( 1,0 ) ) { default: [email protected]$ = ""; case 1: [email protected]$ = "(Super Player)"; case 2: [email protected]$ = "(Support)"; case 3: [email protected]$ = "(Script Manager)"; case 4: [email protected]$ = "(Event Manager)"; case 10: [email protected]$ = "(Law Enforcement)"; case 98: [email protected]$ = "(Developer)"; case 99: [email protected]$ = "(GM)"; } return [email protected]$ + " " + getarg( 0,"NULL" ); } Quote Link to comment Share on other sites More sharing options...
Vale Posted March 25, 2020 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 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 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 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 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 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 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 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 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...