Hello Guest

nextbet incrise proportionally to the balance

  • 1 Replies


  • *
  • 1
  • +0/-0
    • View Profile
nextbet incrise proportionally to the balance
« on: May 17, 2021, 04:32:03 pm »
hi, im trying to made a script, i want the basebet increse based on the new balace after each win. i tried, balance/1410526, but the balance dont change, so i tried that:

 function dobet()
    if (win) then
        nextbet = (balance+previousbet)/1410526
        won     = won+1
        lose    = 0
        nextbet = (previousbet * iol)
        lose    = lose+1
        won     = 0

what is wrong?



  • *****
  • 593
  • +17/-3
    • View Profile
Re: nextbet incrise proportionally to the balance
« Reply #1 on: May 17, 2021, 05:10:52 pm »
Is your balance large enough for you to place a viable bet with that factor? Secondly is it large enough to see a viable increase from that factor?

For example if your balance is 0.00010000, your bet would be 0.00010000/1410526=0.000000000007, which is obviously far below minimum bet.
If your balance is 1, you first bet would be 0.00000071. Meaning your balance after the bet would be 1.00000071 (assuming 2x payout), thus making your second bet 0.00000071.... It could take hundreds of bets before you see a 1 sat increase in your bet size.

Also, see the tutorials on https://forum.seuntjie.com/index.php?topic=2.0, specifically the one about variables. There are built in variables that tracks bets, wins and losses and functions to reset those values if needed.