Jump to content
  • 1

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


Question

2 answers to this question

Recommended Posts

Posted
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

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