Hello Guest

Stand between two numbers. Help !

  • 6 Replies
  • 244 Views
*

SansasyoneeL

  • **
  • 6
  • +0/-0
    • View Profile
Stand between two numbers. Help !
« on: April 18, 2020, 02:15:14 pm »
hello, i created a script after some research. I couldn't do exactly what I wanted.

sample; Stop if there is a number between 40.00 => and <= 50.00 twice in a row.

chance          = 2
base         = 0.00000001
nextbet     = base
bethigh        = true
resetstats()
function dobet()   
    if lastBet.roll > 40.50 and lastBet.roll < 50.50 then           
             stop()
    end
    if win then       
           nextbet        = base 
     else
           nextbet        = base           
    end
end

http://prntscr.com/s1s49j
« Last Edit: April 18, 2020, 02:17:57 pm by SansasyoneeL »

*

Seuntjie

  • *****
  • 481
  • +13/-2
    • View Profile
Re: Stand between two numbers. Help !
« Reply #1 on: April 18, 2020, 03:25:25 pm »
Your code is working fine for me (in the sense that it stops on the first roll that's between those numbers). Did you stop and start the bot after making changes to your code? Changes made to code while the bot is running is not applied until after you stop and start the bot again.

*

SansasyoneeL

  • **
  • 6
  • +0/-0
    • View Profile
Re: Stand between two numbers. Help !
« Reply #2 on: April 18, 2020, 03:44:34 pm »
yes the code is working. only one number stands. I want two numbers to stand in a row. sample; Stop if there are 2 numbers between 40 and 50. The code I wrote at the moment stops when only 1 number comes.




*

SansasyoneeL

  • **
  • 6
  • +0/-0
    • View Profile
Re: Stand between two numbers. Help !
« Reply #3 on: April 18, 2020, 03:49:13 pm »
I think this can be done with '' previousRoll '' but I couldn't ((:


*

Bullseye

  • **
  • 37
  • +0/-0
    • View Profile
Re: Stand between two numbers. Help !
« Reply #4 on: April 18, 2020, 11:53:26 pm »
maybe add a counter to your function?

declare middle == 0  earlier in the script

Code: [Select]
if lastBet.roll > 40.50 and lastBet.roll < 50.50 then       
middle = middle + 1
if middle > 1 then
             stop()
(then you can reset middle here if you want)
    end

*

SansasyoneeL

  • **
  • 6
  • +0/-0
    • View Profile
Re: Stand between two numbers. Help !
« Reply #5 on: April 29, 2020, 01:49:01 pm »
maybe add a counter to your function?

declare middle == 0  earlier in the script

Code: [Select]
if lastBet.roll > 40.50 and lastBet.roll < 50.50 then       
middle = middle + 1
if middle > 1 then
             stop()
(then you can reset middle here if you want)
    end


thanks for the answer. I couldn't get it to work. would you look at the script again? It does not stop when 2 numbers come between the numbers I want.  The example I want is to stop when the numbers between 40 and 50 are between 49.25 - 42.38. If two numbers between 40 and 50 follow each other, they should stop.



*

Bullseye

  • **
  • 37
  • +0/-0
    • View Profile
Re: Stand between two numbers. Help !
« Reply #6 on: May 03, 2020, 01:18:11 pm »
Code: [Select]
--before dobet stuff
middle=0
-----------------------

dobet()

if lastBet.Roll > 40.50 and lastBet.Roll < 50.50 then
middle +=1         
end

if if lastBet.Roll > 40.50 and lastBet.Roll < 50.50 and middle > 1 then
stop()
middle =  0
end