beltran.lorna@gmail.com 0 Posted June 19, 2013 Report Share Posted June 19, 2013 Hello Ubotters, How do I make it so the UI Stat counter increments by 1 each time the bot spams a link on a list.So say there is 10 items in the list, and the loop goes through the list total, how do I make it so that the UI stat counter adds 1 each time it goes through the list? Thanks a lot guys. Quote Link to post Share on other sites
nuc63 27 Posted June 19, 2013 Report Share Posted June 19, 2013 ui stat monitor("position", #position)set(#position, 0, "Global")loop(10) { comment("do stuff here") wait(3) increment(#position)} Quote Link to post Share on other sites
danoctav 7 Posted June 20, 2013 Report Share Posted June 20, 2013 clear list(%mylist) set(#i, 1, "Global") ui stat monitor("Creating list with links:", %mylist) loop(10) { add item to list(%mylist, "link_{#i}", "Delete", "Global") increment(#i) wait(1) } set list position(%mylist, 0) loop($list total(%mylist)) { set(#position, $next list item(%mylist), "Global") wait(1) } ui stat monitor("Spamming :", #position) ui stat monitor("List position :", $list position(%mylist)) generating a list with 10 elements,looping through this links,showing the link from actual position and the list positions Quote Link to post Share on other sites
Walter1 8 Posted June 27, 2013 Report Share Posted June 27, 2013 Thanks all you guys for your input, awesome! For some stupid reason it didnt work for me or just partial, with a few lines messed up in the reversed lists. But i came up with a solution, done with the input from you guys set(#STATUS, $text from list($sort list(%STATUS, "Descending"), $new line), "Global") This works for me like a charm... 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.