Hello Guest

hello,ask a question about dicebot

  • 4 Replies
  • 817 Views
*

v2020

  • *
  • 3
  • +0/-0
    • View Profile
hello,ask a question about dicebot
« on: May 25, 2018, 09:57:12 am »
Hello, I want to reset after 12 losses in a row, I use this script

If currentstreak == -12 then
chance = math.random (6,23)
basebet=0.00000001
end

  However, it cannot work, 
the result of my run is sometimes reset after 12 losses in a row, but sometimes it will  Multiply,What is the reason?

I  don't want to use advanced mode,I want to use programming mode

thank you

*

Seuntjie

  • *****
  • 305
  • +4/-2
    • View Profile
Re: hello,ask a question about dicebot
« Reply #1 on: May 25, 2018, 10:44:23 am »
There's nothing wrong with that exact piece of code (as long as you want to reset only after exactly 12 losses in a row, and not again at 24, 36, 48 etc). It depends on the context of your code, there might be something else in your code that prevents it from executing when it should.

See the little explanation of the modulus operator I did on https://forum.seuntjie.com/index.php?topic=69.msg157#msg157

*

Whois

  • **
  • 12
  • +0/-0
    • View Profile
Re: hello,ask a question about dicebot
« Reply #2 on: May 25, 2018, 03:51:26 pm »
Hi. Try this method.
Code: [Select]
cashmulti = x
if cashmulti == cashmulti1 then
if (!win) then
lostgames = lostgames + 1
nextbet = previousbet * xx
else
lostgames = 0
nextbet = basebet
cashmulti = cashmulti1
chance = (xx) / cashmulti
end
if lostgames >= x then
cashmulti = cashmulti1
chance = (xx) / cashmulti
nextbet = previousbet * xx
end
elseif cashmulti == cashmulti1 then
if (!win) then
lostgames = lostgames + 1
nextbet = previousbet * xx
else
lostgames = 0
nextbet = basebet
cashmulti = cashmulti1
chance = (xx) / cashmulti
end
if lostgames >= x then
cashmulti = cashmulti1
chance = (xx) / cashmulti
nextbet = previousbet * xx
end
elseif cashmulti == cashmulti1 then
if (!win) then
lostgames = lostgames + 1
nextbet = previousbet * xx
else
lostgames = 0
nextbet = basebet
cashmulti = cashmulti1
chance = (xx) / cashmulti
end
if lostgames >= x then
cashmulti = cashmulti1
chance = (xx) / cashmulti
nextbet = previousbet * xx
end
elseif cashmulti == cashmulti1 then
if (!win) then
lostgames = lostgames + 1
nextbet = previousbet * xx
else
lostgames = 0
nextbet = basebet
cashmulti = cashmulti1
chance = (xx) / cashmulti
end
if lostgames >= x then
cashmulti = cashmulti1
chance = (xx) / cashmulti
nextbet = previousbet * xx
end
elseif cashmulti == x then
if (!win) then
lostgames = lostgames + 1
nextbet = previousbet * xx
else
lostgames = 0
nextbet = basebet
cashmulti = cashmulti1
chance = (xx) / cashmulti
end
« Last Edit: May 25, 2018, 07:46:19 pm by Seuntjie »

*

Seuntjie

  • *****
  • 305
  • +4/-2
    • View Profile
Re: hello,ask a question about dicebot
« Reply #3 on: May 25, 2018, 07:47:01 pm »
Hi. Try this method.
Code: [Select]
cashmulti = x
if cashmulti == cashmulti1 then
if (!win) then
lostgames = lostgames + 1
nextbet = previousbet * xx
else
lostgames = 0
nextbet = basebet
cashmulti = cashmulti1
chance = (xx) / cashmulti
end
if lostgames >= x then
cashmulti = cashmulti1
chance = (xx) / cashmulti
nextbet = previousbet * xx
end
elseif cashmulti == cashmulti1 then
if (!win) then
lostgames = lostgames + 1
nextbet = previousbet * xx
else
lostgames = 0
nextbet = basebet
cashmulti = cashmulti1
chance = (xx) / cashmulti
end
if lostgames >= x then
cashmulti = cashmulti1
chance = (xx) / cashmulti
nextbet = previousbet * xx
end
elseif cashmulti == cashmulti1 then
if (!win) then
lostgames = lostgames + 1
nextbet = previousbet * xx
else
lostgames = 0
nextbet = basebet
cashmulti = cashmulti1
chance = (xx) / cashmulti
end
if lostgames >= x then
cashmulti = cashmulti1
chance = (xx) / cashmulti
nextbet = previousbet * xx
end
elseif cashmulti == cashmulti1 then
if (!win) then
lostgames = lostgames + 1
nextbet = previousbet * xx
else
lostgames = 0
nextbet = basebet
cashmulti = cashmulti1
chance = (xx) / cashmulti
end
if lostgames >= x then
cashmulti = cashmulti1
chance = (xx) / cashmulti
nextbet = previousbet * xx
end
elseif cashmulti == x then
if (!win) then
lostgames = lostgames + 1
nextbet = previousbet * xx
else
lostgames = 0
nextbet = basebet
cashmulti = cashmulti1
chance = (xx) / cashmulti
end

Please be sure to use the code tags in the future. Also, you don't answer his question even remotely.

*

Whois

  • **
  • 12
  • +0/-0
    • View Profile
Re: hello,ask a question about dicebot
« Reply #4 on: May 26, 2018, 10:59:31 am »
sorry :). I forgot about the tag) I guess I should have described the method in detail. This method helps to solve the problem of switching to other odds for playing at the right stages of the betting process. The code can be modified for its own settings, such as the chance, the length of the step, the size of the bet on each site.