Pages:
Author

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

newbie
Activity: 31
Merit: 0
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?
sr. member
Activity: 346
Merit: 250
psygambler
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
legendary
Activity: 1007
Merit: 1000

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...   
HCP
legendary
Activity: 2086
Merit: 4361
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
sr. member
Activity: 346
Merit: 250
psygambler
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?
full member
Activity: 148
Merit: 100

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!
legendary
Activity: 1007
Merit: 1000
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     
hero member
Activity: 1134
Merit: 502
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.
HCP
legendary
Activity: 2086
Merit: 4361

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
legendary
Activity: 1007
Merit: 1000

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. 
newbie
Activity: 31
Merit: 0
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?
full member
Activity: 148
Merit: 100
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?
legendary
Activity: 1007
Merit: 1000
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




hero member
Activity: 700
Merit: 500
Massive price drop coming...
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

This script will work as hihilowlow and hihihi and lowlowlow?
This is my first time and i want to try the bot if this is working on yolodice did you try this code in yolo? or this bot only works in other dice game?
newbie
Activity: 5
Merit: 0
Hello, im new on programmingmode and I need some help

what means resetstats()? reset the losses and winning events?

see this is more or less the thing that i wish configure

If I lose 1 to 4 times do nothing

If i lost 5 times and after i won 1 time change the bet  by multiply losses*lastbet and still the same on the losses and winning events

and if i lost 1 time and won 1 time twice (lost,win,lost,win) return to base bet and reset the winning and lossed statics (to the losses*lastbet multiply dont take effects all the losses)

and if i won 2 times on line reset to and return to base


thank you guys
  resetstats() resets all of your stats that the bot displays. 

  you can use the currentstreak variable and each time it is equal to 1 or -1 you know the bet switched from a lose to a win or the other way around.  if it goes to 2 or -2 you had 2 wins or 2 loses.  so we reset the switch count.  if switch count is 4 or more when you win, it's your LWLW situation. the reason we check for greater then is because it might actually be a WLWLW in which case the count will be 5 before you see it on the winning side.   


so
fivelosses = false
switchcount = 0
function dobet()
if (win) then
  if currentstreak == 1 then
    switchcount += 1
  else   // you won more then 1 time in a row so you could reset and return to base here. 
    switchcount = 0
  end
  if fivelosses then
     fivelosses = false
     change the bet  by multiply losses*lastbet and still the same on the losses and winning events
  end
  if switchcount > 3 then
    return to base bet and reset the winning and lossed statics (to the losses*lastbet multiply dont take effects all the losses)
    switchcount = 0      //reset switchcount or not depending on what you want. 
  end
     
     
else
  if currentstreak == -1 then
     switchcount +=1
  else
     switchcount = 0
  end
  if currentstreak < -4 then      I assumed you ment 5 times in a row. 
     fivelosses = true
  end
end
end



thank you sir, im trying to run the script but i got some LUA ERROR on fivelosses variable i think

Try cut/pasting the message, or do a screen print. 

That script as written won't actually run.  I just stuck text in there where I didn't quite understand what you wanted to do.  Also there is some text that should be commented out.  I assumed you ment 5 times in a row.   should have been a comment. 

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







newbie
Activity: 31
Merit: 0
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
legendary
Activity: 1007
Merit: 1000
Hello, im new on programmingmode and I need some help

what means resetstats()? reset the losses and winning events?

see this is more or less the thing that i wish configure

If I lose 1 to 4 times do nothing

If i lost 5 times and after i won 1 time change the bet  by multiply losses*lastbet and still the same on the losses and winning events

and if i lost 1 time and won 1 time twice (lost,win,lost,win) return to base bet and reset the winning and lossed statics (to the losses*lastbet multiply dont take effects all the losses)

and if i won 2 times on line reset to and return to base


thank you guys
  resetstats() resets all of your stats that the bot displays. 

  you can use the currentstreak variable and each time it is equal to 1 or -1 you know the bet switched from a lose to a win or the other way around.  if it goes to 2 or -2 you had 2 wins or 2 loses.  so we reset the switch count.  if switch count is 4 or more when you win, it's your LWLW situation. the reason we check for greater then is because it might actually be a WLWLW in which case the count will be 5 before you see it on the winning side.   


so
fivelosses = false
switchcount = 0
function dobet()
if (win) then
  if currentstreak == 1 then
    switchcount += 1
  else   // you won more then 1 time in a row so you could reset and return to base here. 
    switchcount = 0
  end
  if fivelosses then
     fivelosses = false
     change the bet  by multiply losses*lastbet and still the same on the losses and winning events
  end
  if switchcount > 3 then
    return to base bet and reset the winning and lossed statics (to the losses*lastbet multiply dont take effects all the losses)
    switchcount = 0      //reset switchcount or not depending on what you want. 
  end
     
     
else
  if currentstreak == -1 then
     switchcount +=1
  else
     switchcount = 0
  end
  if currentstreak < -4 then      I assumed you ment 5 times in a row. 
     fivelosses = true
  end
end
end



thank you sir, im trying to run the script but i got some LUA ERROR on fivelosses variable i think

Try cut/pasting the message, or do a screen print. 

That script as written won't actually run.  I just stuck text in there where I didn't quite understand what you wanted to do.  Also there is some text that should be commented out.  I assumed you ment 5 times in a row.   should have been a comment. 
newbie
Activity: 5
Merit: 0
Hello, im new on programmingmode and I need some help

what means resetstats()? reset the losses and winning events?

see this is more or less the thing that i wish configure

If I lose 1 to 4 times do nothing

If i lost 5 times and after i won 1 time change the bet  by multiply losses*lastbet and still the same on the losses and winning events

and if i lost 1 time and won 1 time twice (lost,win,lost,win) return to base bet and reset the winning and lossed statics (to the losses*lastbet multiply dont take effects all the losses)

and if i won 2 times on line reset to and return to base


thank you guys
  resetstats() resets all of your stats that the bot displays. 

  you can use the currentstreak variable and each time it is equal to 1 or -1 you know the bet switched from a lose to a win or the other way around.  if it goes to 2 or -2 you had 2 wins or 2 loses.  so we reset the switch count.  if switch count is 4 or more when you win, it's your LWLW situation. the reason we check for greater then is because it might actually be a WLWLW in which case the count will be 5 before you see it on the winning side.   


so
fivelosses = false
switchcount = 0
function dobet()
if (win) then
  if currentstreak == 1 then
    switchcount += 1
  else   // you won more then 1 time in a row so you could reset and return to base here. 
    switchcount = 0
  end
  if fivelosses then
     fivelosses = false
     change the bet  by multiply losses*lastbet and still the same on the losses and winning events
  end
  if switchcount > 3 then
    return to base bet and reset the winning and lossed statics (to the losses*lastbet multiply dont take effects all the losses)
    switchcount = 0      //reset switchcount or not depending on what you want. 
  end
     
     
else
  if currentstreak == -1 then
     switchcount +=1
  else
     switchcount = 0
  end
  if currentstreak < -4 then      I assumed you ment 5 times in a row. 
     fivelosses = true
  end
end
end



thank you sir, im trying to run the script but i got some LUA ERROR on fivelosses variable i think
newbie
Activity: 31
Merit: 0
Thanks guys for all help now i got another idea
how to do the script that will play something like that
Can anyone just write ma 2 sequences to demonstrate how it goes from 1 bet to another?

1xHi
if lose multiply *2
if wins go to next step
1xHi
if lose multiply *2
if wins go to next step
only 2 times now
1Lo
if lose multiply *2
if wins go to next step
1Lo
if lose multiply *2
if wins go to next step

again only 2 times
 and now
1xHi
3xLo

same principles
and start the loop again?
legendary
Activity: 1007
Merit: 1000
Hello, im new on programmingmode and I need some help

what means resetstats()? reset the losses and winning events?

see this is more or less the thing that i wish configure

If I lose 1 to 4 times do nothing

If i lost 5 times and after i won 1 time change the bet  by multiply losses*lastbet and still the same on the losses and winning events

and if i lost 1 time and won 1 time twice (lost,win,lost,win) return to base bet and reset the winning and lossed statics (to the losses*lastbet multiply dont take effects all the losses)

and if i won 2 times on line reset to and return to base


thank you guys
  resetstats() resets all of your stats that the bot displays. 

  you can use the currentstreak variable and each time it is equal to 1 or -1 you know the bet switched from a lose to a win or the other way around.  if it goes to 2 or -2 you had 2 wins or 2 loses.  so we reset the switch count.  if switch count is 4 or more when you win, it's your LWLW situation. the reason we check for greater then is because it might actually be a WLWLW in which case the count will be 5 before you see it on the winning side.   


so
fivelosses = false
switchcount = 0
function dobet()
if (win) then
  if currentstreak == 1 then
    switchcount += 1
  else   // you won more then 1 time in a row so you could reset and return to base here. 
    switchcount = 0
  end
  if fivelosses then
     fivelosses = false
     change the bet  by multiply losses*lastbet and still the same on the losses and winning events
  end
  if switchcount > 3 then
    return to base bet and reset the winning and lossed statics (to the losses*lastbet multiply dont take effects all the losses)
    switchcount = 0      //reset switchcount or not depending on what you want. 
  end
     
     
else
  if currentstreak == -1 then
     switchcount +=1
  else
     switchcount = 0
  end
  if currentstreak < -4 then      I assumed you ment 5 times in a row. 
     fivelosses = true
  end
end
end
Pages:
Jump to: