Post
Topic
Board Gambling discussion
Re: Seuntjie' Dice bot programmers mode discussion.
by
chilly2k
on 13/03/2017, 22:56:56 UTC
Hi everyone!

I have modified this script a little bit https://bot.seuntjie.com/scripts.aspx?id=39  However, would it be possible to program the script to automatically change the lossStartMult to 7 or 8 any lower number when the streak of 10 reds happens? Any help will be appreciatted!

--------------------------------------------
--@ Start User Vars
initbalance=balance
base = 0.000010
lossStartMult = 10
bethigh = false
randomHighLow = true
useDebugInfo = false
--@ End User Vars

--@ Start Script Vars
stopnow = false
lossCount = 0
maxLosses = lossStartMult + 5
chance = 50.50
curbet = base
nextbet = base
--@ End Script Vars

--@ Start Debug Vars
biggestLossStreak = 0
biggestBet = 0
--@ End Debug Vars

function dobet()
  if (lossStartMult > 20) then
    print("\nVariable \"lossStartMult\" must be less than 20\n")
    stop()
  end

  if (randomHighLow) then
    if (math.random() < .1) then bethigh = !bethigh end
  end
  
  if (stopnow and win) then
    debugInfo()
    stop()
  end
  
  if (!win) then
    lossCount += 1
  else
    lossCount = 0
  end
  
  if (lossCount < lossStartMult) then
    chance = 50.50
    curbet = base
    nextbet = curbet
  end
  
  if (lossCount == lossStartMult) then
    curbet = base * 100
    chance = 50
    nextbet = curbet
  end

  if (lossCount > lossStartMult and lossCount < maxLosses) then
    curbet = curbet * 2.1
    chance = 50
    nextbet = curbet
  end

  if (lossCount == maxLosses) then
    chance = 55
    curbet = curbet * 2.5
    nextbet = curbet
  end
  
  if (lossCount > maxLosses) then
    curbet = curbet * 2.5
    nextbet = curbet
  end
  
  if (lossCount > biggestLossStreak) then
    biggestLossStreak = lossCount
  end
  
  if (nextbet > biggestBet) then
    biggestBet = nextbet
  end

end

-------------------------------------------


I didn't write the script, so I'm not 100% sure what it does, but you can change lossStartMult = 10 to anything you would like, It looks like it will only increase the next 5 bets regardless what you set that to.