Jump to content
UBot Underground

Recommended Posts

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.

Link to post
Share on other sites

ui stat monitor("position"#position)
set(#position, 0, "Global")
loop(10) {
    comment("do stuff here")
    wait(3)
    increment(#position)
}

Link to post
Share on other sites
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

Link to post
Share on other sites

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...

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...