Pages:
Author

Topic: Seuntjie' Dice bot programmers mode discussion. - page 42. (Read 125420 times)

legendary
Activity: 1007
Merit: 1000
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.  
newbie
Activity: 29
Merit: 0
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

-------------------------------------------
member
Activity: 152
Merit: 10
Hi, is there any option to log all rolls into a txt or something like that?

Thanks!

Rolls are logged in a SQL-lite database (dicebot.db) and you can open it with http://sqlitebrowser.org/

Awesome! thanks a lot Dre1982!
hero member
Activity: 1372
Merit: 512
Hi, is there any option to log all rolls into a txt or something like that?

Thanks!

Rolls are logged in a SQL-lite database (dicebot.db) and you can open it with http://sqlitebrowser.org/
member
Activity: 152
Merit: 10
Hi, is there any option to log all rolls into a txt or something like that?

Thanks!
legendary
Activity: 1717
Merit: 1125
in terms of profit tracking... why not just check the difference between your current balance and what your balance was at the start of the run? Something like:

Code:
startBalance = balance

...stuff happens...

if (balance - startBalance) >= someValue then
  print("yay! I'm rich! -- stopping!")
  stop()
end

What about just using the profit variable which is the overall profit of your current session?
Code:
if (profit >= 0.00100000 ) then
stop()
end

by session, do you mean start/stop of the whole application? or for a start()/stop() cycle of the bot?

Because if any action is performed that changes your balance other than betting, for example depositing, withdrawal, tips, investment etc, it skews your profit value.

session in this context is since opening the whole application OR since using resetstats function.
HCP
legendary
Activity: 2086
Merit: 4361
in terms of profit tracking... why not just check the difference between your current balance and what your balance was at the start of the run? Something like:

Code:
startBalance = balance

...stuff happens...

if (balance - startBalance) >= someValue then
  print("yay! I'm rich! -- stopping!")
  stop()
end

What about just using the profit variable which is the overall profit of your current session?
Code:
if (profit >= 0.00100000 ) then
stop()
end

by session, do you mean start/stop of the whole application? or for a start()/stop() cycle of the bot?
legendary
Activity: 1717
Merit: 1125
Have you removed the semi colon on line 16?
replace your double quotes in in the print statement with single quotes

Code:
print('this will work')
print("this will not work")

Set your betting speed to 1 bet/s and activate the betting speed setting in the advanced mode.
full member
Activity: 148
Merit: 100
the site is bitsler
full member
Activity: 148
Merit: 100
this is the screenshot

Code:
https://ibb.co/nrjcVa
https://ibb.co/fhUBqa
legendary
Activity: 1717
Merit: 1125
no nothing  Sad

Can you post a screenshot of the bot including the console and the status bar at the bottom of the page after it's stopped?

Which site are you running on??

Try removing the semi-colon on line 16.
full member
Activity: 148
Merit: 100
no nothing  Sad
legendary
Activity: 1717
Merit: 1125
this is my script:

Code:
chance = 90
basebet = .00000050
startbalance = balance
nextbet = basebet
bethigh = true
rollcount = 0
myprofit = 0

function dobet()
rollcount += 1
myprofit += currentprofit


if (myprofit >= 0.00000200 ) then
stop()
print("profit ok")
resetseed();
end


if win then
nextbet = previousbet

else
nextbet = previousbet * 1.22
end
end


but when i start the script with start() the bet is non continuous
execute only 1 bet  why?

Do you get any errors/output in the console when it stops?
full member
Activity: 148
Merit: 100
this is my script:

Code:
chance = 90
basebet = .00000050
startbalance = balance
nextbet = basebet
bethigh = true
rollcount = 0
myprofit = 0

function dobet()
rollcount += 1
myprofit += currentprofit


if (myprofit >= 0.00000200 ) then
stop()
print("profit ok")
resetseed();
end


if win then
nextbet = previousbet

else
nextbet = previousbet * 1.22
end
end


but when i start the script with start() the bet is non continuous
execute only 1 bet  why?
legendary
Activity: 1717
Merit: 1125
Maybe this is a better topic for this question

Is there a way to let the bot stop on one or multiple numbers. Let's see, can I let it stop after a 99.99 or 0.00? Even without betting on 9900x.

Is there a way to let the bot stop on one or multiple numbers. Let's see, can I let it stop after a 99.99 or 0.00? Even without betting on 9900x.

If you use the programmer mode with the lastBet object (specifically the lastBet.Roll property) you can do this.
legendary
Activity: 1717
Merit: 1125
hi,

i need to stop my bet when my current profit is egual or superior at 0.00100000

i have write

if (currentprofit >= 0.00100000 ) then
stop()
end

but don't work

anyone help me



currentprofit is the profit from the last bet.  You need to keep track of it.  Create a variable, I'll call it myprofit.  init it to Zero in the beginning of the script.
Then at the beginning of the do bet function add in the currentprofit from the last bet. 

so

myprofit = 0       in the start of the script. 

then

myprofit += currentprofit       at the beginning of the dobet function add in the profit from the last bet. 

then add your code to check....

if (myprofit >= 0.00100000 ) then
stop()
end

What about just using the profit variable which is the overall profit of your current session?
Code:
if (profit >= 0.00100000 ) then
stop()
end
full member
Activity: 148
Merit: 100
hi,

i need to stop my bet when my current profit is egual or superior at 0.00100000

i have write

if (currentprofit >= 0.00100000 ) then
stop()
end

but don't work

anyone help me



currentprofit is the profit from the last bet.  You need to keep track of it.  Create a variable, I'll call it myprofit.  init it to Zero in the beginning of the script.
Then at the beginning of the do bet function add in the currentprofit from the last bet. 

so

myprofit = 0       in the start of the script. 

then

myprofit += currentprofit       at the beginning of the dobet function add in the profit from the last bet. 

then add your code to check....

if (myprofit >= 0.00100000 ) then
stop()
end

tnx a lot!
hero member
Activity: 1372
Merit: 512
Maybe this is a better topic for this question

Is there a way to let the bot stop on one or multiple numbers. Let's see, can I let it stop after a 99.99 or 0.00? Even without betting on 9900x.
legendary
Activity: 1007
Merit: 1000
hi,

i need to stop my bet when my current profit is egual or superior at 0.00100000

i have write

if (currentprofit >= 0.00100000 ) then
stop()
end

but don't work

anyone help me



currentprofit is the profit from the last bet.  You need to keep track of it.  Create a variable, I'll call it myprofit.  init it to Zero in the beginning of the script.
Then at the beginning of the do bet function add in the currentprofit from the last bet. 

so

myprofit = 0       in the start of the script. 

then

myprofit += currentprofit       at the beginning of the dobet function add in the profit from the last bet. 

then add your code to check....

if (myprofit >= 0.00100000 ) then
stop()
end
full member
Activity: 148
Merit: 100
hi,

i need to stop my bet when my current profit is egual or superior at 0.00100000

i have write

if (currentprofit >= 0.00100000 ) then
stop()
end

but don't work

anyone help me

Pages:
Jump to: