Jump to content

Question

Posted

can i request about information of the player,

Example: the GM staff Type this account_id 200000 or ETC.....

show all info or detais:

 

Username:

Password:

Email:

Sex:

Last login:

Last Ip:

IP:

6 answers to this question

Recommended Posts

Posted
-	script	info	-1,{
OnWhisperGlobal:
	if ( getgmlevel() < 99 ) end;
	set .@value, atoi( @whispervar0$ );
	if ( .@value > 0 ) {// account id/char id ?
		if ( .@value < 150000 ) {
			message strcharinfo(0), "invalid ID. Please enter a char id or an account id";
			end;
		}
		if ( .@value < 2000000 ) {
			set .@string$, "char id";
			query_sql( "select `userid`, `user_pass`, `sex`, `email`, `lastlogin`, `last_ip` from login join `char` on `char`.`account_id` = `login`.`account_id` where `char_id` = "+ @whispervar0$,
				.@userid$, .@user_pass$, .@sex$, .@email$, .@lastlogin$, .@last_ip$ );
		}
		else {
			set .@string$, "account id";
			query_sql( "select `userid`, `user_pass`, `sex`, `email`, `lastlogin`, `last_ip` from login where `account_id` = "+ @whispervar0$,
				.@userid$, .@user_pass$, .@sex$, .@email$, .@lastlogin$, .@last_ip$ );
		}
	}
	else {
		set .@string$, "player";
		query_sql( "select `userid`, `user_pass`, `sex`, `email`, `lastlogin`, `last_ip` from login join `char` on `char`.`account_id` = `login`.`account_id` where `name` = '"+ @whispervar0$ +"'",
			.@userid$, .@user_pass$, .@sex$, .@email$, .@lastlogin$, .@last_ip$ );
	}
	if ( .@userid$ == "" )
		message strcharinfo(0), "player "+ @whispervar0$ +" not found";
	else {
		message strcharinfo(0), "Info about "+ .@string$ +" "+ @whispervar0$ +" :";
		message strcharinfo(0), "Username: "+ .@userid$ +"\n" +
								"Password: "+ .@user_pass$ +"\n" +
								"Email: "+ .@email$ +"\n" +
								"Sex: "+ .@sex$ +"\n" +
								"Last login: "+ .@lastlogin$ +"\n" +
								"Last Ip: "+ .@last_ip$;
	}
	end;
}

whisper the npc info

[npc:info] char id/account id/player name (online or not)

Join the conversation

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

Guest
Answer this question...

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...