AnnieRuru Posted January 2, 2014 Posted January 2, 2014 http://rathena.org/board/topic/90766-gm-staff-online-status/?p=236954 weird, you both using same image ... Quote
hendra814 Posted January 2, 2014 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
Vale Posted March 25, 2020 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
Angeluz Posted March 25, 2020 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
Vale Posted March 25, 2020 Posted March 25, 2020 1 hour ago, Angeluz said: Here yes i tried but it doesn't change sir Quote
Angeluz Posted March 25, 2020 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
Vale Posted March 26, 2020 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
Angeluz Posted March 26, 2020 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
Vale Posted March 26, 2020 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
Angeluz Posted March 26, 2020 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
Emistry Posted March 26, 2020 Author 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
Vale Posted March 26, 2020 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
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.