Bitcoin Forum
May 05, 2024, 11:10:11 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 [27] 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 »
  Print  
Author Topic: Seuntjie' Dice bot programmers mode discussion.  (Read 125131 times)
chilly2k (OP)
Legendary
*
Offline Offline

Activity: 1007
Merit: 1000


View Profile
April 28, 2017, 11:56:47 PM
 #521

Ok so i want it to be
Lo
Lo
Hi
Hi
Lo
Lo
Lo
Hi
Hi
Hi

multiply on lose going to the next bet on win
I know that what i have is not working but i need to know why?
Code:
chance=7.14
multiplier=1.1555
base=0.00000001
bethigh = false
function dobet()
if !win then
else
nextbet=previousbet*multiplier
else
----What to put there if i want tit to be this
chance=7.14
multiplier=1.1555
base=0.00000001
bethigh = false
if !win then
nextbet=previousbet*multiplier
else
chance=7.14
multiplier=1.1555
base=0.00000001
bethigh = false
if !win then
nextbet=previousbet*multiplier
else
chance=7.14
multiplier=1.1555
base=0.00000001
bethigh = true
if !win then
nextbet=previousbet*multiplier
else
chance=7.14
multiplier=1.1555
base=0.00000001
bethigh = true
if !win then
nextbet=previousbet*multiplier
chance=7.14
multiplier=1.1
base=0.00000001
bethigh = false
if !win then
nextbet=previousbet*multiplier
else
chance=7.14
multiplier=1.1555
base=0.00000001
bethigh = false
if !win then
nextbet=previousbet*multiplier
else
chance=7.14
multiplier=1.1555
base=0.00000001
bethigh = false
if !win then
nextbet=previousbet*multiplier
else
chance=7.14
multiplier=1.1555
base=0.00000001
bethigh = true
if !win then
nextbet=previousbet*multiplier chance=7.14
multiplier=1.1555
base=0.00000001
bethigh = true
if !win then
nextbet=previousbet*multiplier chance=7.14
multiplier=1.1555
base=0.00000001
bethigh = true
if !win then
nextbet=previousbet*multiplier
---- now i want it to go to bet 1
end
end

dobet runs after EVERY bet.  So if your first check for !win is true, it's true for all of your checks.  It doesn't do the first check and roll, then do the second and roll.  

So your code just needs to check if !win. once.  You can then use other variables to keep track of where you are in your sequence.  

Ok so i want it to be
Lo
Lo
Hi
Hi
Lo
Lo
Lo
Hi
Hi
Hi
    Does this mean you want the bot to bet on the low side 2 times then the high side 2 times then low 3 then high 3, then back to the top?  

You'll have to look this up.  But there is a way to create an array in LUA  it might be something like
betseq = {"Lo","Lo","Hi","Hi","Lo" etc......}

then make  rollcounter = 1
and
bethigh = false

These would go in the beginning before the dobet function.  

then right after dobet
rollcounter += 1  //bump roll counter to point to the next place in the array.

if betseq[rollcounter] == "Lo" then
   bethigh = false
else
   bethigh = true
end
if rollcounter == 10 then  //reset roll counter when you hit the end of the array.
   rollcounter = 0
end





Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714950611
Hero Member
*
Offline Offline

Posts: 1714950611

View Profile Personal Message (Offline)

Ignore
1714950611
Reply with quote  #2

1714950611
Report to moderator
1714950611
Hero Member
*
Offline Offline

Posts: 1714950611

View Profile Personal Message (Offline)

Ignore
1714950611
Reply with quote  #2

1714950611
Report to moderator
1714950611
Hero Member
*
Offline Offline

Posts: 1714950611

View Profile Personal Message (Offline)

Ignore
1714950611
Reply with quote  #2

1714950611
Report to moderator
AMONRA75
Full Member
***
Offline Offline

Activity: 148
Merit: 100


View Profile
April 29, 2017, 12:04:35 AM
 #522

hi guy!

i need to set chance from array like this:
chance =  {48,50,52,54}

and when win set chance random from the array

anyone help me?
Nicoletta
Newbie
*
Offline Offline

Activity: 31
Merit: 0


View Profile
April 29, 2017, 12:51:56 AM
 #523

Ok so i want it to be
Lo
Lo
Hi
Hi
Lo
Lo
Lo
Hi
Hi
Hi

multiply on lose going to the next bet on win
I know that what i have is not working but i need to know why?
Code:
chance=7.14
multiplier=1.1555
base=0.00000001
bethigh = false
function dobet()
if !win then
else
nextbet=previousbet*multiplier
else
----What to put there if i want tit to be this
chance=7.14
multiplier=1.1555
base=0.00000001
bethigh = false
if !win then
nextbet=previousbet*multiplier
else
chance=7.14
multiplier=1.1555
base=0.00000001
bethigh = false
if !win then
nextbet=previousbet*multiplier
else
chance=7.14
multiplier=1.1555
base=0.00000001
bethigh = true
if !win then
nextbet=previousbet*multiplier
else
chance=7.14
multiplier=1.1555
base=0.00000001
bethigh = true
if !win then
nextbet=previousbet*multiplier
chance=7.14
multiplier=1.1
base=0.00000001
bethigh = false
if !win then
nextbet=previousbet*multiplier
else
chance=7.14
multiplier=1.1555
base=0.00000001
bethigh = false
if !win then
nextbet=previousbet*multiplier
else
chance=7.14
multiplier=1.1555
base=0.00000001
bethigh = false
if !win then
nextbet=previousbet*multiplier
else
chance=7.14
multiplier=1.1555
base=0.00000001
bethigh = true
if !win then
nextbet=previousbet*multiplier chance=7.14
multiplier=1.1555
base=0.00000001
bethigh = true
if !win then
nextbet=previousbet*multiplier chance=7.14
multiplier=1.1555
base=0.00000001
bethigh = true
if !win then
nextbet=previousbet*multiplier
---- now i want it to go to bet 1
end
end

dobet runs after EVERY bet.  So if your first check for !win is true, it's true for all of your checks.  It doesn't do the first check and roll, then do the second and roll.  

So your code just needs to check if !win. once.  You can then use other variables to keep track of where you are in your sequence.  

Ok so i want it to be
Lo
Lo
Hi
Hi
Lo
Lo
Lo
Hi
Hi
Hi
    Does this mean you want the bot to bet on the low side 2 times then the high side 2 times then low 3 then high 3, then back to the top?  

You'll have to look this up.  But there is a way to create an array in LUA  it might be something like
betseq = {"Lo","Lo","Hi","Hi","Lo" etc......}

then make  rollcounter = 1
and
bethigh = false

These would go in the beginning before the dobet function.  

then right after dobet
rollcounter += 1  //bump roll counter to point to the next place in the array.

if betseq[rollcounter] == "Lo" then
   bethigh = false
else
   bethigh = true
end
if rollcounter == 10 then  //reset roll counter when you hit the end of the array.
   rollcounter = 0
end






Thanks for some pointer but now it is way over my level.
I wonder if i will put the counter would it not count lost multiplied games to?
chilly2k (OP)
Legendary
*
Offline Offline

Activity: 1007
Merit: 1000


View Profile
April 29, 2017, 01:51:17 AM
 #524


Thanks for some pointer but now it is way over my level.
I wonder if i will put the counter would it not count lost multiplied games to?


   Yes as I showed it, it would just bet lo lo hi hi lo lo lo etc. it doesn't check if the bet won or lost.    Which is exactly what you asked for.  Notice I didn't say wanted.....  Smiley  You need to be very explicit, when your asking for something to be programmed. 

My idea and your often will not be the same... 

   

   If you just wanted to switch after a win you could move that code to the else path of your !win if statement.   

If you think about it.  The initialization part of the script is almost like filling in the website getting ready to make your first bet.  The Dobet function is the thought process you go thought for every other bet.   
So you roll the first time. 

What are you going to do if you win,
And what are you going to do if you lose.     

if win then
   This is what I'm going to do if I win.
else
   This is what I'm going to do if I lose
end

When the bot hits the last end statement (ending the function) it rolls again. 
and dobet gets called again with the new results. 

HCP
Legendary
*
Offline Offline

Activity: 2086
Merit: 4316

<insert witty quote here>


View Profile
April 29, 2017, 02:01:31 AM
 #525


You'll have to look this up.  But there is a way to create an array in LUA  it might be something like
betseq = {"Lo","Lo","Hi","Hi","Lo" etc......}
Yep, that is exactly how you create an "array" (in LUA they are "tables")...

And just a FYI, the convention in LUA is to index Arrays from 1... don't start counting at 0 like you would in C or Java etc Wink

hi guy!

i need to set chance from array like this:
chance =  {48,50,52,54}

and when win set chance random from the array

anyone help me?
Firstly, don't call your array "chance"... that is a built in variable that the bot uses to send the chance value to the dicesite Wink

Code:
chanceArray = {48,50,52,54}

if win then
  chance = chanceArray[math.random(#chanceArray)]
end

This will pick a "random" value from the chanceArray... the #chanceArray value is the number of items in the Array... so you can add more values or take some out and the code will still run without generating an "Index Out of Bounds" type error Wink

█████████████████████████
████▐██▄█████████████████
████▐██████▄▄▄███████████
████▐████▄█████▄▄████████
████▐█████▀▀▀▀▀███▄██████
████▐███▀████████████████
████▐█████████▄█████▌████
████▐██▌█████▀██████▌████
████▐██████████▀████▌████
█████▀███▄█████▄███▀█████
███████▀█████████▀███████
██████████▀███▀██████████
█████████████████████████
.
BC.GAME
▄▄░░░▄▀▀▄████████
▄▄▄
██████████████
█████░░▄▄▄▄████████
▄▄▄▄▄▄▄▄▄██▄██████▄▄▄▄████
▄███▄█▄▄██████████▄████▄████
███████████████████████████▀███
▀████▄██▄██▄░░░░▄████████████
▀▀▀█████▄▄▄███████████▀██
███████████████████▀██
███████████████████▄██
▄███████████████████▄██
█████████████████████▀██
██████████████████████▄
.
..CASINO....SPORTS....RACING..
█░░░░░░█░░░░░░█
▀███▀░░▀███▀░░▀███▀
▀░▀░░░░▀░▀░░░░▀░▀
░░░░░░░░░░░░
▀██████████
░░░░░███░░░░
░░█░░░███▄█░░░
░░██▌░░███░▀░░██▌
░█░██░░███░░░█░██
░█▀▀▀█▌░███░░█▀▀▀█▌
▄█▄░░░██▄███▄█▄░░▄██▄
▄███▄
░░░░▀██▄▀


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
BossMacko
Hero Member
*****
Offline Offline

Activity: 1134
Merit: 502



View Profile
April 29, 2017, 02:45:32 AM
 #526

Using bot and you will lose all in the end. The site can generate the roll number to make you lose. Grin Grin. They can check your ip, your location,your multi account, your profit,...

It is true that in the long run you will lose using DiceBot, But dicebot is being used by people who are busy in their daily life and want their account to still play even if they are busy. If you have a big bankroll and you used a bot betting small amount then you'll have the chance to win even if you run it 1 week as long as your bankroll can manage to recover from many losing streak.
chilly2k (OP)
Legendary
*
Offline Offline

Activity: 1007
Merit: 1000


View Profile
April 29, 2017, 03:28:37 AM
 #527

Using bot and you will lose all in the end. The site can generate the roll number to make you lose. Grin Grin. They can check your ip, your location,your multi account, your profit,...

   All true.  Except you can verify the rolls.  Legit sites wouldn't risk scamming you for 1 BTC when they can end up with thousand in legitimate profit.  It's not the sites causing you to lose, it's your luck, and the longer you try to beat the house, the more you'll lose.  I've run scripts and doubled my bankroll several times, but they always end up losing in the long run. 

   Enjoy the game, not the results.  Smiley     

AMONRA75
Full Member
***
Offline Offline

Activity: 148
Merit: 100


View Profile
April 29, 2017, 08:28:53 AM
 #528


You'll have to look this up.  But there is a way to create an array in LUA  it might be something like
betseq = {"Lo","Lo","Hi","Hi","Lo" etc......}
Yep, that is exactly how you create an "array" (in LUA they are "tables")...

And just a FYI, the convention in LUA is to index Arrays from 1... don't start counting at 0 like you would in C or Java etc Wink

hi guy!

i need to set chance from array like this:
chance =  {48,50,52,54}

and when win set chance random from the array

anyone help me?
Firstly, don't call your array "chance"... that is a built in variable that the bot uses to send the chance value to the dicesite Wink

Code:
chanceArray = {48,50,52,54}

if win then
  chance = chanceArray[math.random(#chanceArray)]
end

This will pick a "random" value from the chanceArray... the #chanceArray value is the number of items in the Array... so you can add more values or take some out and the code will still run without generating an "Index Out of Bounds" type error Wink


tnx a lot i try this!
psy112
Sr. Member
****
Offline Offline

Activity: 346
Merit: 250


psygambler


View Profile WWW
April 29, 2017, 10:03:34 AM
 #529

Hi,

I use bots a lot for my gambling, but since I have zero experience in coding I need some help adding a feature to one of my scripts.

This is the code I want modified:

Code:
chance = 90
bethigh = true
basebet = 0.00000200
nextbet = basebet

-- SET PROFIT TARGET
profittarget= 1.0000000

function dobet()
if (win) then
chance = 90.00
    nextbet = basebet
else
if chance == 19.80 then
nextbet = previousbet * 1.255
else
chance = 19.80
    nextbet = 0.00000060
            bethigh = !bethigh
end
end

if (balance) >= profittarget then

  ching()
  alarm() 
  print("Your Balance is ") print(balance)
  print(" ")
  print("TARGET ACHIEVED!!!")
  print(" ")
  print("You Won ") print(profit) print(" for this Session")
  print(" ")
  stop()
  print(" ")
end

end


I want to add the feature invest on it, so that when I hit my profit target it auto invest the profit and the restarts. I'm using the script together with seuntjies bot on Just-dice. Where should i add the invest part and restart?

HCP
Legendary
*
Offline Offline

Activity: 2086
Merit: 4316

<insert witty quote here>


View Profile
April 29, 2017, 12:50:56 PM
 #530

You can't restart the bot once you call stop(), the only way for it to start up again is to enter start() in the console window like you do to initially start the script running...

So, instead of issuing the stop() command, just track your profit amount, when it reaches the target you're happy with, use the invest() command and then reset back to initial script settings and continue Wink

NOTE: I'm not sure if this will work with any site... I've never used the invest() command, but there seems to be invest() code for just-dice in the dicebot code, so I'm assuming it works

Code:
...
startBalance = balance
runProfit = 0
profitTarget = 1.0 -- Set this to how much PROFIT you want to make before you invest, not the balance!
....

function dobet()

  runProfit = balance - startBalance

  if (win) then
    --do win stuff
  else
    -- do loss stuff
  end

  if runProfit >= profitTarget then
    ching()
    alarm() 
    print("Your Balance is " .. balance)
    print()
    print("TARGET ACHIEVED!!!")
    print()
    print("You Won " .. runProfit .. " for this Session")
    print()

    print("Investing: " .. runProfit)
    invest(runProfit) -- invest winnings
   
    -- reset back to beginning and continue
    startBalance = balance
    runProfit = 0
    chance = 90
    bethigh = true
    nextbet = basebet

    print(" ")
 end

end

█████████████████████████
████▐██▄█████████████████
████▐██████▄▄▄███████████
████▐████▄█████▄▄████████
████▐█████▀▀▀▀▀███▄██████
████▐███▀████████████████
████▐█████████▄█████▌████
████▐██▌█████▀██████▌████
████▐██████████▀████▌████
█████▀███▄█████▄███▀█████
███████▀█████████▀███████
██████████▀███▀██████████
█████████████████████████
.
BC.GAME
▄▄░░░▄▀▀▄████████
▄▄▄
██████████████
█████░░▄▄▄▄████████
▄▄▄▄▄▄▄▄▄██▄██████▄▄▄▄████
▄███▄█▄▄██████████▄████▄████
███████████████████████████▀███
▀████▄██▄██▄░░░░▄████████████
▀▀▀█████▄▄▄███████████▀██
███████████████████▀██
███████████████████▄██
▄███████████████████▄██
█████████████████████▀██
██████████████████████▄
.
..CASINO....SPORTS....RACING..
█░░░░░░█░░░░░░█
▀███▀░░▀███▀░░▀███▀
▀░▀░░░░▀░▀░░░░▀░▀
░░░░░░░░░░░░
▀██████████
░░░░░███░░░░
░░█░░░███▄█░░░
░░██▌░░███░▀░░██▌
░█░██░░███░░░█░██
░█▀▀▀█▌░███░░█▀▀▀█▌
▄█▄░░░██▄███▄█▄░░▄██▄
▄███▄
░░░░▀██▄▀


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
chilly2k (OP)
Legendary
*
Offline Offline

Activity: 1007
Merit: 1000


View Profile
April 29, 2017, 01:39:57 PM
 #531


You'll have to look this up.  But there is a way to create an array in LUA  it might be something like
betseq = {"Lo","Lo","Hi","Hi","Lo" etc......}
Yep, that is exactly how you create an "array" (in LUA they are "tables")...

And just a FYI, the convention in LUA is to index Arrays from 1... don't start counting at 0 like you would in C or Java etc Wink

  Good to know, I program in so many languages it's tough to keep track.  I actually did start that table with an index of 1.  I reset the index to 0 because it will be incremented before checking it.  Call it dumb luck... Smiley 

hi guy!

i need to set chance from array like this:
chance =  {48,50,52,54}

and when win set chance random from the array

anyone help me?
Firstly, don't call your array "chance"... that is a built in variable that the bot uses to send the chance value to the dicesite Wink

Code:
chanceArray = {48,50,52,54}

if win then
  chance = chanceArray[math.random(#chanceArray)]
end

This will pick a "random" value from the chanceArray... the #chanceArray value is the number of items in the Array... so you can add more values or take some out and the code will still run without generating an "Index Out of Bounds" type error Wink



  That's slick.  I didn't know about the #, I'll have to keep this in mind. 

Thanks for all of your tips and tricks...   

psy112
Sr. Member
****
Offline Offline

Activity: 346
Merit: 250


psygambler


View Profile WWW
April 29, 2017, 07:48:39 PM
 #532

You can't restart the bot once you call stop(), the only way for it to start up again is to enter start() in the console window like you do to initially start the script running...

So, instead of issuing the stop() command, just track your profit amount, when it reaches the target you're happy with, use the invest() command and then reset back to initial script settings and continue Wink

NOTE: I'm not sure if this will work with any site... I've never used the invest() command, but there seems to be invest() code for just-dice in the dicebot code, so I'm assuming it works

Code:
...
startBalance = balance
runProfit = 0
profitTarget = 1.0 -- Set this to how much PROFIT you want to make before you invest, not the balance!
....

function dobet()

  runProfit = balance - startBalance

  if (win) then
    --do win stuff
  else
    -- do loss stuff
  end

  if runProfit >= profitTarget then
    ching()
    alarm() 
    print("Your Balance is " .. balance)
    print()
    print("TARGET ACHIEVED!!!")
    print()
    print("You Won " .. runProfit .. " for this Session")
    print()

    print("Investing: " .. runProfit)
    invest(runProfit) -- invest winnings
   
    -- reset back to beginning and continue
    startBalance = balance
    runProfit = 0
    chance = 90
    bethigh = true
    nextbet = basebet

    print(" ")
 end

end

Ok that probably why i got a lot of luna errors when i tried putting in the invest() and start() commando after stop(). I'll give yours a try to see if it works Wink thanks for the help so far Wink

Nicoletta
Newbie
*
Offline Offline

Activity: 31
Merit: 0


View Profile
April 29, 2017, 08:52:40 PM
 #533

OK thanks so to bo more specific
i want the bot to do


bet1
1 satoshi high chances 49.5%
if lose it will bet previous  amount *2 until wins
if win it wait 2 seconds go to the bet2
bet2
1 satoshi high chances 49.5%
if lose it will bet previous  amount *2 until wins
if win it wait 2 seconds go to the bet2
bet3
1 satoshi low chances 49.5%
if lose it will bet previous  amount *2 until wins
if win it wait 2 seconds go to the bet4
bet4
1 satoshi low chances 49.5%
if lose it will bet previous  amount *2 until wins
if win it wait 2 seconds go to the bet5
bet5
1 satoshi high chances 49.5%
if lose it will bet previous  amount *2 until wins
if win it wait 2 seconds go to the bet6
bet6
1 satoshi high chances 49.5%
if lose it will bet previous  amount *2 until wins
if win it wait 2 seconds go to the bet7
bet7
1 satoshi high chances 49.5%
if lose it will bet previous  amount *2 until wins
if win it wait 2 seconds go to the bet8
bet8
1 satoshi low chances 49.5%
if lose it will bet previous  amount *2 until wins
if win it wait 2 seconds go to the bet9
bet9
1 satoshi low chances 49.5%
if lose it will bet previous  amount *2 until wins
if win it wait 2 seconds go to the bet10
bet10
1 satoshi high chances 49.5%
if lose it will bet previous  amount *2 until wins
if win
wait 10 seconds
check if the profit is higher than 0.001
if yes stop
if not go to bet 1


I am not even trying to put it into a code it sound so simple
hihi
hihi
hihihi
lololo
but now it is getting so complicated.

Anyone could write it so i could see how it should look like?
ponchofcult
Newbie
*
Offline Offline

Activity: 5
Merit: 0


View Profile
April 29, 2017, 09:40:53 PM
 #534

yes sorry and i left some things, like base bet ok i will change some numbers that are wrong and put only the information if you understant better that i want

Base bet:0.00000001
on every L-L-L-W multiply the last bet and the losses count from the LAST WIN only (the last reset i think)
BUT if W-W return to base bet (0.00000001) and reset the streak count
in W-L-W-L-W return to base bet and reset the streak count too

shorter and i think is the same that i want, more logic thank you so much, if you can or you have a guide with every variable and their function could help me the next time, the website is a litle confussing an excel table could be great, thanks










This is that I have for now


chance=33.0 --sets your chance for placing a bet
nextbet=0.0000001 --sets your first bet.
switchcount=0
bethigh=true --bet high when true, bet low when false

enablezz=false --set to true to use high/low switching
--settings from advanced mode

enablesrc=false --set to true to use stop/reset conditions
--settings from advanced mode

function dobet()
if win then
nextbet=previousbet*losses
switchcount=0
end
end


its all for now i get LUA error if i set some "=" or "currentstreak" or "then"
on every losses i can multiply lasbet for losses but if WW the ressult will be 0, 0 losses * 0.00000001 will be 0 right?
and on WLWLW ?

thank you guys
seuntjie
Legendary
*
Offline Offline

Activity: 1717
Merit: 1125



View Profile WWW
April 29, 2017, 10:33:55 PM
 #535

You can't restart the bot once you call stop(), the only way for it to start up again is to enter start() in the console window like you do to initially start the script running...

So, instead of issuing the stop() command, just track your profit amount, when it reaches the target you're happy with, use the invest() command and then reset back to initial script settings and continue Wink

NOTE: I'm not sure if this will work with any site... I've never used the invest() command, but there seems to be invest() code for just-dice in the dicebot code, so I'm assuming it works

Code:
...
startBalance = balance
runProfit = 0
profitTarget = 1.0 -- Set this to how much PROFIT you want to make before you invest, not the balance!
....

function dobet()

  runProfit = balance - startBalance

  if (win) then
    --do win stuff
  else
    -- do loss stuff
  end

  if runProfit >= profitTarget then
    ching()
    alarm()  
    print("Your Balance is " .. balance)
    print()
    print("TARGET ACHIEVED!!!")
    print()
    print("You Won " .. runProfit .. " for this Session")
    print()

    print("Investing: " .. runProfit)
    invest(runProfit) -- invest winnings
    
    -- reset back to beginning and continue
    startBalance = balance
    runProfit = 0
    chance = 90
    bethigh = true
    nextbet = basebet

    print(" ")
 end

end

Ok that probably why i got a lot of luna errors when i tried putting in the invest() and start() commando after stop(). I'll give yours a try to see if it works Wink thanks for the help so far Wink

Take a look at the tutorials linked on https://bot.seuntjie.com/programmermode.aspx, specifically https://steemit.com/dicebot/@seuntjie/dicebot-programmer-mode-tutorial-02-process
It will give you an overview of the process the bot follows every time a bet is placed.

Calling stop, then invest/withdraw/tip, the invest/withdraw/tip commands will still be executed/processed, as the whole dobet function is completed. But you cannot start the bot again after stopping it from within the script. It should never be necessary to do so as all of the functions that can be called from the programmer mode as synchronous and serial.

Edit: Also, see https://bot.seuntjie.com/features.aspx for a list of features that is enabled for the supported sites.

ponchofcult
Newbie
*
Offline Offline

Activity: 5
Merit: 0


View Profile
April 30, 2017, 01:32:40 AM
 #536

yes sorry and i left some things, like base bet ok i will change some numbers that are wrong and put only the information if you understant better that i want

Base bet:0.00000001
on every L-L-L-W multiply the last bet and the losses count from the LAST WIN only (the last reset i think)
BUT if W-W return to base bet (0.00000001) and reset the streak count
in W-L-W-L-W return to base bet and reset the streak count too

shorter and i think is the same that i want, more logic thank you so much, if you can or you have a guide with every variable and their function could help me the next time, the website is a litle confussing an excel table could be great, thanks












This is that I have for now


chance=33.0 --sets your chance for placing a bet
nextbet=0.0000001 --sets your first bet.
switchcount=0
bethigh=true --bet high when true, bet low when false

enablezz=false --set to true to use high/low switching
--settings from advanced mode

enablesrc=false --set to true to use stop/reset conditions
--settings from advanced mode

function dobet()
if win then
nextbet=previousbet*losses
switchcount=0
end
end


its all for now i get LUA error if i set some "=" or "currentstreak" or "then"
on every losses i can multiply lasbet for losses but if WW the ressult will be 0, 0 losses * 0.00000001 will be 0 right?
and on WLWLW ?

thank you guys


http://prnt.sc/f2en6e it might help, i'm going forward but now i dont know why him cant do the multiply previousbet*losses always he bet 10 why is not taking effect? thank you
chilly2k (OP)
Legendary
*
Offline Offline

Activity: 1007
Merit: 1000


View Profile
April 30, 2017, 01:46:52 AM
 #537

OK thanks so to bo more specific
i want the bot to do


bet1
1 satoshi high chances 49.5%
if lose it will bet previous  amount *2 until wins
if win it wait 2 seconds go to the bet2
bet2
1 satoshi high chances 49.5%
if lose it will bet previous  amount *2 until wins
if win it wait 2 seconds go to the bet2
bet3
1 satoshi low chances 49.5%
if lose it will bet previous  amount *2 until wins
if win it wait 2 seconds go to the bet4
bet4
1 satoshi low chances 49.5%
if lose it will bet previous  amount *2 until wins
if win it wait 2 seconds go to the bet5
bet5
1 satoshi high chances 49.5%
if lose it will bet previous  amount *2 until wins
if win it wait 2 seconds go to the bet6
bet6
1 satoshi high chances 49.5%
if lose it will bet previous  amount *2 until wins
if win it wait 2 seconds go to the bet7
bet7
1 satoshi high chances 49.5%
if lose it will bet previous  amount *2 until wins
if win it wait 2 seconds go to the bet8
bet8
1 satoshi low chances 49.5%
if lose it will bet previous  amount *2 until wins
if win it wait 2 seconds go to the bet9
bet9
1 satoshi low chances 49.5%
if lose it will bet previous  amount *2 until wins
if win it wait 2 seconds go to the bet10
bet10
1 satoshi high chances 49.5%
if lose it will bet previous  amount *2 until wins
if win
wait 10 seconds
check if the profit is higher than 0.001
if yes stop
if not go to bet 1


I am not even trying to put it into a code it sound so simple
hihi
hihi
hihihi
lololo
but now it is getting so complicated.

Anyone could write it so i could see how it should look like?

   Your still not being clear.  If you lose I'm assuming you stay at the same bet (high/low) until you win.  Once that win happens, what next?  Continue on your bet sequence or restart from bet1? 
Code:
betseq = {"Lo","Lo","Hi","Hi","Lo" etc......}
rollcounter = 1
bethigh = false
basebet = .00000001
nextbet = basebet

function dobet()

    if win then
       rollcounter += 1  --bump roll counter to point to the next place in the array.
       if betseq[rollcounter] == "Lo" then
           bethigh = false
       else
           bethigh = true
       end
       if rollcounter == 10 then  --reset roll counter when you hit the end of the array.
           rollcounter = 0
       end
       nextbet = basebet     --reset the next bet in case you lost some bets
    else  --you lost
       nextbet = previousbet * 2

       rollcounter = 0   -- if you want to restart from bet1    else delete to continue the sequence
    end     
end

   I didn't add any of the profit checking.  Play with this and see how it works.  Also you need to finish betseq.  and answer the question in the code. 
 

HCP
Legendary
*
Offline Offline

Activity: 2086
Merit: 4316

<insert witty quote here>


View Profile
April 30, 2017, 08:22:19 AM
 #538

OK thanks so to bo more specific
i want the bot to do

...
wait 2 seconds
...
wait 2 seconds
...
wait 10 seconds
...
Firstly, why would you want the bot to wait around so much? Most people use the bot to try to increase the betting speed??!? Huh

something like this should run through your high/low steps... (NOTE: this code has NOT been tested)...

EDIT: Hah, didn't realise there was another page... so only just saw chilly2k's code, which is pretty much identical to what I came up with... The only real difference, being that my code has the profit check stop() included... great minds think alike I guess Wink


Code:
bethighArray = {true, true, false, false, true, true, true, false, false, false}
stepCount = 1

bethigh = bethighArray[stepCount]

basebet = 0.00000001

nextbet = basebet
chance = 49.5

startBalance = balance
profitTarget = 0.001

function dobet()

  runProfit = balance - startBalance  

  if (win) then
    stepCount = stepCount + 1
    
    if stepCount > #bethighArray then
      -- check profit
      if runProfit > profitTarget then
        stop()
      else
        --reset
        stepCount = 1
      end
    end    
    
    nextbet = basebet
    bethigh = bethighArray[stepCount]
  
  else
    nextbet = previousbet * 2

  end

end

█████████████████████████
████▐██▄█████████████████
████▐██████▄▄▄███████████
████▐████▄█████▄▄████████
████▐█████▀▀▀▀▀███▄██████
████▐███▀████████████████
████▐█████████▄█████▌████
████▐██▌█████▀██████▌████
████▐██████████▀████▌████
█████▀███▄█████▄███▀█████
███████▀█████████▀███████
██████████▀███▀██████████
█████████████████████████
.
BC.GAME
▄▄░░░▄▀▀▄████████
▄▄▄
██████████████
█████░░▄▄▄▄████████
▄▄▄▄▄▄▄▄▄██▄██████▄▄▄▄████
▄███▄█▄▄██████████▄████▄████
███████████████████████████▀███
▀████▄██▄██▄░░░░▄████████████
▀▀▀█████▄▄▄███████████▀██
███████████████████▀██
███████████████████▄██
▄███████████████████▄██
█████████████████████▀██
██████████████████████▄
.
..CASINO....SPORTS....RACING..
█░░░░░░█░░░░░░█
▀███▀░░▀███▀░░▀███▀
▀░▀░░░░▀░▀░░░░▀░▀
░░░░░░░░░░░░
▀██████████
░░░░░███░░░░
░░█░░░███▄█░░░
░░██▌░░███░▀░░██▌
░█░██░░███░░░█░██
░█▀▀▀█▌░███░░█▀▀▀█▌
▄█▄░░░██▄███▄█▄░░▄██▄
▄███▄
░░░░▀██▄▀


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
Nicoletta
Newbie
*
Offline Offline

Activity: 31
Merit: 0


View Profile
April 30, 2017, 12:47:57 PM
 #539

Thank you
It looks like i need to learn a lot.
But i am on my way
psy112
Sr. Member
****
Offline Offline

Activity: 346
Merit: 250


psygambler


View Profile WWW
April 30, 2017, 02:04:29 PM
Last edit: May 02, 2017, 02:16:12 PM by psy112
 #540

You can't restart the bot once you call stop(), the only way for it to start up again is to enter start() in the console window like you do to initially start the script running...

So, instead of issuing the stop() command, just track your profit amount, when it reaches the target you're happy with, use the invest() command and then reset back to initial script settings and continue Wink

NOTE: I'm not sure if this will work with any site... I've never used the invest() command, but there seems to be invest() code for just-dice in the dicebot code, so I'm assuming it works

Code:
...
startBalance = balance
runProfit = 0
profitTarget = 1.0 -- Set this to how much PROFIT you want to make before you invest, not the balance!
....

function dobet()

  runProfit = balance - startBalance

  if (win) then
    --do win stuff
  else
    -- do loss stuff
  end

  if runProfit >= profitTarget then
    ching()
    alarm()  
    print("Your Balance is " .. balance)
    print()
    print("TARGET ACHIEVED!!!")
    print()
    print("You Won " .. runProfit .. " for this Session")
    print()

    print("Investing: " .. runProfit)
    invest(runProfit) -- invest winnings
    
    -- reset back to beginning and continue
    startBalance = balance
    runProfit = 0
    chance = 90
    bethigh = true
    nextbet = basebet

    print(" ")
 end

end

One thing i notice was that you took away the 19.8% part of the script ;P it only goes for 90% now

edit: lol after reading thru I saw that I should ad the do win and do lose stuff my self ;P lol Thanks for the help

Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 [27] 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 »
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!