Pages:
Author

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

member
Activity: 90
Merit: 10
Visit www.btcscriptbot.wordpress.com to get latest
bro thanks alot GOD bless u alot for ur efforts ,, i just saw the (pseudo-code example) u gave me and am trying to work on it i will post an update on it very soon.. once am done

pls check my script .....
at the end i changed it from

if win then
 nextbet=baseBet
else
 nextbet=baseBet
end
 end
 
 TO

end

 nextbet=baseBet

end

THATS WHY IT STARTED WORKING BUT STILL NOT FOLOWING THEPROCESS IT SHOULD FOLLOW


hello thankx for ur effort sir,

my script as started working but its not performing some actions

1- it dosnt +the previous bet with the basebet
2- if the current streak is 10 it still wont change the bet to the nextbet it just continue to bet with the basebet on and on

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  -- it dse not perform this action

end

if currentstreak==-10 then  -- it dosnt perform this action too and any of the action below also.. but its just betting on with the base bet

chance = chance1
betlow = false

 nextbet=baseBet1

end
 
 if win then

  nextbet=baseBet

else
 
chance = chance2
bethigh = true

 nextbet=baseBet2

end

if win then

 nextbet=baseBet

else

chance = chance3
bethigh = false

 nextbet=baseBet3

end

 nextbet=baseBet

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

 end

end


pls what should i do
  You really need to understand the logic of your script.  Lets say the bot rolled and you lost.  dobet() is entered
it does.
chance = 28.08

 baseBet=0.00000001

end

end is the end of the function, nothing after that matters.   It can get tricky because you have to also end an if/else group.   

Here is your code with better formatting so you can spot error's easier. 

Code:
wagered=0   
wagered=wagered+previousbet  <---  There is no previous bet at this point.  This doesn't do anything. 
chance=28.08
chance1=90.4 
chance2=94   
chance3=95   
bethigh=false
baseBet=0.00000001
baseBet1=0.00000020   
baseBet2=0.00000030 
baseBet3=0.00000050   
profitterget=0.00100000  <  This is misspelled... 
nextbet=baseBet

function dobet()

   chance = 28.08
   baseBet=0.00000001

end   < This ends the function dobet()  Nothing after this matters....   IE Get rid of this.......

   if win then
      nextbet=baseBet
   else
      nextbet=previousbet+baseBet  -- it dse not perform this action
   end

   if currentstreak==-10 then  -- it dosnt perform this action too and any of the action below also.. but its just betting on with the base bet
      chance = chance1
      betlow = false               --  betlow is not a valid name. 
      nextbet=baseBet1
   end
 
   if win then
      nextbet=baseBet
   else
      chance = chance2
      bethigh = true
      nextbet=baseBet2
   end

   if win then                        -- No matter what you did above this is the only block that will matter.
      nextbet=baseBet
   else
      chance = chance3
      bethigh = false
      nextbet=baseBet3
   end

   nextbet=baseBet               -- and now your just setting nextbet to always be equal to basebet   

end                                 -- Again not sure what this is for
 
if (balance) >= profittarget then
   stop();
   print(balance)
   print("TARGET ACHIEVED!!!")
end

end --This should be at the end of the

You can have nested if statement. 

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. 

]





bro hv done everything but still doing the same

If the code is at least running.  Start adding print statements to fix your logic. 
Like
print("Dobet entered")

and later in the win path

print("roll won")
print(nextbet)  to show you set nextbet. 

You can print text in quotes or the values of variables.  And .. concatenates the output.
so
print("Nextbet = "..nextbet)  should print Nextbet = 0.00000001

The pseudo-code example I gave at the end of my last update is the script your asking for without the values filled in.  Look that over carefully and try to understand what it's doing. 

Also the programming language used is called LUA.  You can search for LUA tutorials. 



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.
HCP
legendary
Activity: 2086
Merit: 4361
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
hero member
Activity: 813
Merit: 507
-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.
legendary
Activity: 1007
Merit: 1000
pls check my script .....
at the end i changed it from

if win then
 nextbet=baseBet
else
 nextbet=baseBet
end
 end
 
 TO

end

 nextbet=baseBet

end

THATS WHY IT STARTED WORKING BUT STILL NOT FOLOWING THEPROCESS IT SHOULD FOLLOW


hello thankx for ur effort sir,

my script as started working but its not performing some actions

1- it dosnt +the previous bet with the basebet
2- if the current streak is 10 it still wont change the bet to the nextbet it just continue to bet with the basebet on and on

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  -- it dse not perform this action

end

if currentstreak==-10 then  -- it dosnt perform this action too and any of the action below also.. but its just betting on with the base bet

chance = chance1
betlow = false

 nextbet=baseBet1

end
 
 if win then

  nextbet=baseBet

else
 
chance = chance2
bethigh = true

 nextbet=baseBet2

end

if win then

 nextbet=baseBet

else

chance = chance3
bethigh = false

 nextbet=baseBet3

end

 nextbet=baseBet

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

 end

end


pls what should i do
  You really need to understand the logic of your script.  Lets say the bot rolled and you lost.  dobet() is entered
it does.
chance = 28.08

 baseBet=0.00000001

end

end is the end of the function, nothing after that matters.   It can get tricky because you have to also end an if/else group.   

Here is your code with better formatting so you can spot error's easier. 

Code:
wagered=0   
wagered=wagered+previousbet  <---  There is no previous bet at this point.  This doesn't do anything. 
chance=28.08
chance1=90.4 
chance2=94   
chance3=95   
bethigh=false
baseBet=0.00000001
baseBet1=0.00000020   
baseBet2=0.00000030 
baseBet3=0.00000050   
profitterget=0.00100000  <  This is misspelled... 
nextbet=baseBet

function dobet()

   chance = 28.08
   baseBet=0.00000001

end   < This ends the function dobet()  Nothing after this matters....   IE Get rid of this.......

   if win then
      nextbet=baseBet
   else
      nextbet=previousbet+baseBet  -- it dse not perform this action
   end

   if currentstreak==-10 then  -- it dosnt perform this action too and any of the action below also.. but its just betting on with the base bet
      chance = chance1
      betlow = false               --  betlow is not a valid name. 
      nextbet=baseBet1
   end
 
   if win then
      nextbet=baseBet
   else
      chance = chance2
      bethigh = true
      nextbet=baseBet2
   end

   if win then                        -- No matter what you did above this is the only block that will matter.
      nextbet=baseBet
   else
      chance = chance3
      bethigh = false
      nextbet=baseBet3
   end

   nextbet=baseBet               -- and now your just setting nextbet to always be equal to basebet   

end                                 -- Again not sure what this is for
 
if (balance) >= profittarget then
   stop();
   print(balance)
   print("TARGET ACHIEVED!!!")
end

end --This should be at the end of the

You can have nested if statement. 

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. 

]





bro hv done everything but still doing the same

If the code is at least running.  Start adding print statements to fix your logic. 
Like
print("Dobet entered")

and later in the win path

print("roll won")
print(nextbet)  to show you set nextbet. 

You can print text in quotes or the values of variables.  And .. concatenates the output.
so
print("Nextbet = "..nextbet)  should print Nextbet = 0.00000001

The pseudo-code example I gave at the end of my last update is the script your asking for without the values filled in.  Look that over carefully and try to understand what it's doing. 

Also the programming language used is called LUA.  You can search for LUA tutorials. 


member
Activity: 90
Merit: 10
Visit www.btcscriptbot.wordpress.com to get latest
pls check my script .....
at the end i changed it from

if win then
 nextbet=baseBet
else
 nextbet=baseBet
end
 end
 
 TO

end

 nextbet=baseBet

end

THATS WHY IT STARTED WORKING BUT STILL NOT FOLOWING THEPROCESS IT SHOULD FOLLOW


hello thankx for ur effort sir,

my script as started working but its not performing some actions

1- it dosnt +the previous bet with the basebet
2- if the current streak is 10 it still wont change the bet to the nextbet it just continue to bet with the basebet on and on

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  -- it dse not perform this action

end

if currentstreak==-10 then  -- it dosnt perform this action too and any of the action below also.. but its just betting on with the base bet

chance = chance1
betlow = false

 nextbet=baseBet1

end
 
 if win then

  nextbet=baseBet

else
 
chance = chance2
bethigh = true

 nextbet=baseBet2

end

if win then

 nextbet=baseBet

else

chance = chance3
bethigh = false

 nextbet=baseBet3

end

 nextbet=baseBet

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

 end

end


pls what should i do
  You really need to understand the logic of your script.  Lets say the bot rolled and you lost.  dobet() is entered
it does.
chance = 28.08

 baseBet=0.00000001

end

end is the end of the function, nothing after that matters.   It can get tricky because you have to also end an if/else group.   

Here is your code with better formatting so you can spot error's easier. 

Code:
wagered=0   
wagered=wagered+previousbet  <---  There is no previous bet at this point.  This doesn't do anything. 
chance=28.08
chance1=90.4 
chance2=94   
chance3=95   
bethigh=false
baseBet=0.00000001
baseBet1=0.00000020   
baseBet2=0.00000030 
baseBet3=0.00000050   
profitterget=0.00100000  <  This is misspelled... 
nextbet=baseBet

function dobet()

   chance = 28.08
   baseBet=0.00000001

end   < This ends the function dobet()  Nothing after this matters....   IE Get rid of this.......

   if win then
      nextbet=baseBet
   else
      nextbet=previousbet+baseBet  -- it dse not perform this action
   end

   if currentstreak==-10 then  -- it dosnt perform this action too and any of the action below also.. but its just betting on with the base bet
      chance = chance1
      betlow = false               --  betlow is not a valid name. 
      nextbet=baseBet1
   end
 
   if win then
      nextbet=baseBet
   else
      chance = chance2
      bethigh = true
      nextbet=baseBet2
   end

   if win then                        -- No matter what you did above this is the only block that will matter.
      nextbet=baseBet
   else
      chance = chance3
      bethigh = false
      nextbet=baseBet3
   end

   nextbet=baseBet               -- and now your just setting nextbet to always be equal to basebet   

end                                 -- Again not sure what this is for
 
if (balance) >= profittarget then
   stop();
   print(balance)
   print("TARGET ACHIEVED!!!")
end

end --This should be at the end of the

You can have nested if statement. 

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. 

]





bro hv done everything but still doing the same
member
Activity: 90
Merit: 10
Visit www.btcscriptbot.wordpress.com to get latest
okay pls b4 u leave me pls kindly tell me what programming languag can i learn in other to create dicebot script
thankx alot
legendary
Activity: 1717
Merit: 1125
I'm not going to try anymore.

 Phyzyprogrammer you shouldn't be using the programmer mode. Use the advanced mode or PAY chilly2k or HCP to write your script for you.
legendary
Activity: 1007
Merit: 1000
pls check my script .....
at the end i changed it from

if win then
 nextbet=baseBet
else
 nextbet=baseBet
end
 end
 
 TO

end

 nextbet=baseBet

end

THATS WHY IT STARTED WORKING BUT STILL NOT FOLOWING THEPROCESS IT SHOULD FOLLOW


hello thankx for ur effort sir,

my script as started working but its not performing some actions

1- it dosnt +the previous bet with the basebet
2- if the current streak is 10 it still wont change the bet to the nextbet it just continue to bet with the basebet on and on

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  -- it dse not perform this action

end

if currentstreak==-10 then  -- it dosnt perform this action too and any of the action below also.. but its just betting on with the base bet

chance = chance1
betlow = false

 nextbet=baseBet1

end
 
 if win then

  nextbet=baseBet

else
 
chance = chance2
bethigh = true

 nextbet=baseBet2

end

if win then

 nextbet=baseBet

else

chance = chance3
bethigh = false

 nextbet=baseBet3

end

 nextbet=baseBet

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

 end

end


pls what should i do
  You really need to understand the logic of your script.  Lets say the bot rolled and you lost.  dobet() is entered
it does.
chance = 28.08

 baseBet=0.00000001

end

end is the end of the function, nothing after that matters.   It can get tricky because you have to also end an if/else group.   

Here is your code with better formatting so you can spot error's easier. 

Code:
wagered=0   
wagered=wagered+previousbet  <---  There is no previous bet at this point.  This doesn't do anything. 
chance=28.08
chance1=90.4 
chance2=94   
chance3=95   
bethigh=false
baseBet=0.00000001
baseBet1=0.00000020   
baseBet2=0.00000030 
baseBet3=0.00000050   
profitterget=0.00100000  <  This is misspelled... 
nextbet=baseBet

function dobet()

   chance = 28.08
   baseBet=0.00000001

end   < This ends the function dobet()  Nothing after this matters....   IE Get rid of this.......

   if win then
      nextbet=baseBet
   else
      nextbet=previousbet+baseBet  -- it dse not perform this action
   end

   if currentstreak==-10 then  -- it dosnt perform this action too and any of the action below also.. but its just betting on with the base bet
      chance = chance1
      betlow = false               --  betlow is not a valid name. 
      nextbet=baseBet1
   end
 
   if win then
      nextbet=baseBet
   else
      chance = chance2
      bethigh = true
      nextbet=baseBet2
   end

   if win then                        -- No matter what you did above this is the only block that will matter.
      nextbet=baseBet
   else
      chance = chance3
      bethigh = false
      nextbet=baseBet3
   end

   nextbet=baseBet               -- and now your just setting nextbet to always be equal to basebet   

end                                 -- Again not sure what this is for
 
if (balance) >= profittarget then
   stop();
   print(balance)
   print("TARGET ACHIEVED!!!")
end

end --This should be at the end of the

You can have nested if statement. 

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. 
member
Activity: 90
Merit: 10
Visit www.btcscriptbot.wordpress.com to get latest
pls check my script .....
at the end i changed it from

if win then
 nextbet=baseBet
else
 nextbet=baseBet
end
 end
 
 TO

end

 nextbet=baseBet

end

THATS WHY IT STARTED WORKING BUT STILL NOT FOLOWING THEPROCESS IT SHOULD FOLLOW


hello thankx for ur effort sir,

my script as started working but its not performing some actions

1- it dosnt +the previous bet with the basebet
2- if the current streak is 10 it still wont change the bet to the nextbet it just continue to bet with the basebet on and on

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  -- it dse not perform this action

end

if currentstreak==-10 then  -- it dosnt perform this action too and any of the action below also.. but its just betting on with the base bet

chance = chance1
betlow = false

 nextbet=baseBet1

end
 
 if win then

  nextbet=baseBet

else
 
chance = chance2
bethigh = true

 nextbet=baseBet2

end

if win then

 nextbet=baseBet

else

chance = chance3
bethigh = false

 nextbet=baseBet3

end

 nextbet=baseBet

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

 end

end


pls what should i do
member
Activity: 90
Merit: 10
Visit www.btcscriptbot.wordpress.com to get latest
what if dose is that it check if u win or what u want it to check then
what then dose is that u tell it what u want to let happen next
then end is to finish it

and the else part?

if any of ur predition is not true then the else part  it should do the one that is similler to the false prediction
legendary
Activity: 1717
Merit: 1125
what if dose is that it check if u win or what u want it to check then
what then dose is that u tell it what u want to let happen next
then end is to finish it

and the else part?
member
Activity: 90
Merit: 10
Visit www.btcscriptbot.wordpress.com to get latest
what if dose is that it check if u win or what u want it to check then
what then dose is that u tell it what u want to let happen next
then end is to finish it
legendary
Activity: 1717
Merit: 1125
that's not what I asked.

Explain to me in english what it does.
member
Activity: 90
Merit: 10
Visit www.btcscriptbot.wordpress.com to get latest
okay u mean i should try

if win then

 baseBet1=0.00000020
nextbet=baseBet

 else

 chance = chance3
nextbet=baseBet1
bethighlow = false

end

or like this?

if win then

nextbet=baseBet

 else

 chance = chance3
baseBet1=0.00000020
nextbet=baseBet1
bethighlow = false

end

Explain to me what:

if win then
....
else
....
end

does.


if win the
nextbet=basebet
else
chance=chance1 --(which is the 90% chance b4 the dobet function)
nextbet=basebet1 --(which is the 0.00000020 with 90% chance)
betlow=false

end
end
legendary
Activity: 1717
Merit: 1125
okay u mean i should try

if win then

 baseBet1=0.00000020
nextbet=baseBet

 else

 chance = chance3
nextbet=baseBet1
bethighlow = false

end

or like this?

if win then

nextbet=baseBet

 else

 chance = chance3
baseBet1=0.00000020
nextbet=baseBet1
bethighlow = false

end

Explain to me what:

if win then
....
else
....
end

does.
member
Activity: 90
Merit: 10
Visit www.btcscriptbot.wordpress.com to get latest
update,,,
bro none of it is working i tried it but still doing the same


okay u mean i should try

if win then

 baseBet1=0.00000020
nextbet=baseBet

 else

 chance = chance3
nextbet=baseBet1
bethighlow = false

end

or like this?

if win then

nextbet=baseBet

 else

 chance = chance3
baseBet1=0.00000020
nextbet=baseBet1
bethighlow = false

end
member
Activity: 90
Merit: 10
Visit www.btcscriptbot.wordpress.com to get latest
okay u mean i should try

if win then

 baseBet1=0.00000020
nextbet=baseBet

 else

 chance = chance3
nextbet=baseBet1
bethighlow = false

end

or like this?

if win then

nextbet=baseBet

 else

 chance = chance3
baseBet1=0.00000020
nextbet=baseBet1
bethighlow = false

end
legendary
Activity: 1007
Merit: 1000
hello thankx for ur effort sir,

my script as started working but its not performing some actions

1- it dosnt +the previous bet with the basebet
2- if the current streak is 10 it still wont change the bet to the nextbet it just continue to bet with the basebet on and on

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  -- it dse not perform this action

end

if currentstreak==-10 then  -- it dosnt perform this action too and any of the action below also.. but its just betting on with the base bet

chance = chance1
betlow = false

 nextbet=baseBet1

end
 
 if win then

  nextbet=baseBet

else
 
chance = chance2
bethigh = true

 nextbet=baseBet2

end

if win then

 nextbet=baseBet

else

chance = chance3
bethigh = false

 nextbet=baseBet3

end

 nextbet=baseBet

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

 end

end


pls what should i do

I told you it would fail.....


bro i have recorrect it and i tested it thankx alot for the hint sir,,,
so when i corrected it and started it i got a error (LUA ERROR!!
[string "chunk"]:14: attempt to perform arithmetic on global 'baseBet' (a nil value)
)

Code:
wagered=0   
 wagered=wagered+previousbet
 chance=28.08
 bethigh=false
 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 = 90.4
betlow = false

 nextbet=0.00000020

end
 
 if win then

  nextbet=baseBet

else
 
chance = 94
bethigh = true

 nextbet=0.00000030

end

if win then

 nextbet=baseBet

else

chance = 95
bethigh = false

 nextbet=0.00000050

end

if win then

 nextbet=baseBet

else

 nextbet=baseBet

 end

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

 end

end

Everything before the "function dobet()"   gets done ONCE when you start the script.  baseBet is your variable (you created it).  You can't use it until you define it and set a value to it.  LUA doesn't know what to do with nextbet = baseBet.  because you didn't tell it what baseBet is.  You have  baseBet=0.00000001 after the dobet funtion line.  You need to move that, or copy it to the init statements before the line that trys to set nextbet.
  If you want to reset baseBet after each roll you can leave it after dobet, but if you want the script to change it at some point, you should just set it in the beginning and not after each bet. 

Also you have ...
Code:
if win then
   nextbet=baseBet
else
   chance = 94
   bethigh = true
   nextbet=0.00000030
end

if win then
   nextbet=baseBet
else
   chance = 95
   bethigh = false
   nextbet=0.00000050
end

if win then
   nextbet=baseBet
else
   nextbet=baseBet
end


  nextbet is ALWAYS going to be baseBet.  After each roll dobet gets run.  win is going to be either true or false the whole time dobet runs.  So if you roll and you win, your going to set nextbet = baseBet 3 times, if you lose, you'll set it to 30 Sat then 50 and then back to baseBet.  Also chance will be 95% and bethigh will be false. 

  If this doesn't make sense now, it will once you correct the baseBet setting....     
member
Activity: 90
Merit: 10
Visit www.btcscriptbot.wordpress.com to get latest
hello thankx for ur effort sir,

my script as started working but its not performing some actions

1- it dosnt +the previous bet with the basebet
2- if the current streak is 10 it still wont change the bet to the nextbet it just continue to bet with the basebet on and on

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  -- it dse not perform this action

end

if currentstreak==-10 then  -- it dosnt perform this action too and any of the action below also.. but its just betting on with the base bet

chance = chance1
betlow = false

 nextbet=baseBet1

end
 
 if win then

  nextbet=baseBet

else
 
chance = chance2
bethigh = true

 nextbet=baseBet2

end

if win then

 nextbet=baseBet

else

chance = chance3
bethigh = false

 nextbet=baseBet3

end

 nextbet=baseBet

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

 end

end


pls what should i do
Pages:
Jump to: