Emistry

Utility: GM Online List

Recommended Posts

@Annie

That's right a same image.

but i want use Emistry script, and just add status display ( online/offline) 

Share this post


Link to post
Share on other sites

Hi @Emistry

can you help me with your script?

image.png.a9b793c57d79a215f9bc39dc0681a2a4.png

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]$;
	}

}

 

Share this post


Link to post
Share on other sites

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" );
	}

 

Share this post


Link to post
Share on other sites
1 hour ago, Angeluz said:

Here

 

yes i tried but it doesn't change sir 

Share this post


Link to post
Share on other sites
Posted (edited)

check in /conf/group.conf that you have the same Id for GM

Edited by Angeluz

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
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. 

Share this post


Link to post
Share on other sites
Posted (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 by Vale

Share this post


Link to post
Share on other sites
Posted (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 by Angeluz

Share this post


Link to post
Share on other sites
Just now, Angeluz said:

Lvl or id?

ID 4

Share this post


Link to post
Share on other sites
On 3/25/2020 at 8:07 PM, Vale said:

Hi @Emistry

can you help me with your script?

image.png.a9b793c57d79a215f9bc39dc0681a2a4.png

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 ... 😅

  • Upvote 1

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.