Jump to content
  • 0

Check IP member's Party


Question

2 answers to this question

Recommended Posts

  • 0
Posted

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
  • 0
Posted (edited)
	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

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