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

Activity: 90
Merit: 10

Visit www.btcscriptbot.wordpress.com to get latest


View Profile WWW
June 07, 2017, 07:27:31 AM
 #621

i dont understand what u mean by
Quote
Next take all of the "if win then" clauses out.   Your just going to do the last one, because every one is going to process for every roll. 

visit (www.btcscriptbot.wordpress.com) we offer latest scripts and bots to earn bitcoins and other altcoins for free and paid! Earn Bitcoins with bots
seuntjie
Legendary
*
Offline Offline

Activity: 1717
Merit: 1125



View Profile WWW
June 07, 2017, 09:54:58 AM
 #622

i dont understand what u mean by
Quote
Next take all of the "if win then" clauses out.   Your just going to do the last one, because every one is going to process for every roll.  

ALL if statements need to be in the format:

if <something> then

do something

end

OR

if <something> then
do something
else
do something else
end

For example

Code:
if currentstreak==-10 

  nextbet=0.00000020

will not work because it doesn't fit into the correct formats. but this one is:


Code:
if currentstreak==-10 then

  nextbet=0.00000020
end

now check your code and make sure all of your ifs are in the correct format.

Phyzyprogrammer
Member
**
Offline Offline

Activity: 90
Merit: 10

Visit www.btcscriptbot.wordpress.com to get latest


View Profile WWW
June 07, 2017, 10:32:28 AM
 #623

i dont understand what u mean by
Quote
Next take all of the "if win then" clauses out.   Your just going to do the last one, because every one is going to process for every roll.  

ALL if statements need to be in the format:

if <something> then

do something

end

OR

if <something> then
do something
else
do something else
end

For example

Code:
if currentstreak==-10 

  nextbet=0.00000020

will not work because it doesn't fit into the correct formats. but this one is:


Code:
if currentstreak==-10 then

  nextbet=0.00000020
end

now check your code and make sure all of your ifs are in the correct format.

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

visit (www.btcscriptbot.wordpress.com) we offer latest scripts and bots to earn bitcoins and other altcoins for free and paid! Earn Bitcoins with bots
seuntjie
Legendary
*
Offline Offline

Activity: 1717
Merit: 1125



View Profile WWW
June 07, 2017, 10:47:30 AM
 #624

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)
)

Programming works from TOP DOWN. You can't use a variable if it isn't declared yet and assigned.

From my tutorial on steemit that you've read 30 times (https://steemit.com/dicebot/@seuntjie/dicebot-programmer-mode-tutorial-1-1-variables)
Quote
A variable needs to be declared and a value set to it before it can be used for other functions.
to declare a variable in LUA, you need to name it and give it an initial value
 
testvar = 10.1
 
This variables name is testvar, it is of type double and has a value of 10.1

Your code:
Code:
wagered=0    
 wagered=wagered+previousbet
 chance=28.08
 bethigh=false
 profitterget=0.00100000
 nextbet=baseBet -- Here you're using baseBet. Has baseBet been declared and assigned before now? In the code above this?

chilly2k (OP)
Legendary
*
Offline Offline

Activity: 1007
Merit: 1000


View Profile
June 07, 2017, 10:52:07 AM
 #625


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....      

Phyzyprogrammer
Member
**
Offline Offline

Activity: 90
Merit: 10

Visit www.btcscriptbot.wordpress.com to get latest


View Profile WWW
June 07, 2017, 02:32:20 PM
 #626

thanks alot for replying bro (chilly2k and seunji)
more grase to ur elbow>>>>

but bro i have fixed the issues now but i really dont know where u told me to post the base bet
so i created two script with the same settings so , kindly tell me the one thats correct there.....

Code:
 wagered=0    
 wagered=wagered+previousbet
 chance=28.08
 bethigh=false
 baseBet=0.00000001 -- should the baseBet be up here?
 profitterget=0.00100000
 nextbet=baseBet
 


function dobet()

baseBet=0.00000001 --[color=red] do u mean should copy the basebet and past it below [/color]


if win then

baseBet=0.00000001 [color=red] -- do u mean i should past the basebet here?[/color]

 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 then
  nextbet=baseBet then                    -- [color=red] thats the setting chilly2k told me to do[/color]
  nextbet=baseBet

else

  chance = 95
  bethigh = true
 nextbet=0.00000030 then                    -- [color=red] thats the setting chilly2k told me to do[/color]
 nextbet=0.00000050 then
 nextbet=baseBet

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

 end

end

this is the orther one , i use the varies i created and also gave it values @seunji
Quote
Programming works from TOP DOWN. You can't use a variable if it isn't declared yet and assigned.

From my tutorial on steemit that you've read 30 times (https://steemit.com/dicebot/@seuntjie/dicebot-programmer-mode-tutorial-1-1-variables)
Quote
A variable needs to be declared and a value set to it before it can be used for other functions.
to declare a variable in LUA, you need to name it and give it an initial value
 
testvar = 10.1
 
This variables name is testvar, it is of type double and has a value of 10.1

Code:
 wagered=0    
 wagered=wagered+previousbet
 chance=28.08
 chance1=90.4  --[color=red]I hope this are the varies and value u asked me to set b4 dobet function[/color]
 chance2=94     --[color=red]I hope this are the varies and value u asked me to set b4 dobet function[/color]
 chance3=95     --[color=red]I hope this are the varies and value u asked me to set b4 dobet function
[/color]
 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()

baseBet=0.00000001 -- do u mean should copy the basebet and past

it below

if win then

baseBet=0.00000001  -- do u mean i should past the basebet here?

 nextbet=baseBet

else

 nextbet=previousbet+baseBet

end

if currentstreak==-10 then

chance = chance1
betlow = false

 nextbet=baseBet1

end
 
 if win then

  nextbet=baseBet then
  nextbet=baseBet then
  nextbet=baseBet

else

  chance = chance2
  bethigh = true
 nextbet=baseBet2 then
 chance = chance3
 nextbet=baseBet3 then
 nextbet=baseBet

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

 end

end


so i used them here (chilly2k) so the one u told me to set is the one i used
Quote
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....      

visit (www.btcscriptbot.wordpress.com) we offer latest scripts and bots to earn bitcoins and other altcoins for free and paid! Earn Bitcoins with bots
chilly2k (OP)
Legendary
*
Offline Offline

Activity: 1007
Merit: 1000


View Profile
June 07, 2017, 02:49:51 PM
 #627

thanks alot for replying bro (chilly2k and seunji)
more grase to ur elbow>>>>

but bro i have fixed the issues now but i really dont know where u told me to post the base bet
so i created two script with the same settings so , kindly tell me the one thats correct there.....

Code:
 wagered=0    
 wagered=wagered+previousbet
 chance=28.08
 bethigh=false
 baseBet=0.00000001 -- should the baseBet be up here?
 profitterget=0.00100000
 nextbet=baseBet
 


function dobet()

baseBet=0.00000001 -- do u mean should copy the basebet and past

it below

if win then

baseBet=0.00000001  -- do u mean i should past the basebet here?

 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 then
  nextbet=baseBet then
  nextbet=baseBet

else

  chance = 95
  bethigh = true
 nextbet=0.00000030 then
 nextbet=0.00000050 then
 nextbet=baseBet

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

 end

end

this is the orther one , i use the varies i created and also gave it values @seunji
Quote
Programming works from TOP DOWN. You can't use a variable if it isn't declared yet and assigned.

From my tutorial on steemit that you've read 30 times (https://steemit.com/dicebot/@seuntjie/dicebot-programmer-mode-tutorial-1-1-variables)
Quote
A variable needs to be declared and a value set to it before it can be used for other functions.
to declare a variable in LUA, you need to name it and give it an initial value
 
testvar = 10.1
 
This variables name is testvar, it is of type double and has a value of 10.1

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()

baseBet=0.00000001 -- do u mean should copy the basebet and past

it below

if win then

baseBet=0.00000001  -- do u mean i should past the basebet here?

 nextbet=baseBet

else

 nextbet=previousbet+baseBet

end

if currentstreak==-10 then

chance = chance1
betlow = false

 nextbet=baseBet1

end
 
 if win then

  nextbet=baseBet then
  nextbet=baseBet then
  nextbet=baseBet

else

  chance = chance2
  bethigh = true
 nextbet=baseBet2 then
 chance = chance3
 nextbet=baseBet3 then
 nextbet=baseBet

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

 end

end


so i used them here (chilly2k) so the one u told me to set is the one i used
Quote
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....     


Both scripts are now setting baseBet before the "function dobet()" line.  So both with now work (at least not fail the way they did before). 

I have no idea what your trying to do here.

 if win then

  nextbet=baseBet then
  nextbet=baseBet then
  nextbet=baseBet

else

  chance = chance2
  bethigh = true
 nextbet=baseBet2 then
 chance = chance3
 nextbet=baseBet3 then
 nextbet=baseBet

end

First it's not going to work with those extra "then"'s all over the place. 

And are you thinking if once is good, three times is even better?  Smiley   Actually I'm not sure if your just leaving that in there because you don't understand what it's doing. 

You would normally only have one "if win then" statement.

if win then
  Do everything you want to do if the roll wins.
else
  do everything you would do if the roll loses, including seeing how many times in a row it lost by checking the currentstreak variable. 
  if currentstreak == -12 then
    I lost 12 in a row now I want to.
  end
end   

 

Phyzyprogrammer
Member
**
Offline Offline

Activity: 90
Merit: 10

Visit www.btcscriptbot.wordpress.com to get latest


View Profile WWW
June 07, 2017, 03:07:41 PM
 #628


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....      

thats what u told me to do below ... in this ur post

(but now that i am incorrect) pls could u kindly tell me what am to do ..
Quote
I have no idea what your trying to do here.

 if win then

  nextbet=baseBet then
  nextbet=baseBet then
  nextbet=baseBet

else

  chance = chance2
  bethigh = true
 nextbet=baseBet2 then
 chance = chance3
 nextbet=baseBet3 then
 nextbet=baseBet

end

what am trying to do here is

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

but u told me not to use it > i tot u said i shoundnt use it here
Quote
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.

visit (www.btcscriptbot.wordpress.com) we offer latest scripts and bots to earn bitcoins and other altcoins for free and paid! Earn Bitcoins with bots
seuntjie
Legendary
*
Offline Offline

Activity: 1717
Merit: 1125



View Profile WWW
June 07, 2017, 04:24:33 PM
 #629

Code:
if win then

 nextbet=baseBet

else

 nextbet=baseBet

 end

Programming works from TOP DOWN. That's the last thing in your script. So you do everything, then at the end you say

If you I win set my bet to base bet, but if I lose, set my bet to base bet.

So if you win, what is your bet going to be?
If you lose, what is your bet going to be?
When is your bet going to be something else?

Phyzyprogrammer
Member
**
Offline Offline

Activity: 90
Merit: 10

Visit www.btcscriptbot.wordpress.com to get latest


View Profile WWW
June 07, 2017, 05:43:32 PM
 #630

Code:
if win then

 nextbet=baseBet

else

 nextbet=baseBet

 end

Programming works from TOP DOWN. That's the last thing in your script. So you do everything, then at the end you say

If you I win set my bet to base bet, but if I lose, set my bet to base bet.

So if you win, what is your bet going to be?
If you lose, what is your bet going to be?
When is your bet going to be something else?
[/quote

okay i get but have set it already ....
or do i need to put the amount again?
e.g
if win then

 nextbet=0.00000001

else

 nextbet=0.00000001

end

what am trying to do is to let the bet reset to basebet there back at the end of my last 95%chance bet (incase if i win or not)

hope am right sir

visit (www.btcscriptbot.wordpress.com) we offer latest scripts and bots to earn bitcoins and other altcoins for free and paid! Earn Bitcoins with bots
Phyzyprogrammer
Member
**
Offline Offline

Activity: 90
Merit: 10

Visit www.btcscriptbot.wordpress.com to get latest


View Profile WWW
June 07, 2017, 06:10:35 PM
 #631

thankx alot for ur help bro,,
here is my complete 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.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()

 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

else

 nextbet=baseBet

 end

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

 end

end

but it dosnt start when ever i try to start it,,
i still get error(LUA ERROR!!
[string "chunk"]:44: attempt to compare nil with number)

pls what am i still doing wrong

pls help check if am right on the varies i created b4 the dobet function
and if i use it well in the script,,,


and also is the end of my script correct?

Code:
if win then

 nextbet=baseBet

else

 nextbet=baseBet

 end

cus am trying to reset it back to basebet

visit (www.btcscriptbot.wordpress.com) we offer latest scripts and bots to earn bitcoins and other altcoins for free and paid! Earn Bitcoins with bots
seuntjie
Legendary
*
Offline Offline

Activity: 1717
Merit: 1125



View Profile WWW
June 07, 2017, 06:14:41 PM
 #632

thankx alot for ur help bro,,
here is my complete 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.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()

 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

else

 nextbet=baseBet

 end

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

 end

end

but it dosnt start when ever i try to start it,,
i still get error(LUA ERROR!!
[string "chunk"]:44: attempt to compare nil with number)

pls what am i still doing wrong

pls help check if am right on the varies i created b4 the dobet function
and if i use it well in the script,,,


and also is the end of my script correct?

Code:
if win then

 nextbet=baseBet

else

 nextbet=baseBet

 end

cus am trying to reset it back to basebet

check the spelling of your variables.


run the script as it is (if you can get it to run) and see what happens.

chilly2k (OP)
Legendary
*
Offline Offline

Activity: 1007
Merit: 1000


View Profile
June 07, 2017, 06:18:54 PM
 #633

Code:
if win then

 nextbet=baseBet

else

 nextbet=baseBet

 end

Programming works from TOP DOWN. That's the last thing in your script. So you do everything, then at the end you say

If you I win set my bet to base bet, but if I lose, set my bet to base bet.

So if you win, what is your bet going to be?
If you lose, what is your bet going to be?
When is your bet going to be something else?

okay i get but have set it already ....
or do i need to put the amount again?
e.g
if win then

 nextbet=0.00000001

else

 nextbet=0.00000001

end

what am trying to do is to let the bet reset to basebet there back at the end of my last 95%chance bet (incase if i win or not)

hope am right sir

That's where your getting confused.  The Bot doesn't bet and jump around in the dobet function.  EVERY bet goes through the whole dobet function.  

So, with those statements at the end of the function, EVERY time a roll is made the last thing your going to do, before the next roll, is set nextbet to .00000001.    Here is an incomplete example.

Code:
basebet = 0.00000001
nextbet = basebet

function dobet()

if win then
   nextbet= basebet
else
   nextbet = prevoiusbet * 2
   if currentstreak == -10 then
      chance = 92
      nextbet = 57
      bethigh = true
   end
end

    this creates and set the variable basebet to .00000001
   and then sets the built in variable (nextbet) to the value of basebet
it just defines the dobet function at this time.  It doesn't run just yet.  

The bot gets control back and communicates with the dice site and does it's first roll.
when it gets the results back it calls the dobet function.

for this script, if the bet won, it sets nextbet to basebet and ends (returns to the bot for the next roll)

if the roll lost it takes the else path, it always sets the nextbet to the last bet * 2.  it then checks the currentstreak built in
  and if it's -10 (10 loses) it sets the chance, nextbet and bethigh. and goes back to the bot, if the currentstreak was not equal to
-10 it just ended and returned for the next roll.  Note it doesn't change chance or bethigh.  

You could add additional if statements at the end to check for other loss streaks and set things as you want, and as the last one make it
if currentstreak > -X then
  and always reset stuff.  
Don't code ==-15 because you could end up in the code with the currentstreak = -16....  or -17 if you have really bad luck.    
  
                        


Phyzyprogrammer
Member
**
Offline Offline

Activity: 90
Merit: 10

Visit www.btcscriptbot.wordpress.com to get latest


View Profile WWW
June 07, 2017, 06:52:59 PM
 #634

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

visit (www.btcscriptbot.wordpress.com) we offer latest scripts and bots to earn bitcoins and other altcoins for free and paid! Earn Bitcoins with bots
chilly2k (OP)
Legendary
*
Offline Offline

Activity: 1007
Merit: 1000


View Profile
June 07, 2017, 06:59:20 PM
 #635

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....     

Phyzyprogrammer
Member
**
Offline Offline

Activity: 90
Merit: 10

Visit www.btcscriptbot.wordpress.com to get latest


View Profile WWW
June 07, 2017, 07:10:14 PM
 #636

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

visit (www.btcscriptbot.wordpress.com) we offer latest scripts and bots to earn bitcoins and other altcoins for free and paid! Earn Bitcoins with bots
Phyzyprogrammer
Member
**
Offline Offline

Activity: 90
Merit: 10

Visit www.btcscriptbot.wordpress.com to get latest


View Profile WWW
June 07, 2017, 07:15:26 PM
 #637

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

visit (www.btcscriptbot.wordpress.com) we offer latest scripts and bots to earn bitcoins and other altcoins for free and paid! Earn Bitcoins with bots
seuntjie
Legendary
*
Offline Offline

Activity: 1717
Merit: 1125



View Profile WWW
June 07, 2017, 07:16:40 PM
 #638

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.

Phyzyprogrammer
Member
**
Offline Offline

Activity: 90
Merit: 10

Visit www.btcscriptbot.wordpress.com to get latest


View Profile WWW
June 07, 2017, 07:25:55 PM
 #639

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

visit (www.btcscriptbot.wordpress.com) we offer latest scripts and bots to earn bitcoins and other altcoins for free and paid! Earn Bitcoins with bots
seuntjie
Legendary
*
Offline Offline

Activity: 1717
Merit: 1125



View Profile WWW
June 07, 2017, 07:40:20 PM
 #640

that's not what I asked.

Explain to me in english what it does.

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

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