mIRC Home    About    Download    Register    News    Help

Print Thread
#130274 15/09/05 12:34 PM
Joined: Mar 2005
Posts: 41
P
pUff Offline OP
Ameglian cow
OP Offline
Ameglian cow
P
Joined: Mar 2005
Posts: 41
I have learned how to use proxies a while back, i check them and make sure they are safe to use and if they can be used on IRC, ect. But there is one more thing i would like to have is a script someone told me there was... He told me there was a script that would auto switch your proxy every time you disconnected. It would just go down a .txt list of proxies... I would ask for someone to show me this script but i'd rather make it myself, my problem is i don't know how to make a script access my firewall... Help?

#130275 15/09/05 01:56 PM
Joined: Mar 2005
Posts: 41
P
pUff Offline OP
Ameglian cow
OP Offline
Ameglian cow
P
Joined: Mar 2005
Posts: 41
Okay, more info on my probelm... i've learned how to access my firewall.
/help firewall
but i am still unknowing as to where to start on making it go down the list when i disconnect, and how to tell the script to know 'when' i disconnect

Note that my proxy list looks something like this...

proxy:port
proxy:port
proxy:port
proxy:port

#130276 15/09/05 06:48 PM
Joined: Apr 2003
Posts: 701
K
Hoopy frood
Offline
Hoopy frood
K
Joined: Apr 2003
Posts: 701
Use the on disconnect event, keep a variable with the line number and increase it by one each time. Then read the line at that number and use the info for your proxy settings.

#130277 15/09/05 07:02 PM
Joined: Mar 2005
Posts: 41
P
pUff Offline OP
Ameglian cow
OP Offline
Ameglian cow
P
Joined: Mar 2005
Posts: 41
I understand what you're telling me but i am still lost, an example script would be nice

#130278 16/09/05 07:30 AM
Joined: Jul 2003
Posts: 655
Fjord artisan
Offline
Fjord artisan
Joined: Jul 2003
Posts: 655
In its most basic form something like...

Code:
on *:DISCONNECT: {
  if (!%proxynum) { set %proxynum 2 }
  else { inc %proxynum }
  var %proxyinfo = $read(proxylist.txt, %proxynum)
  ; proxy connection code goes here
}


Note, initial %proxynum is set to 2 because it assumes your first connection (that has just disconnected) was to the first in the list. You can format the proxy info in the txt file however you wish, but dont leave any blank lines A simple "severaddress port pass? otherinfo?" it probably easiest, and use $gettok to get the individual parts when needed. You could also just use $read(proxylist.txt) to connect to a random proxy.


"Allen is having a small problem and needs help adjusting his attitude" - Flutterby

Link Copied to Clipboard