Jump to content
UBot Underground

Recommended Posts

Is there a way to increment more than by + 1 ?

 

Let's say 20, so http://www.site.com/url=20

http://www.site.com/url=40

http://www.site.com/url=60

etc..

 

I'm trying various things but i can't get it to work ?

I'm stuck at doing:

http://www.site.com/url=20

http://www.site.com/url=21

http://www.site.com/url=22

 

Thanks

Link to post
Share on other sites

Odd, ain't working ? I guess i'll try to reboot. In fact, i got a couple of UI's which don't work. Like check/uncheck that aren't working.

 

Thanks by the way

Link to post
Share on other sites

Odd, ain't working ? I guess i'll try to reboot. In fact, i got a couple of UI's which don't work. Like check/uncheck that aren't working.

 

Thanks by the way

It should be working, make sure to set #RESULT to initial value. I also started to experience that with v4. :/

Link to post
Share on other sites

The first set command is basically setting #RESULT to the same value over and over again and then adding 20 each time you run it. 

 

As Ed put it mathematically, it is basically where x = #RESULT:

 

x = 20

x = x + 20
 
And when you run the set command again, it will set #RESULT to 20 again and then increment by 20 and the result will keep being 40.
 
What you can do is to set #RESULT to a value to begin with.
 
set(#RESULT, 20, "Global")
 
After that, you can add the set command that was suggested by UBotDev:
 
set(#RESULT, $add(#RESULT, 20), "Global")
 
You will need to make sure that you only run the first set command once, to set #RESULT to 20.
 
If you separate the two commands in two script tabs, that helps you control that.
 
So run the first tab once, and then when you run second tab, it will increment #RESULT by 20 after each run.
 
I've attached an example script that should help demonstrate it. Hope it's helpful.
 
 
 
 
 
 
 

 

 

Link to post
Share on other sites
  • 1 month later...

I was doing something similiar but I have been finding the ADD and SUBTRACT options in uBot absolutely would not work. I had this problem on my laptop but they worked on my desktop. No clue why but math has been buggy so I avoided it. Also on v4.

 

Basicly what I did was just make a loop with the increment, i loop 10 or 20 times whatever I need so it counts up. 

Link to post
Share on other sites

I was doing something similiar but I have been finding the ADD and SUBTRACT options in uBot absolutely would not work. I had this problem on my laptop but they worked on my desktop. No clue why but math has been buggy so I avoided it. Also on v4.

 

Basicly what I did was just make a loop with the increment, i loop 10 or 20 times whatever I need so it counts up. 

I've never had such problems and it always worked for me. Are you sure that's the case? I would double check the code and submit a bug/issue if that's true.

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