Jump to content
  • 0

Help


Blue Jem

Question


  • Group:  Members
  • Topic Count:  151
  • Topics Per Day:  0.04
  • Content Count:  393
  • Reputation:   3
  • Joined:  09/16/13
  • Last Seen:  

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:

Link to comment
Share on other sites

6 answers to this question

Recommended Posts


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  151
  • Topics Per Day:  0.04
  • Content Count:  393
  • Reputation:   3
  • Joined:  09/16/13
  • Last Seen:  

on eathena svn there are no @accinfo command

i want to manual type 

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

-	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)

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  151
  • Topics Per Day:  0.04
  • Content Count:  393
  • Reputation:   3
  • Joined:  09/16/13
  • Last Seen:  

i try i wish master this script is working to eathena

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

i didn't test it on eathena but it should work on

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  151
  • Topics Per Day:  0.04
  • Content Count:  393
  • Reputation:   3
  • Joined:  09/16/13
  • Last Seen:  

yea is working thx for this help and the script

Link to comment
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
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.

×
×
  • Create New...