Jump to content
  • 0

Check IP member's Party


brunoshp

Question


  • Group:  Members
  • Topic Count:  64
  • Topics Per Day:  0.02
  • Content Count:  180
  • Reputation:   7
  • Joined:  12/19/12
  • Last Seen:  

Is it possible to check ip for each party member? im searching and study hot to do this, but i dont got sucess. someone can help?

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  35
  • Topics Per Day:  0.01
  • Content Count:  107
  • Reputation:   27
  • Joined:  02/12/14
  • Last Seen:  

Try this a simple example:

prontera,151,187,4	script	TesterIP	88,{
	
	getpartymember getcharid(1),2;
	.@count = $@partymembercount;

		query_sql "SELECT `last_ip` FROM `login` WHERE `account_id` = "+$@partymemberaid[0], .@ip1$;
		query_sql "SELECT `last_ip` FROM `login` WHERE `account_id` = "+$@partymemberaid[1], .@ip2$;
		query_sql "SELECT `last_ip` FROM `login` WHERE `account_id` = "+$@partymemberaid[2], .@ip3$;

	//After executing the code above,IPs of respective members are stored in .@ip1$, .@ip2$ and .@ip3$
	//Showing them:
		mes .@ip1$;
		mes .@ip2$;
		mes .@ip3$;
		
	close;

}

 

  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.00
  • Content Count:  255
  • Reputation:   232
  • Joined:  07/24/13
  • Last Seen:  

	getpartymember getcharid(1),0;
	.@count = $@partymembercount;
	copyarray .@name$[0], $@partymembername$[0], $@partymembercount;

	// list the party member name - ip
	for (.@i = 0; .@i < .@count; .@i++)
		mes .@name$[.@i]+" - ^0000FF" + getcharip(.@name$[.@i]) + "^000000";
	close;

 

Edited by Balfear
  • Upvote 1
  • MVP 1
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...