PtokaX forum

Lua 5.3/5.2/5.1 Scripts (for PtokaX 0.4.0.0 and newer) => Help with scripts => Topic started by: satya on 24 January, 2009, 08:57:18

Title: Help with user commands
Post by: satya on 24 January, 2009, 08:57:18
As we have %[nick] to get the users nick on wich we click, do we have any such thing to get the ip of the same user.

it will be great if i can get a list of all such vars

thanks
Title: Re: Help with user commands
Post by: CrazyGuy on 24 January, 2009, 13:43:21



Newer clients support a new set of variables as well, but as they don't work with older clients, it's useless scripting them to be broadcasted to all. The above parameters are standardly implemented if I'm correct.
Title: Re: Help with user commands
Post by: satya on 25 January, 2009, 17:55:59
Great thanks a lot guyss

bt the %[ip] Are u sure dat works cos i tried dat n it doesn works, i checkd the usercommands in the DC settings there for ip %[useri4] was specified. Is this good?

i m just askin as i don know abt it!

thanks
Title: Re: Help with user commands
Post by: CrazyGuy on 25 January, 2009, 20:23:15
Quote from: satya on 25 January, 2009, 17:55:59
Great thanks a lot guyss

bt the %[ip] Are u sure dat works cos i tried dat n it doesn works, i checkd the usercommands in the DC settings there for ip %[useri4] was specified. Is this good?

i m just askin as i don know abt it!

thanks

%[useri4] I haven't seen before. It may be in that list from new clients.
%[ip] works but only if the hub send you all users IPs on login. Your client need to support UserIP2 for that, plus your profile must be set to allow to receive IPs.

A workaround may be to download the filelist of the person you want to use the UserCommand on first. Sometimes clients update the %[ip] details then with the IP from the p2p connection.

But it's easier to check hubs settings of course ;)