crazyquids 3 Posted January 29, 2017 Report Share Posted January 29, 2017 Hi peeps , i'm having trouble with something since yesterday and i can't seem to fing the answerThe bot loops the total amount of lines from a list that are the titles and goes to some specific sites and uses users and passes from columns that i've aded to listsFor the user and pass i'm using an increment command as well for the titlesUsers\passes are inside a loop and the amount of loops is given by the titles list total wich is greater than the user/pass list totalHow can i make the users/pass start over when it finishes using all the lines ? Quote Link to post Share on other sites
Code Docta (Nick C.) 638 Posted January 29, 2017 Report Share Posted January 29, 2017 Hi, set list position: will reset the list. You can use it in an outer loop or in a "loop while". An outer loop will let you control how many times(by integer or list) or a duration of time. loop while(#loopwhile) { clear list(%user pass) add list to list(%user pass,$list from text("nanme 1:pass 1 nanme 2:pass 2 nanme 3:pass 3 nanme 4:pass 4",$new line),"Delete","Global") loop($list total(%user pass)) { set(#NLI,$next list item(%user pass),"Global") wait(1) } set list position(%user pass,0) } ui check box("Endless loop",#loopwhile) ui stat monitor("current user: {#NLI}","") You can use a button instead as well. ie button changes 0 to 1(on/off) or true to false. Regards,Nickexample -- loopwhile-continuous.ubot Quote Link to post Share on other sites
Marani 80 Posted January 29, 2017 Report Share Posted January 29, 2017 You should check and "set list position" of %user and #pass to 0 at the end of the loop - still inside the loop: loop(#titles) { set(#pos,$list position(%user),"Global") comment("At the end of the loop add:") if($comparison(#pos,"= Equals",10)) { then { set list position(%user,0) set list position(%pass,0) } else { increment(#pos) } } } Quote Link to post Share on other sites
crazyquids 3 Posted January 29, 2017 Author Report Share Posted January 29, 2017 Kudos to you boys Code Docta and Marani, you saved me.Thank you 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.