Jump to content
UBot Underground

How To Log How Many Times Ubot Loops?


Recommended Posts

I have my ubot script on loop.  What's the best way to have it log down somewhere the amount of times it runs the loop?  And how to do this?

 

Thanks

Link to post
Share on other sites

You can do it many ways, here are two.

clear list(%my list)
add list to list(%my list,$list from text("1,2,3,4,5,6",","),"Delete","Global")
set(#index,0,"Global")
loop($list total(%my list)) {
    set(#next list item,$next list item(%my list),"Global")
    wait(1)
    increment(#index)
}
ui stat monitor("list position: {$list position(%my list)}","<br>index vairable: {#index}
<br>
<br>NLI: {#next list item}")

Hope that helps,

Nick

list postion and index - example.ubot

  • Like 2
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...