Jump to content
  • 1

Talk to NPC. Input a player. Will show the last I.P. he got.


Currently

Question


  • Group:  Members
  • Topic Count:  162
  • Topics Per Day:  0.04
  • Content Count:  313
  • Reputation:   1
  • Joined:  01/22/12
  • Last Seen:  

Talk to NPC. Input a player. Will show the last I.P. he got.

Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

mes "Player name";
input .@name$;
mes "IP : "+getcharip( .@name$ );
close;

make sure you enter correct IP and make sure they are online..xD

 

 

or better version

mes "Player name";
input .@name$;
query_sql( "SELECT `account_id` FROM `char` WHERE `name` = '"+escape_sql( .@name$ )+"' LIMIT 1",.@aid );
if( .@aid ){
	query_sql( "SELECT `last_ip` FROM `login` WHERE `account_id` = "+.@aid+" LIMIT 1",.@last_ip$ );
	mes "IP : "+.@last_ip$;
}
close;

didnt test.

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  162
  • Topics Per Day:  0.04
  • Content Count:  313
  • Reputation:   1
  • Joined:  01/22/12
  • Last Seen:  

+1 Reputation. It won't let me click that Reputation button. 

 

Thanks emistry!

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