Pages:
Author

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

newbie
Activity: 51
Merit: 0
Ok B4RF
           Now it is exactly working as I need it.........Thanks again for your help Smiley
hero member
Activity: 813
Merit: 507
-snip-

try formatting your code the right way (I edited your code in your post) this might help reading your own code.

I this the following programm is what you are looking for

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

startBalance = balance
lowRoll = false
recovering = false

function dobet()
if (win) then
if (balance >= startBalance) then
chance = 90
nextbet = basebet

startBalance = balance
recovering = false
else
if (recovering) then
nextbet = balance
else
chance = 90
nextbet = basebet
end
end
else
if (recovering) then
chance=98
nextbet=balance
else
chance = 90
nextbet = balance/8

recovering = true
end
end
end

u need a variable to save the state for your consecutive 98% bets, I used the bool recovering.
and u might wanne rebase your startBalance if you are winning (so maybe after the statement 'recovering = false'

Okay I got the code working but there was an error which I have shown on the code with red line.But the problem is I wanted the 98% bet to be placed with an amount equal to updated balance after each of the 98% bets.

for eg: if the balance after first 98% bet is 0.0001 then next 98% bet is placed with 0.0001 and the next bet with the updated balance and so on till loss is recovered


I edited the code in my reply. You simply need to adjust the nextbet to the balance in case u won and u still need to recover.

And sorry for the || (or) Cheesy I am mainly implementing in java and didnt run any of these codes for testing.




Th@nk you B4RF Your code works as it should.Anyway I still had an issue with the code since you forgot a 'then' statement in the editted section(I have marked it in the code above) .But thats OK..

But I still have a problem the 98% chance bet is placed consecutively only till the balance is greater than the initial balance when starting a session and not takes account of the profits made in between.I want  the 98% bet to stop only when the balance is greater than the maxbalance(balance with intermediate profits also included).


for eg: if I start from faucet of 750 sats and  I make profits and reaches a balance 770 sats.Suppose I haven't had a situation to place 98% chance bets till balance is 770.Then lately I have reaches a stage to put 98% chance bets.At this time the bets are placed consecutively till the balance>750 and not 770. I want the 98% bet to stop when balance is greater than 770.

Ye I didnt run the code myself so mistakes are common but nice that u have no problems finding my mistakes Smiley

But in addition I have already mentioned how u can add that behaviour u asked for:


u need a variable to save the state for your consecutive 98% bets, I used the bool recovering.
and u might wanne rebase your startBalance if you are winning (so maybe after the statement 'recovering = false'

I changed the code above once again :S
newbie
Activity: 51
Merit: 0
-snip-

try formatting your code the right way (I edited your code in your post) this might help reading your own code.

I this the following programm is what you are looking for

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

startBalance = balance
lowRoll = false
recovering = false

function dobet()
if (win) then
if (balance >= startBalance) then         -------------------------------edit starts here
chance = 90
nextbet = basebet

recovering = false
else
if (recovering)                  --------------------------------------------------then????
nextbet = balance
else
chance = 90
nextbet = basebet
end
end                                                ------------------------------end of edit
else
if (recovering) then
chance=98
nextbet=balance
else
chance = 90
nextbet = balance/8

recovering = true
end
end
end

u need a variable to save the state for your consecutive 98% bets, I used the bool recovering.
and u might wanne rebase your startBalance if you are winning (so maybe after the statement 'recovering = false'

Okay I got the code working but there was an error which I have shown on the code with red line.But the problem is I wanted the 98% bet to be placed with an amount equal to updated balance after each of the 98% bets.

for eg: if the balance after first 98% bet is 0.0001 then next 98% bet is placed with 0.0001 and the next bet with the updated balance and so on till loss is recovered


I edited the code in my reply. You simply need to adjust the nextbet to the balance in case u won and u still need to recover.

And sorry for the || (or) Cheesy I am mainly implementing in java and didnt run any of these codes for testing.




Th@nk you B4RF Your code works as it should.Anyway I still had an issue with the code since you forgot a 'then' statement in the editted section(I have marked it in the code above) .But thats OK..

But I still have a problem the 98% chance bet is placed consecutively only till the balance is greater than the initial balance when starting a session and not takes account of the profits made in between.I want  the 98% bet to stop only when the balance is greater than the maxbalance(balance with intermediate profits also included).


for eg: if I start from faucet of 750 sats and  I make profits and reaches a balance 770 sats.Suppose I haven't had a situation to place 98% chance bets till balance is 770.Then lately I have reaches a stage to put 98% chance bets.At this time the bets are placed consecutively till the balance>750 and not 770. I want the 98% bet to stop when balance is greater than 770.
newbie
Activity: 54
Merit: 0
How do i code to reset base bet base on a total bet number that i desire.

For example: I put 18 bet and on x2 payout (49.50) - it does not matter if i win or lose it will reset every time it reach 18 bet.

I know this can be done in advance but there is some other feature that is limit in advance.

Thanks
kwong

*Update i have firgure how to reset it after some code testing. Thanks
hero member
Activity: 813
Merit: 507
-snip-

try formatting your code the right way (I edited your code in your post) this might help reading your own code.

I this the following programm is what you are looking for

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

startBalance = balance
lowRoll = false
recovering = false

function dobet()
if (win) then
if (balance >= startBalance) then         -------------------------------edit starts here
chance = 90
nextbet = basebet

recovering = false
else
if (recovering)
nextbet = balance
else
chance = 90
nextbet = basebet
end
end                                                ------------------------------end of edit
else
if (recovering) then
chance=98
nextbet=balance
else
chance = 90
nextbet = balance/8

recovering = true
end
end
end

u need a variable to save the state for your consecutive 98% bets, I used the bool recovering.
and u might wanne rebase your startBalance if you are winning (so maybe after the statement 'recovering = false'

Okay I got the code working but there was an error which I have shown on the code with red line.But the problem is I wanted the 98% bet to be placed with an amount equal to updated balance after each of the 98% bets.

for eg: if the balance after first 98% bet is 0.0001 then next 98% bet is placed with 0.0001 and the next bet with the updated balance and so on till loss is recovered


I edited the code in my reply. You simply need to adjust the nextbet to the balance in case u won and u still need to recover.

And sorry for the || (or) Cheesy I am mainly implementing in java and didnt run any of these codes for testing.
newbie
Activity: 51
Merit: 0
I wanna make a program which makes bets like this:
                     There is a basebet equal to 0.00000001. This basebet is placed with chance of 90% and bethigh=true.It is rolled till a number less than 9.99 is rolled.When the number less than 9.99 is rolled ,then the next bet is placed with same chance and same condition at an  amount equal to (1/8) th of balance.If that bet is a win then the bet is back to base bet and continue the cycle and if the bet was a loss ,then the nextbet is placed with an amount equal to remaining balance and chance 98% with bethigh=true.This bet is placed consecutively till the balance reaches an amount greater than or equal to initial balance.



I have wrote part of the code myself and it is pretty well working:

chance = 90
bethigh = true
basebet =0.00000001
nextbet = basebet

function dobet()
   if (win) then
      chance = 90
      nextbet = basebet

   else
      if currentstreak==-2 then
         chance=98
         nextbet=balance

      else
         if (!win) then
            chance =90                                          <- dead code: else statement from if(win) see above and then if(!win) - both can never be the case
            nextbet = balance/2

         else
            chance=90
            nextbet=basebet
         end
      end
   end
end





BUT IN THIS CODE THE 98% chance bet is placed only once ,but I want to place the 98 % chance bets consecutively until the current balance becomes greater than or equal to the balance at each stages i.e,balance covering  the losses.CAn you help me with that..........
               


try formatting your code the right way (I edited your code in your post) this might help reading your own code.

I this the following programm is what you are looking for

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

startBalance = balance
lowRoll = false
recovering = false

function dobet()
if (win) then
if (!recovering || (balance >= startBalance)) then               ----------------------------------here I replaced '||' with 'or'
chance = 90
nextbet = basebet

recovering = false
end
else
if (recovering) then
chance=98
nextbet=balance
else
chance = 90
nextbet = balance/8

recovering = true
end
end
end

u need a variable to save the state for your consecutive 98% bets, I used the bool recovering.
and u might wanne rebase your startBalance if you are winning (so maybe after the statement 'recovering = false'

Okay I got the code working but there was an error which I have shown on the code .But the problem is I wanted the 98% bet to be placed with an amount equal to updated balance after each of the 98% bets.

for eg: if the balance after first 98% bet is 0.0001 then next 98% bet is placed with 0.0001 and the next bet with the updated balance and so on till loss is recovered
member
Activity: 90
Merit: 10
Visit www.btcscriptbot.wordpress.com to get latest
all done now its complete and earning like really much than i expected

bethigh = true -- does what it says, it bets "high"
bethigh = false -- does the opposite, it will bet "low"

there is no such thing as "betlow" Wink

To stop after loss, you need to track the "profit"...

Code:
...
startBalance = balance
runprofit = 0
...
function dobet()
  ...
  runprofit = balance - startBalance
  if runProfit <= -0.003 then  -- 0.003 BTC loss
    nextbet = 0
    stop()
  end

end


okay bro thankx alot, but am i gonna input it this way?
Code:
...
startBalance = balance --should i change this to my starting bet or starting balance?
runprofit = 0 -- shopuld i input the number i want it to stop at here? e.g runprofit=0.00300000
...
function dobet()
  ...
  runprofit = balance - startBalance
  if runProfit <= -0.003 then  -- 0.003 BTC loss
    nextbet = 0
    stop()
  end

end
hero member
Activity: 813
Merit: 507
I wanna make a program which makes bets like this:
                     There is a basebet equal to 0.00000001. This basebet is placed with chance of 90% and bethigh=true.It is rolled till a number less than 9.99 is rolled.When the number less than 9.99 is rolled ,then the next bet is placed with same chance and same condition at an  amount equal to (1/8) th of balance.If that bet is a win then the bet is back to base bet and continue the cycle and if the bet was a loss ,then the nextbet is placed with an amount equal to remaining balance and chance 98% with bethigh=true.This bet is placed consecutively till the balance reaches an amount greater than or equal to initial balance.



I have wrote part of the code myself and it is pretty well working:

chance = 90
bethigh = true
basebet =0.00000001
nextbet = basebet

function dobet()
   if (win) then
      chance = 90
      nextbet = basebet

   else
      if currentstreak==-2 then
         chance=98
         nextbet=balance

      else
         if (!win) then
            chance =90                                          <- dead code: else statement from if(win) see above and then if(!win) - both can never be the case
            nextbet = balance/2

         else
            chance=90
            nextbet=basebet
         end
      end
   end
end





BUT IN THIS CODE THE 98% chance bet is placed only once ,but I want to place the 98 % chance bets consecutively until the current balance becomes greater than or equal to the balance at each stages i.e,balance covering  the losses.CAn you help me with that..........
                


try formatting your code the right way (I edited your code in your post) this might help reading your own code.

I this the following programm is what you are looking for

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

startBalance = balance
lowRoll = false
recovering = false

function dobet()
if (win) then
if (!recovering || (balance >= startBalance)) then
chance = 90
nextbet = basebet

recovering = false
end
else
if (recovering) then
chance=98
nextbet=balance
else
chance = 90
nextbet = balance/8

recovering = true
end
end
end

u need a variable to save the state for your consecutive 98% bets, I used the bool recovering.
and u might wanne rebase your startBalance if you are winning (so maybe after the statement 'recovering = false'
newbie
Activity: 51
Merit: 0
I wanna make a program which makes bets like this:
                     There is a basebet equal to 0.00000001. This basebet is placed with chance of 90% and bethigh=true.It is rolled till a number less than 9.99 is rolled.When the number less than 9.99 is rolled ,then the next bet is placed with same chance and same condition at an  amount equal to (1/8) th of balance.If that bet is a win then the bet is back to base bet and continue the cycle and if the bet was a loss ,then the nextbet is placed with an amount equal to remaining balance and chance 98% with bethigh=true.This bet is placed consecutively till the balance reaches an amount greater than or equal to initial balance.



I have wrote part of the code myself and it is pretty well working:

chance = 90
bethigh = true
basebet =0.00000001
nextbet = basebet

function dobet()
   if (win) then
      chance = 90
         nextbet = basebet
                                 
                               
        else if currentstreak==-2 then
                chance=98
                nextbet=balance
               

        else if (!win) then
                chance =90 
              nextbet = balance/2
                                           
         
        else    chance=90
                nextbet=basebet
            end
                                                   
        end
                       
     end
end





BUT IN THIS CODE THE 98% chance bet is placed only once ,but I want to place the 98 % chance bets consecutively until the current balance becomes greater than or equal to the balance at each stages i.e,balance covering  the losses.CAn you help me with that..........
               
member
Activity: 90
Merit: 10
Visit www.btcscriptbot.wordpress.com to get latest
bethigh = true -- does what it says, it bets "high"
bethigh = false -- does the opposite, it will bet "low"

there is no such thing as "betlow" Wink

To stop after loss, you need to track the "profit"...

Code:
...
startBalance = balance
runprofit = 0
...
function dobet()
  ...
  runprofit = balance - startBalance
  if runProfit <= -0.003 then  -- 0.003 BTC loss
    nextbet = 0
    stop()
  end

end


okay bro thankx alot, but am i gonna input it this way?
Code:
...
startBalance = balance --should i change this to my starting bet or starting balance?
runprofit = 0 -- shopuld i input the number i want it to stop at here? e.g runprofit=0.00300000
...
function dobet()
  ...
  runprofit = balance - startBalance
  if runProfit <= -0.003 then  -- 0.003 BTC loss
    nextbet = 0
    stop()
  end

end
HCP
legendary
Activity: 2086
Merit: 4361
bethigh = true -- does what it says, it bets "high"
bethigh = false -- does the opposite, it will bet "low"

there is no such thing as "betlow" Wink

To stop after loss, you need to track the "profit"...

Code:
...
startBalance = balance
runprofit = 0
...
function dobet()
  ...
  runprofit = balance - startBalance
  if runProfit <= -0.003 then  -- 0.003 BTC loss
    nextbet = 0
    stop()
  end

end
member
Activity: 90
Merit: 10
Visit www.btcscriptbot.wordpress.com to get latest
NOW one more last thing pls how can i put a stop button in the script if i loss more than 0.003btc...
i want the script to automatically stop after i loss 0.003btc.......
and also i really want the script bet high or low cus its really impotant infact its the main key to earn so pls how and where do i put the
winhigh and winlow button (i want te 28.08% to bet high while the others which is 90%,94%and95% to bet low-------------- here is what i have tried in the script but it only use any one of it that i set to true)

Code:
wagered=0
chance0=28.08
chance1=90.4
chance2=94   
chance3=95   
baseBet=0.00000001
baseBet1=0.00000003 
baseBet2=0.00000004 
baseBet3=0.00000005 
nextbet=baseBet
bethigh=true
betlow=true
profittarget=0.00900000
function dobet()
wagered=wagered+previousbet
chance = chance0

if win then
                 bethigh=true
nextbet=baseBet
else
nextbet=previousbet*2
end

if currentstreak==-2 then
chance=chance1
                betlow=true
nextbet=baseBet1
end
if currentstreak==-3 then
chance=chance2
nextbet=baseBet2
end
if currentstreak==-4 then
chance=chance3
nextbet=baseBet3
end
if currentstreak<-4 then
chance=chance0
nextbet=baseBet
end
if (balance) >= profittarget then
print(balance)
print("TARGET ACHIEVED!!!")
stop();
end

end
member
Activity: 90
Merit: 10
Visit www.btcscriptbot.wordpress.com to get latest
UPDATES , bro i fixed the error  (i just remove the profit targets and refix it and other un_used codes)
GOD BLESS U BRO, I CANT THANK U ENOGH
MY SCRIPT NOW WORKS EXACTLY THE WAY I WANT IT TO..............

(do u know?  it becomes a jackport hitter when u change ur basebet to 2satoshis) Wink

THATS IT FOR ANYONE INTRESTED ..........

Code:
wagered=0
chance0=28.08
chance1=90.4
chance2=94    
chance3=95  
baseBet=0.00000001
baseBet1=0.00000003  
baseBet2=0.00000004  
baseBet3=0.00000005  
nextbet=baseBet
profittarget=0.00900000
function dobet()
wagered=wagered+previousbet
chance = chance0

if win then
nextbet=baseBet
else
nextbet=previousbet*2
end

if currentstreak==-2 then
chance=chance1
nextbet=baseBet1
end
if currentstreak==-3 then
chance=chance2
nextbet=baseBet2
end
if currentstreak==-4 then
chance=chance3
nextbet=baseBet3
end
if currentstreak<-4 then
chance=chance0
nextbet=baseBet
end
if (balance) >= profittarget then
print(balance)
print("TARGET ACHIEVED!!!")
stop();
end

end



THANKX TO U ALL FOR UR SUPPORT ON THIS SCRIPT
(CREDIT: SEUNTIJ -BOT OWNER) (CREDIT: HCP - PROGRAMMER) (CREDIT : CHILLY2K - SCRIPT TIP CODER)
(MOST THANKFULL CREDIT: B4RF - SCRIPT FULLY SUPPORTER)

JAH BLESS U ALL

WILL POST MY PAYMENT PROFS SOON I JUST MADE 0.005BTC WITH IT WITH A BANKROLL OF 0.003BTC
member
Activity: 90
Merit: 10
Visit www.btcscriptbot.wordpress.com to get latest
thankx alot bro for ur efforts the script worked, BUT (worked upside down, the first bet is 28.08 chance but it went to bet at 94% chance , and again it stops after only one bet
i get this error after the 1bet (Betting Stopped!
[string "chunk"]:36: attempt to compare nil with number)
pls what could be the error

WOW! bro u are such a kinded hearth and generous person i will really appricaiate it sir ,,,, here is my currrent status of my script below  (and yes i still want it to perform the same process i said b4)


-snip-

Code:
wagered=0
chance0=28.08
chance1=90.4  --I hope this are the varies and value u asked me to set b4 dobet function
chance2=94     --I hope this are the varies and value u asked me to set b4 dobet function
chance3=95     --I hope this are the varies and value u asked me to set b4 dobet function
baseBet=0.00000001 -- should the baseBet be up here?
baseBet1=0.00030000   --I hope this are the varies and value u asked me to set b4 dobet function
baseBet2=0.00060000   --I hope this are the varies and value u asked me to set b4 dobet function
baseBet3=0.00100000   --I hope this are the varies and value u asked me to set b4 dobet function
profitterget=0.00100000

nextbet=baseBet

function dobet()
wagered=wagered+previousbet
chance = chance0

if win then
nextbet=baseBet
else
nextbet=previousbet*2
end

if currentstreak==-10 then
chance=chance1
nextbet=baseBet1
end
if currentstreak==-11 then
chance=chance2
nextbet=baseBet2
end
if currentstreak==-12 then
chance=chance3
nextbet=baseBet3
end
if currentstreak<-12 then
chance=chance0
nextbet=baseBet
end

if (balance) >= profittarget then
print(balance)
print("TARGET ACHIEVED!!!")
stop();
end
end

Sry for the late reply...I didnt test it since I had not much time and I removed the betHigh/betLow bs since that makes no sense Cheesy

@HCP you are actually right ... but I already sayd I will look into it and maybe it will help him to have one functioning code in his hands xD
hero member
Activity: 813
Merit: 507
WOW! bro u are such a kinded hearth and generous person i will really appricaiate it sir ,,,, here is my currrent status of my script below  (and yes i still want it to perform the same process i said b4)


-snip-

Code:
wagered=0
chance0=28.08
chance1=90.4  --I hope this are the varies and value u asked me to set b4 dobet function
chance2=94     --I hope this are the varies and value u asked me to set b4 dobet function
chance3=95     --I hope this are the varies and value u asked me to set b4 dobet function
baseBet=0.00000001 -- should the baseBet be up here?
baseBet1=0.00030000   --I hope this are the varies and value u asked me to set b4 dobet function
baseBet2=0.00060000   --I hope this are the varies and value u asked me to set b4 dobet function
baseBet3=0.00100000   --I hope this are the varies and value u asked me to set b4 dobet function
profitterget=0.00100000

nextbet=baseBet

function dobet()
wagered=wagered+previousbet
chance = chance0

if win then
nextbet=baseBet
else
nextbet=previousbet*2
end

if currentstreak==-10 then
chance=chance1
nextbet=baseBet1
end
if currentstreak==-11 then
chance=chance2
nextbet=baseBet2
end
if currentstreak==-12 then
chance=chance3
nextbet=baseBet3
end
if currentstreak<-12 then
chance=chance0
nextbet=baseBet
end

if (balance) >= profittarget then
print(balance)
print("TARGET ACHIEVED!!!")
stop();
end
end

Sry for the late reply...I didnt test it since I had not much time and I removed the betHigh/betLow bs since that makes no sense Cheesy

@HCP you are actually right ... but I already sayd I will look into it and maybe it will help him to have one functioning code in his hands xD
member
Activity: 90
Merit: 10
Visit www.btcscriptbot.wordpress.com to get latest
it still the same script tho i just modified some stuffs in it the way u told me to
member
Activity: 90
Merit: 10
Visit www.btcscriptbot.wordpress.com to get latest
thankx bro for ur reply,
okay, hv just created new script and i think am 1% far away for it to start working so when ever i start it it brings  this msg i dont think its error tho,(Please set starting bet using nextbet = x.xxxxxxxx) so what should i do here, there is the new script below
Code:
wagered=0   
 wagered=wagered+previousbet
 chance=28.08
 chance1=90.4  --I hope this are the varies and value u asked me to set b4 dobet function
 chance2=94     --I hope this are the varies and value u asked me to set b4 dobet function
 chance3=95     --I hope this are the varies and value u asked me to set b4 dobet function
 bethigh=false
 baseBet=0.00000001 -- should the baseBet be up here?
 baseBet1=0.00000004   --I hope this are the varies and value u asked me to set b4 dobet function
 baseBet2=0.00000007   --I hope this are the varies and value u asked me to set b4 dobet function
 baseBet3=0.00000009   --I hope this are the varies and value u asked me to set b4 dobet function
 nextbet=baseBet

function dobet()
chance=28.08
baseBet=0.00000001
end

if win then

 nextbet=baseBet

else

 nextbet=previousbet*baseBet

if currentstreak== -10 then

chance = chance1
nextbet=baseBet1
bethigh = false

end
 
 if currentstreak == -11 then
 
chance = chance2
 nextbet=baseBet2
bethigh = true

end

 if currentstreak == -12 then

chance = chance3
nextbet=baseBet3
bethigh = false

end

   if currentstreak < -12 then
       
      nextbet = basebet
      chance = default
      bethigh = false
   end
end

WOW! bro u are such a kinded hearth and generous person i will really appricaiate it sir ,,,, here is my currrent status of my script below  (and yes i still want it to perform the same process i said b4)


Code:
wagered=0   
 wagered=wagered+previousbet
 chance=28.08
 chance1=90.4  --I hope this are the varies and value u asked me to set b4 dobet function
 chance2=94     --I hope this are the varies and value u asked me to set b4 dobet function
 chance3=95     --I hope this are the varies and value u asked me to set b4 dobet function
 bethigh=false
 baseBet=0.00000001 -- should the baseBet be up here?
 baseBet1=0.00000020   --I hope this are the varies and value u asked me to set b4 dobet function
 baseBet2=0.00000030   --I hope this are the varies and value u asked me to set b4 dobet function
 baseBet3=0.00000050   --I hope this are the varies and value u asked me to set b4 dobet function
 profitterget=0.00100000
 nextbet=baseBet

function dobet()
chance = 28.08

 baseBet=0.00000001

end

if win then

 nextbet=baseBet

else

 nextbet=previousbet+baseBet

end

if currentstreak==-10 then

chance = chance1
betlow = false

 nextbet=baseBet1

else
 
 if win then

  nextbet=baseBet

else
 
chance = chance2
bethigh = true

 nextbet=baseBet2

else

if win then

 nextbet=baseBet

else

chance = chance3
bethigh = false

 nextbet=baseBet3

end

if win then

 nextbet=baseBet

 end

 
if (balance) >= profittarget then
stop();
print(balance)
print("TARGET ACHIEVED!!!")

 end

end

its working but not following the process sir



  Your code is not even close to the pseudo-code.
Code:
if win then
else
   nextbet = previousbet * 2
   if currentstreak == -10 then
      do your 10 lose stuff
   end
   if currentstreak == -11 then
      11 lose
   end
   if currentstreak == -12 then
      12 lose
   end
   if currentstreak < -12 then
        reset everything
      nextbet = basebet
      chance = default
      bethigh = whatever you want it to be.
   end
end

   Then you could add the profit stuff.  But I would make sure the main code is working before adding stuff.  It makes it easier to catch any errors.

   Try again.  I've already explained why that script above doesn't work.  If you don't understand then try reading the reply by HCP.  and if you still don't understand then I'm sorry but I can't help.
legendary
Activity: 1007
Merit: 1000
WOW! bro u are such a kinded hearth and generous person i will really appricaiate it sir ,,,, here is my currrent status of my script below  (and yes i still want it to perform the same process i said b4)


Code:
wagered=0   
 wagered=wagered+previousbet
 chance=28.08
 chance1=90.4  --I hope this are the varies and value u asked me to set b4 dobet function
 chance2=94     --I hope this are the varies and value u asked me to set b4 dobet function
 chance3=95     --I hope this are the varies and value u asked me to set b4 dobet function
 bethigh=false
 baseBet=0.00000001 -- should the baseBet be up here?
 baseBet1=0.00000020   --I hope this are the varies and value u asked me to set b4 dobet function
 baseBet2=0.00000030   --I hope this are the varies and value u asked me to set b4 dobet function
 baseBet3=0.00000050   --I hope this are the varies and value u asked me to set b4 dobet function
 profitterget=0.00100000
 nextbet=baseBet

function dobet()
chance = 28.08

 baseBet=0.00000001

end

if win then

 nextbet=baseBet

else

 nextbet=previousbet+baseBet

end

if currentstreak==-10 then

chance = chance1
betlow = false

 nextbet=baseBet1

else
 
 if win then

  nextbet=baseBet

else
 
chance = chance2
bethigh = true

 nextbet=baseBet2

else

if win then

 nextbet=baseBet

else

chance = chance3
bethigh = false

 nextbet=baseBet3

end

if win then

 nextbet=baseBet

 end

 
if (balance) >= profittarget then
stop();
print(balance)
print("TARGET ACHIEVED!!!")

 end

end

its working but not following the process sir



  Your code is not even close to the pseudo-code.
Code:
if win then
else
   nextbet = previousbet * 2
   if currentstreak == -10 then
      do your 10 lose stuff
   end
   if currentstreak == -11 then
      11 lose
   end
   if currentstreak == -12 then
      12 lose
   end
   if currentstreak < -12 then
        reset everything
      nextbet = basebet
      chance = default
      bethigh = whatever you want it to be.
   end
end

   Then you could add the profit stuff.  But I would make sure the main code is working before adding stuff.  It makes it easier to catch any errors.

   Try again.  I've already explained why that script above doesn't work.  If you don't understand then try reading the reply by HCP.  and if you still don't understand then I'm sorry but I can't help.
member
Activity: 90
Merit: 10
Visit www.btcscriptbot.wordpress.com to get latest
thankx alot bro, am checking out the link right now,, and jh bless u

List of issues he is experiencing:

1. He has mispelled variables
2. his dobet() function is:
Code:
function dobet()
  basebet = 0.00000001
end
So basically all his script will ever do after each roll is set the basebet to 0.00000001 and then do the next roll with whatever chance, and bethigh values were set at start.
3. He has pretty much zero knowledge of programming (despite having read Seuntjies tutorials 30 times)
4. He still hasn't figured out that the programming language is called LUA after being told at least 3 times from memory
5. He doesn't understand the logical flow of the script (fairly common mistake of people new to programming)

I applaud chilly2k and Seuntjie for their initial patience in trying to help... but there is a reason there is a "simple" (and "advanced") mode...

Phyzyprogrammer... if you are serious about wanting to learn to use the programmer mode and no just run other peoples scripts, read this: https://www.lua.org/pil/contents.html

member
Activity: 90
Merit: 10
Visit www.btcscriptbot.wordpress.com to get latest
WOW! bro u are such a kinded hearth and generous person i will really appricaiate it sir ,,,, here is my currrent status of my script below  (and yes i still want it to perform the same process i said b4)


Code:
wagered=0   
 wagered=wagered+previousbet
 chance=28.08
 chance1=90.4  --I hope this are the varies and value u asked me to set b4 dobet function
 chance2=94     --I hope this are the varies and value u asked me to set b4 dobet function
 chance3=95     --I hope this are the varies and value u asked me to set b4 dobet function
 bethigh=false
 baseBet=0.00000001 -- should the baseBet be up here?
 baseBet1=0.00000020   --I hope this are the varies and value u asked me to set b4 dobet function
 baseBet2=0.00000030   --I hope this are the varies and value u asked me to set b4 dobet function
 baseBet3=0.00000050   --I hope this are the varies and value u asked me to set b4 dobet function
 profitterget=0.00100000
 nextbet=baseBet

function dobet()
chance = 28.08

 baseBet=0.00000001

end

if win then

 nextbet=baseBet

else

 nextbet=previousbet+baseBet

end

if currentstreak==-10 then

chance = chance1
betlow = false

 nextbet=baseBet1

else
 
 if win then

  nextbet=baseBet

else
 
chance = chance2
bethigh = true

 nextbet=baseBet2

else

if win then

 nextbet=baseBet

else

chance = chance3
bethigh = false

 nextbet=baseBet3

end

if win then

 nextbet=baseBet

 end

 
if (balance) >= profittarget then
stop();
print(balance)
print("TARGET ACHIEVED!!!")

 end

end

its working but not following the process sir

-snip-

bro hv done everything but still doing the same

I can write you the code when I am back at home from work but is this still the behaviour you are looking for?

here is the full explaination sir (thank u in advanced)

let say i bet
0.00000002 and i win,  i want it to go back to the basebet and bet 0.00000002
But if i bet 0.00000002 and loss, then i want it to multiply *2 of my loss so my next bet will be 0.00000004
then if i loss again i want it to still double up the nextbet to 0.00000008 till i win then i want it to go back to the basebet thats if i win (i only want 10 loss in a row b4 changing to the 90% chance)

EXAMPLE

it will look like this when the lossing occurs
0.00000002
0.00000004
0.00000008
0.00000016
0.00000032
0.00000064
0.00000128
0.00000256
0.00000512
0.00001024
 till it reach 10losses but now lets assum its has reach 10losses

so when i get 10 losses i want the bet to change to 0.0003 with a 90%chance so if i dont win it i want it to change to 0.0006bet with 94%chance so if i dont win again i want the third bet to change to 0.001btc with a 95%chance
so if i in anycase win or loss THIS 90% 94% 95% CHANCES  i want it to go back to base bet and restart again


I think there might be just a missing variable change in your code. might be helpfull if you can post your current state.
Pages:
Jump to: