Otts 4 Posted December 29, 2014 Report Share Posted December 29, 2014 Hi, i can multithread the browsers, it is just when the proxies reach the total list they stop rotating. I cant seem to get the code right by making it set back to 0 if($comparison(#num created10, "<", #number accounts10)) { then { if($comparison($list position(%proxy breakdown), ">", $list total(%proxys))) { then { set list position(%proxys, 0) } else { } } if($comparison(%proxys, "!=", $nothing)) { then { clear list(%proxy breakdown) add list to list(%proxy breakdown, $list from text($next list item(%proxys), ":"), "Delete", "Global") if($comparison($list total(%proxy breakdown), ">", 3)) { then { set proxy credentials($list item(%proxy breakdown, 2), $list item(%proxy breakdown, 3)) change proxy("{$list item(%proxy breakdown, 0)}:{$list item(%proxy breakdown, 1)}") } else if($comparison($list total(%proxy breakdown), "=", 3)) { change proxy("{$list item(%proxy breakdown, 0)}:{$list item(%proxy breakdown, 1)}:{$list item(%proxy breakdown, 2)}") } else { change proxy("{$list item(%proxy breakdown, 0)}:{$list item(%proxy breakdown, 1)}") } } wait(1) Please help, regards Quote Link to post Share on other sites
Enigma 78 Posted December 30, 2014 Report Share Posted December 30, 2014 First of all, when pasting your code in my uBot it contains errors. Second, why not simply use: change proxy($random list item(%your proxy list here)) That code will randomly (and unlimited) pick a proxy from your list and use it. If you want to run it in order, i.e. you have a list of 100 proxies and want it to rotate from 1-100 and then reset it and start again from 1-100 then you could add a counter, something like: comment("// add the Set Proxycount on the very top of your script") set(#proxycount, 0, "Global") comment("// ALL YOUR OTHER CODE HERE") comment("// START MULTITHREADING") change proxy($next list item(%your proxy file)) increment(#proxycount) comment("// ALL YOUR OWN MULTITHREAD CODE HERE") comment("// Add the following code below to the END of the multithread session") if($comparison(#proxycount, ">=", 100)) { then { set list position(%your proxy file, 0) set(#proxycount, 0, "Global") } else { } } comment("// END MULTITHREADING") Quote Link to post Share on other sites
Enigma 78 Posted December 30, 2014 Report Share Posted December 30, 2014 Just thought of a better way of the second example i posted above. comment("// add the Set Proxycount on the very top of your script") set(#proxycount, 0, "Global") set(#totalproxies, $list total(%your proxy file), "Global") comment("// ALL YOUR OTHER CODE HERE") comment("// START MULTITHREADING") change proxy($next list item(%your proxy file)) increment(#proxycount) comment("// ALL YOUR OWN MULTITHREAD CODE HERE") comment("// Add the following code below to the END of the multithread session") if($comparison(#proxycount, ">=", #totalproxies)) { then { set list position(%your proxy file, 0) set(#proxycount, 0, "Global") } else { } } comment("// END MULTITHREADING") This code will automatically detect how many proxies are in your proxyfile and will reset to the first proxy when the end of the list is reached. 1 Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.