In its most basic form something like...
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.