Phyzyprogrammer
Member
Offline
Activity: 90
Merit: 10
Visit www.btcscriptbot.wordpress.com to get latest
|
|
June 07, 2017, 07:27:31 AM |
|
i dont understand what u mean by 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
Activity: 1717
Merit: 1125
|
|
June 07, 2017, 09:54:58 AM |
|
i dont understand what u mean by 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> thendo something endOR if <something> thendo something else do something else endFor example if currentstreak==-10
nextbet=0.00000020 will not work because it doesn't fit into the correct formats. but this one is: 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
Activity: 90
Merit: 10
Visit www.btcscriptbot.wordpress.com to get latest
|
|
June 07, 2017, 10:32:28 AM |
|
i dont understand what u mean by 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> thendo something endOR if <something> thendo something else do something else endFor example if currentstreak==-10
nextbet=0.00000020 will not work because it doesn't fit into the correct formats. but this one is: 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) ) 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
Activity: 1717
Merit: 1125
|
|
June 07, 2017, 10:47:30 AM |
|
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) 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: 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
Activity: 1007
Merit: 1000
|
|
June 07, 2017, 10:52:07 AM |
|
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) ) 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 ... 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
Activity: 90
Merit: 10
Visit www.btcscriptbot.wordpress.com to get latest
|
|
June 07, 2017, 02:32:20 PM |
|
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..... 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 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 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 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
Activity: 1007
Merit: 1000
|
|
June 07, 2017, 02:49:51 PM |
|
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..... 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 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 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 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? 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
Activity: 90
Merit: 10
Visit www.btcscriptbot.wordpress.com to get latest
|
|
June 07, 2017, 03:07:41 PM |
|
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) ) 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 ... 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 .. 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 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 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
Activity: 1717
Merit: 1125
|
|
June 07, 2017, 04:24:33 PM |
|
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
Activity: 90
Merit: 10
Visit www.btcscriptbot.wordpress.com to get latest
|
|
June 07, 2017, 05:43:32 PM |
|
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
Activity: 90
Merit: 10
Visit www.btcscriptbot.wordpress.com to get latest
|
|
June 07, 2017, 06:10:35 PM |
|
thankx alot for ur help bro,, here is my complete script below 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? 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
Activity: 1717
Merit: 1125
|
|
June 07, 2017, 06:14:41 PM |
|
thankx alot for ur help bro,, here is my complete script below 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? 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
Activity: 1007
Merit: 1000
|
|
June 07, 2017, 06:18:54 PM |
|
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. 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
Activity: 90
Merit: 10
Visit www.btcscriptbot.wordpress.com to get latest
|
|
June 07, 2017, 06:52:59 PM |
|
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 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
Activity: 1007
Merit: 1000
|
|
June 07, 2017, 06:59:20 PM |
|
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 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) ) 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 ... 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
Activity: 90
Merit: 10
Visit www.btcscriptbot.wordpress.com to get latest
|
|
June 07, 2017, 07:10:14 PM |
|
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
Activity: 90
Merit: 10
Visit www.btcscriptbot.wordpress.com to get latest
|
|
June 07, 2017, 07:15:26 PM |
|
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
Activity: 1717
Merit: 1125
|
|
June 07, 2017, 07:16:40 PM |
|
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
Activity: 90
Merit: 10
Visit www.btcscriptbot.wordpress.com to get latest
|
|
June 07, 2017, 07:25:55 PM |
|
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
Activity: 1717
Merit: 1125
|
|
June 07, 2017, 07:40:20 PM |
|
that's not what I asked.
Explain to me in english what it does.
|
|
|
|
|