Jump to content
  • 0
Sign in to follow this  
fireicesurfer

How to search for player IP using player name in mysql?

Question

Hi! noob question..

How to search for player IP using player name in mysql?

Share this post


Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0
Posted (edited)
2 hours ago, fireicesurfer said:

Hi! noob question..

How to search for player IP using player name in mysql?

-	script	account	-1,{

OnInit: // Auto Initialize when the server is Online
	bindatcmd "acc",strnpcinfo(3)+"::OnWhisperGlobal",99,0; // GM Level can only access this wispher
	end;
	
OnWhisperGlobal:

					switch(select("~ Cheack Player Info:~ Quit")){
						
						
			case 1:
					mes "---[SYSTEM]---";
					mes "Type the User Name";
					mes "you wish to check";		
					input .@charName$;
					next;
					// Fetch the player account ID
					.@size = query_sql ("SELECT `account_id` FROM char WHERE `name` = '"+.@charName$+"';",.@acc_id);
					
					if(!.@size){
					mes "---[SYSTEM]---";
					mes "Info:";
					mes " ERROR 404 Player "+.@charName$+" is not found...";
					close;}
					
					// Fetch information of the Player IGN  input ^_^
					query_sql "SELECT `userid`, `last_ip`, `email` FROM login WHERE `account_id` = '"+.@acc_id+"';",.@user_id$,.@lastIp,.@emai$;
					
					
					// Visual Ingame....
					mes "---[SYSTEM]---";
					mes "AccID: "+.@acc_id+"";
					mes "UserID: "+.@user_id$+"";
					mes "LastIP: "+.@lastIp+"":
					mes "Email: "+.@emai$+"";
					mes "Verifying Successful!!!";
					close;
					
					
			case 2:
			close;
			
}					

           

Edited by chatterboy
  • Upvote 1

Share this post


Link to post
Share on other sites
  • 0
22 minutes ago, chatterboy said:
-	script	account	-1,{

OnInit: // Auto Initialize when the server is Online
	bindatcmd "acc",strnpcinfo(3)+"::OnWhisperGlobal",99,0; // GM Level can only access this wispher
	end;
	
OnWhisperGlobal:

					switch(select("~ Cheack Player Info:~ Quit")){
						
						
			case 1:
					mes "---[SYSTEM]---";
					mes "Type the User Name";
					mes "you wish to check";		
					input .@charName$;
					next;
					// Fetch the player account ID
					.@size = query_sql ("SELECT `account_id` FROM char WHERE `name` = '"+.@charName$+"';",.@acc_id);
					
					if(!.@size){
					mes "---[SYSTEM]---";
					mes "Info:";
					mes " ERROR 404 Player "+.@charName$+" is not found...";
					close;}
					
					// Fetch information of the Player IGN  input ^_^
					query_sql "SELECT `userid`, `last_ip`, `email` FROM login WHERE `account_id` = '"+.@acc_id+"';",.@user_id$,.@lastIp,.@emai$;
					
					
					// Visual Ingame....
					mes "---[SYSTEM]---";
					mes "AccID: "+.@acc_id+"";
					mes "UserID: "+.@user_id$+"";
					mes "LastIP: "+.@lastIp+"":
					mes "Email: "+.@emai$+"";
					mes "Verifying Successful!!!";
					close;
					
					
			case 2:
			close;
			
}					

           

thanks youre the best

 

Share this post


Link to post
Share on other sites
  • 0
4 hours ago, fireicesurfer said:

thanks youre the best

 

no prob ^_^ we all need help from other sometimes 

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

Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.