Otts 4 Posted December 29, 2014 Report Share Posted December 29, 2014 Here is my code can't get it to work: 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) Quote Link to post Share on other sites
ds062692 19 Posted December 29, 2014 Report Share Posted December 29, 2014 You want to compare the list position of the proxys list to the list total, not the list position of the proxy breakdown. $comparison($list position(%proxys), ">", $list total(%proxys)) Quote Link to post Share on other sites
Otts 4 Posted December 29, 2014 Author Report Share Posted December 29, 2014 You want to compare the list position of the proxys list to the list total, not the list position of the proxy breakdown. $comparison($list position(%proxys), ">", $list total(%proxys))I have changed it, and it is now changing the proxy after the list total, but its not incrementing the proxies now, it just uses the first proxy on the list f($comparison(#num created10, "<", #number accounts10)) { then { if($comparison($list total(%proxys), ">", $list position(%proxys))) { then { set list position(%proxys, 0) clear list(%proxy breakdown) add list to list(%proxy breakdown, $list from text($next list item(%proxys), ":"), "Delete", "Global") change proxy("{$list item(%proxy breakdown, 0)}:{$list item(%proxy breakdown, 1)}") 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)}") } } } 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) } else { Quote Link to post Share on other sites
UBotDev 276 Posted December 29, 2014 Report Share Posted December 29, 2014 Otts, maybe this snippet will help you: http://ubotdev.com/snippet-load-valid-proxies-change-proxy 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.