seuntjie
Legendary
Offline
Activity: 1470
Merit: 1000


August 23, 2017, 04:55:44 PM 

this "Yes you can" is about that?(maybe you mistaken and mean "can't" ?) if im on streak like on 1% chance 1000 reds from 1500reds, and im reseting seed, and now after reset i can get another new 1500???
if ODDS and seed NG are two different thing, then i can't in theory, and is not possible.
thanks for answer!
If you are playing on 1% chance and you have 1 000 000 reds in a row, and you change seeds, you CAN have another 1 000 000 reds in a row on the new seed. You don't seem to understand the randomness or some of the fundamentals of statistics. Think of the seeds and the RNG as a physical dice. You're trying to throw exactly 6. You can throw less than 6 100 times in a row using just one dice. Would switching to another dice ensure that you throw a 6 within the next 100 rolls? No, it will have no effect. Using another dice won't ensure you get a 6 within the next 100 rolls. It has no effect on your odds to roll a 6. When you are playing at 1% chance to win, you ALWAYS have 1% chance to win your bet. If it's your first bet, you have a 1% chance to win. If you have won 100 bets in row on the same seed, you have a 1% chance to win the next bet. If you have lost a billion bets in a row, used 500 000 seeds, switched high/low, become a devote follower of the Flying Spaghetti Monster and prayed to it non stop for a year to make you win, you have a 1% chance of winning the next bet. The provably fair RNG and the seeds have nothing to do with your luck or your odds. They are there so that you can see if the site is cheating you. Changing seeds for better luck is about as effective as holding your thumbs while clicking roll.







Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.



houseworx


August 23, 2017, 06:19:35 PM 

this "Yes you can" is about that?(maybe you mistaken and mean "can't" ?) if im on streak like on 1% chance 1000 reds from 1500reds, and im reseting seed, and now after reset i can get another new 1500???
if ODDS and seed NG are two different thing, then i can't in theory, and is not possible.
thanks for answer!
If you are playing on 1% chance and you have 1 000 000 reds in a row, and you change seeds, you CAN have another 1 000 000 reds in a row on the new seed. You don't seem to understand the randomness or some of the fundamentals of statistics. Think of the seeds and the RNG as a physical dice. You're trying to throw exactly 6. You can throw less than 6 100 times in a row using just one dice. Would switching to another dice ensure that you throw a 6 within the next 100 rolls? No, it will have no effect. Using another dice won't ensure you get a 6 within the next 100 rolls. It has no effect on your odds to roll a 6. When you are playing at 1% chance to win, you ALWAYS have 1% chance to win your bet. If it's your first bet, you have a 1% chance to win. If you have won 100 bets in row on the same seed, you have a 1% chance to win the next bet. If you have lost a billion bets in a row, used 500 000 seeds, switched high/low, become a devote follower of the Flying Spaghetti Monster and prayed to it non stop for a year to make you win, you have a 1% chance of winning the next bet. The provably fair RNG and the seeds have nothing to do with your luck or your odds. They are there so that you can see if the site is cheating you. Changing seeds for better luck is about as effective as holding your thumbs while clicking roll. yes i dont understand "the randomness or some of the fundamentals of statistics." thats why im asking and givin a questions... now i understand all what you said, exept first thing: if all is like you said, why then you write this? "If you are playing on 1% chance and you have 1 000 000 reds in a row, and you change seeds, you CAN have another 1 000 000 reds in a row on the new seed." i make new one question, maybe you dont understand because of my english. so if we play on 1% chance  in worst case in life matematically we can had ~1500 bets in row losing streak, we betting, betting we get now streak we already on 1000 red bets in row, we now change seed, and if you said there seeds is nothing to do with random generators and ODDS, why you said that we now can get another 1500reds in row after that change seed and if we already on 1000reds?! if dice site is propably fair, there is no matter if we change seed every lose bet or no, ODDS and RNG numerology dsnt changes, and we have same ODDS what we need to have, and luck will ned to be close to 100% right?! sorry for my stupidness, and thank you very much for answering to my stpd questions...




DCP
Member
Offline
Activity: 110
Merit: 10


August 23, 2017, 07:45:56 PM 

The error could originate from another part of your script. Mind posting your whole script?
also: if format: will work. With "if resetonwin = true then" You're comparing a boolean with a boolean to create a boolean.
Thanks for your help, I tried a few variations but I keep getting an error message. I simply want it to reset the stats everytime the profit is higher then 0.000001. Each time it makes a 4inarow and is in profit, it crashes with the boolean error message. Here's my script set for primedice, Go for 4  fully auto basebet = 0.0 chance=49.5 resetonwin = false bethigh = false enablesrc=true betcount=1 r=math.random(2)
function dobet()
if betcount == 1 then betcount=0 resetseed(); else betcount=betcount+1 end
if win then
nextbet = basebet
if (resetonwin == true) then nextbet = basebet end
if (profit > 0.000001) then resetstats() end
if (currentstreak == 2) then nextbet = 0.0000007 end
if ((profit < 0.0000005) and (profit > 0.0000020)) and (currentstreak == 2) then nextbet = 0.0000008 end
if ((profit < 0.0000020) and (profit > 0.0000041)) and (currentstreak == 2) then nextbet = 0.0000009 end
if ((profit < 0.0000041) and (profit > 0.0000071)) and (currentstreak == 2) then nextbet = 0.0000011 end
if ((profit < 0.0000071) and (profit > 0.0000110)) and (currentstreak == 2) then nextbet = 0.0000013 end
if ((profit < 0.0000110) and (profit > 0.0000155)) and (currentstreak == 2) then nextbet = 0.0000015 end
if ((profit < 0.0000155) and (profit > 0.0000200)) and (currentstreak == 2) then nextbet = 0.0000018 end
if ((profit < 0.0000200) and (profit > 0.0000260)) and (currentstreak == 2) then nextbet = 0.0000020 end
if ((profit < 0.0000260) and (profit > 0.0000329)) and (currentstreak == 2) then nextbet = 0.0000022 end
if ((profit < 0.0000329) and (profit > 0.0000404)) and (currentstreak == 2) then nextbet = 0.0000025 end
if ((profit < 0.0000404) and (profit > 0.0000488)) and (currentstreak == 2) then nextbet = 0.0000028 end
if ((profit < 0.0000488) and (profit > 0.0000578)) and (currentstreak == 2) then nextbet = 0.0000032 end
if ((profit < 0.0000578) and (profit > 0.0000683)) and (currentstreak == 2) then nextbet = 0.0000037 end
if ((profit < 0.0000683) and (profit > 0.0000703)) and (currentstreak == 2) then nextbet = 0.0000043 end
if ((profit < 0.0000703) and (profit > 0.0000853)) and (currentstreak == 2) then nextbet = 0.0000050 end
if ((profit < 0.0000853) and (profit > 0.0001)) and (currentstreak == 2) then nextbet = 0.0000057 end
if ((profit < 0.0001) and (profit > 0.0001180)) and (currentstreak == 2) then nextbet = 0.0000060 end
if currentstreak == 3 then nextbet = previousbet*2 end
if (currentstreak == 3) then resetonwin=true end
else
nextbet = basebet
r=math.random(2)
if r == 1 then bethigh=true else bethigh=false end
end end

H ~ O ~ D ~ L



seuntjie
Legendary
Offline
Activity: 1470
Merit: 1000


August 23, 2017, 09:19:17 PM 

yes i dont understand "the randomness or some of the fundamentals of statistics." thats why im asking and givin a questions... now i understand all what you said, exept first thing: if all is like you said, why then you write this? "If you are playing on 1% chance and you have 1 000 000 reds in a row, and you change seeds, you CAN have another 1 000 000 reds in a row on the new seed." i make new one question, maybe you dont understand because of my english. so if we play on 1% chance  in worst case in life matematically we can had ~1500 bets in row losing streak, we betting, betting we get now streak we already on 1000 red bets in row, we now change seed, and if you said there seeds is nothing to do with random generators and ODDS, why you said that we now can get another 1500reds in row after that change seed and if we already on 1000reds?! if dice site is propably fair, there is no matter if we change seed every lose bet or no, ODDS and RNG numerology dsnt changes, and we have same ODDS what we need to have, and luck will ned to be close to 100% right?! sorry for my stupidness, and thank you very much for answering to my stpd questions... I'm saying that because If you are playing on 1% chance and you have 1 000 000 reds in a row, and you change seeds, you CAN have another 1 000 000 reds in a row on the new seed. I'm saying you can get another 1500 reds in a row after 1000 because you CAN get another 1500 losses after 1000 in a row, whether you reset your seed or not. Your luck will be NEAR 100% over an INFINITE amount of bets. You CAN place 1 000 000 bets and have 0% luck. The provably fair RNG and the seeds have nothing to do with your luck or your odds. They are there so that you can see if the site is cheating you. Changing seeds for better luck is about as effective as holding your thumbs while clicking roll.




seuntjie
Legendary
Offline
Activity: 1470
Merit: 1000


August 23, 2017, 09:29:38 PM 

The error could originate from another part of your script. Mind posting your whole script?
also: if format: will work. With "if resetonwin = true then" You're comparing a boolean with a boolean to create a boolean.
Thanks for your help, I tried a few variations but I keep getting an error message. I simply want it to reset the stats everytime the profit is higher then 0.000001. Each time it makes a 4inarow and is in profit, it crashes with the boolean error message. Here's my script set for primedice, Go for 4  fully auto basebet = 0.0 chance=49.5 resetonwin = false bethigh = false enablesrc=true betcount=1 r=math.random(2)
function dobet()
if betcount == 1 then betcount=0 resetseed(); else betcount=betcount+1 end
if win then
nextbet = basebet
if (resetonwin == true) then nextbet = basebet end
if (profit > 0.000001) then resetstats() end
if (currentstreak == 2) then nextbet = 0.0000007 end
if ((profit < 0.0000005) and (profit > 0.0000020)) and (currentstreak == 2) then nextbet = 0.0000008 end
if ((profit < 0.0000020) and (profit > 0.0000041)) and (currentstreak == 2) then nextbet = 0.0000009 end
if ((profit < 0.0000041) and (profit > 0.0000071)) and (currentstreak == 2) then nextbet = 0.0000011 end
if ((profit < 0.0000071) and (profit > 0.0000110)) and (currentstreak == 2) then nextbet = 0.0000013 end
if ((profit < 0.0000110) and (profit > 0.0000155)) and (currentstreak == 2) then nextbet = 0.0000015 end
if ((profit < 0.0000155) and (profit > 0.0000200)) and (currentstreak == 2) then nextbet = 0.0000018 end
if ((profit < 0.0000200) and (profit > 0.0000260)) and (currentstreak == 2) then nextbet = 0.0000020 end
if ((profit < 0.0000260) and (profit > 0.0000329)) and (currentstreak == 2) then nextbet = 0.0000022 end
if ((profit < 0.0000329) and (profit > 0.0000404)) and (currentstreak == 2) then nextbet = 0.0000025 end
if ((profit < 0.0000404) and (profit > 0.0000488)) and (currentstreak == 2) then nextbet = 0.0000028 end
if ((profit < 0.0000488) and (profit > 0.0000578)) and (currentstreak == 2) then nextbet = 0.0000032 end
if ((profit < 0.0000578) and (profit > 0.0000683)) and (currentstreak == 2) then nextbet = 0.0000037 end
if ((profit < 0.0000683) and (profit > 0.0000703)) and (currentstreak == 2) then nextbet = 0.0000043 end
if ((profit < 0.0000703) and (profit > 0.0000853)) and (currentstreak == 2) then nextbet = 0.0000050 end
if ((profit < 0.0000853) and (profit > 0.0001)) and (currentstreak == 2) then nextbet = 0.0000057 end
if ((profit < 0.0001) and (profit > 0.0001180)) and (currentstreak == 2) then nextbet = 0.0000060 end
if currentstreak == 3 then nextbet = previousbet*2 end
if (currentstreak == 3) then resetonwin=true end
else
nextbet = basebet
r=math.random(2)
if r == 1 then bethigh=true else bethigh=false end
end end The error wasn't about the boolean, that part was just me making a suggestion on how you can optimize your code a bit. Resetting your seed after every bet on nonce based sites is a bit of a dick move. You clutter the sites DB and it gives the site MORE control over your rolls, not less. It also makes it much more difficult for you to verify your rolls if you suspect the site is cheating. Only reset seeds when you suspect the site is cheating and you want to verify your rolls. I ran your script through a simulation and it worked fine. I could not reproduce the error you posted initially.




houseworx


August 23, 2017, 10:16:31 PM 

yes i dont understand "the randomness or some of the fundamentals of statistics." thats why im asking and givin a questions... now i understand all what you said, exept first thing: if all is like you said, why then you write this? "If you are playing on 1% chance and you have 1 000 000 reds in a row, and you change seeds, you CAN have another 1 000 000 reds in a row on the new seed." i make new one question, maybe you dont understand because of my english. so if we play on 1% chance  in worst case in life matematically we can had ~1500 bets in row losing streak, we betting, betting we get now streak we already on 1000 red bets in row, we now change seed, and if you said there seeds is nothing to do with random generators and ODDS, why you said that we now can get another 1500reds in row after that change seed and if we already on 1000reds?! if dice site is propably fair, there is no matter if we change seed every lose bet or no, ODDS and RNG numerology dsnt changes, and we have same ODDS what we need to have, and luck will ned to be close to 100% right?! sorry for my stupidness, and thank you very much for answering to my stpd questions... I'm saying that because If you are playing on 1% chance and you have 1 000 000 reds in a row, and you change seeds, you CAN have another 1 000 000 reds in a row on the new seed. I'm saying you can get another 1500 reds in a row after 1000 because you CAN get another 1500 losses after 1000 in a row, whether you reset your seed or not. Your luck will be NEAR 100% over an INFINITE amount of bets. You CAN place 1 000 000 bets and have 0% luck. The provably fair RNG and the seeds have nothing to do with your luck or your odds. They are there so that you can see if the site is cheating you. Changing seeds for better luck is about as effective as holding your thumbs while clicking roll. okey thanks! but "I'm saying you can get another 1500 reds in a row after 1000 because you CAN get another 1500 losses after 1000 in a row, whether you reset your seed or not." i don't get why you are saying it, when its not possible at all, each percentage has maxiumum even possible losing streak +/... and for 1% its ~15001600 and if you will get more then something is wrong with this dice game site probably fair i think. Your luck will be NEAR 100% over an INFINITE amount of bets. You CAN place 1 000 000 bets and have 0% luck. same with this, i dont get, why you are saying it, 0% luck after 1 000 000 bets you cant get at all, even with minimum dice site win percentage what its = 0.01%(~x9900 payout) it will be around 100 000150 000 bets maximum +/




DCP
Member
Offline
Activity: 110
Merit: 10


August 24, 2017, 04:07:06 AM 

The error could originate from another part of your script. Mind posting your whole script?
also: if format: will work. With "if resetonwin = true then" You're comparing a boolean with a boolean to create a boolean.
Thanks for your help, I tried a few variations but I keep getting an error message. I simply want it to reset the stats everytime the profit is higher then 0.000001. Each time it makes a 4inarow and is in profit, it crashes with the boolean error message. Here's my script set for primedice, Go for 4  fully auto basebet = 0.0 chance=49.5 resetonwin = false bethigh = false enablesrc=true betcount=1 r=math.random(2)
function dobet()
if betcount == 1 then betcount=0 resetseed(); else betcount=betcount+1 end
if win then
nextbet = basebet
if (resetonwin == true) then nextbet = basebet end
if (profit > 0.000001) then resetstats() end
if (currentstreak == 2) then nextbet = 0.0000007 end
if ((profit < 0.0000005) and (profit > 0.0000020)) and (currentstreak == 2) then nextbet = 0.0000008 end
if ((profit < 0.0000020) and (profit > 0.0000041)) and (currentstreak == 2) then nextbet = 0.0000009 end
if ((profit < 0.0000041) and (profit > 0.0000071)) and (currentstreak == 2) then nextbet = 0.0000011 end
if ((profit < 0.0000071) and (profit > 0.0000110)) and (currentstreak == 2) then nextbet = 0.0000013 end
if ((profit < 0.0000110) and (profit > 0.0000155)) and (currentstreak == 2) then nextbet = 0.0000015 end
if ((profit < 0.0000155) and (profit > 0.0000200)) and (currentstreak == 2) then nextbet = 0.0000018 end
if ((profit < 0.0000200) and (profit > 0.0000260)) and (currentstreak == 2) then nextbet = 0.0000020 end
if ((profit < 0.0000260) and (profit > 0.0000329)) and (currentstreak == 2) then nextbet = 0.0000022 end
if ((profit < 0.0000329) and (profit > 0.0000404)) and (currentstreak == 2) then nextbet = 0.0000025 end
if ((profit < 0.0000404) and (profit > 0.0000488)) and (currentstreak == 2) then nextbet = 0.0000028 end
if ((profit < 0.0000488) and (profit > 0.0000578)) and (currentstreak == 2) then nextbet = 0.0000032 end
if ((profit < 0.0000578) and (profit > 0.0000683)) and (currentstreak == 2) then nextbet = 0.0000037 end
if ((profit < 0.0000683) and (profit > 0.0000703)) and (currentstreak == 2) then nextbet = 0.0000043 end
if ((profit < 0.0000703) and (profit > 0.0000853)) and (currentstreak == 2) then nextbet = 0.0000050 end
if ((profit < 0.0000853) and (profit > 0.0001)) and (currentstreak == 2) then nextbet = 0.0000057 end
if ((profit < 0.0001) and (profit > 0.0001180)) and (currentstreak == 2) then nextbet = 0.0000060 end
if currentstreak == 3 then nextbet = previousbet*2 end
if (currentstreak == 3) then resetonwin=true end
else
nextbet = basebet
r=math.random(2)
if r == 1 then bethigh=true else bethigh=false end
end end The error wasn't about the boolean, that part was just me making a suggestion on how you can optimize your code a bit. Resetting your seed after every bet on nonce based sites is a bit of a dick move. You clutter the sites DB and it gives the site MORE control over your rolls, not less. It also makes it much more difficult for you to verify your rolls if you suspect the site is cheating. Only reset seeds when you suspect the site is cheating and you want to verify your rolls. I ran your script through a simulation and it worked fine. I could not reproduce the error you posted initially. Ok, thanks for explaining about the reset seed. I will definitely take it off. I hear that it worked on the simulation but I've tried it a bunch of times on Primedice and Cryptogames and on each site I get the following error msg whenever I use this code in any part of the script. I really need this to work so I can use my script automatically. if (profit > 0.000001) then resetstats()  I also tried: resetstats(); end [string "chunk"]:15: attempt to call global 'resetstats' (a boolean value)

H ~ O ~ D ~ L



seuntjie
Legendary
Offline
Activity: 1470
Merit: 1000


August 25, 2017, 06:46:25 AM 

okey thanks! but "I'm saying you can get another 1500 reds in a row after 1000 because you CAN get another 1500 losses after 1000 in a row, whether you reset your seed or not." i don't get why you are saying it, when its not possible at all, each percentage has maxiumum even possible losing streak +/... and for 1% its ~15001600 and if you will get more then something is wrong with this dice game site probably fair i think. Your luck will be NEAR 100% over an INFINITE amount of bets. You CAN place 1 000 000 bets and have 0% luck. same with this, i dont get, why you are saying it, 0% luck after 1 000 000 bets you cant get at all, even with minimum dice site win percentage what its = 0.01%(~x9900 payout) it will be around 100 000150 000 bets maximum +/ That is the part you don't understand. With randomness, everything is possible. You CAN get another 1500 losses after 1000 in a row, whether you reset your seed or not. It even becomes likely that you will if you place enough bets. There is no maximum number of losses in a row you can get. You CAN get 1 000 000 losses in a row at 50%, or 90%. With random numbers, it is possible. Whats the point in asking me if it's possible if you're just going to argue with my answer?




houseworx


August 25, 2017, 05:30:54 PM 

okey thanks! but "I'm saying you can get another 1500 reds in a row after 1000 because you CAN get another 1500 losses after 1000 in a row, whether you reset your seed or not." i don't get why you are saying it, when its not possible at all, each percentage has maxiumum even possible losing streak +/... and for 1% its ~15001600 and if you will get more then something is wrong with this dice game site probably fair i think. Your luck will be NEAR 100% over an INFINITE amount of bets. You CAN place 1 000 000 bets and have 0% luck. same with this, i dont get, why you are saying it, 0% luck after 1 000 000 bets you cant get at all, even with minimum dice site win percentage what its = 0.01%(~x9900 payout) it will be around 100 000150 000 bets maximum +/ That is the part you don't understand. With randomness, everything is possible. You CAN get another 1500 losses after 1000 in a row, whether you reset your seed or not. It even becomes likely that you will if you place enough bets. There is no maximum number of losses in a row you can get. You CAN get 1 000 000 losses in a row at 50%, or 90%. With random numbers, it is possible. Whats the point in asking me if it's possible if you're just going to argue with my answer? okey, im understand your point. but that propability is the same, that tommorow alien will fall with NLO on my head, and im will be dead. i get it. anyone can say what is better option to find mistakes in script if script is very very long? like ~5000 lines? "[string "chunk"]:2847: attempt to compare number with nil" if i get this kind of error with script, this maybe means my mistake is in 2847 line?! but this line is "end" ....




DCP
Member
Offline
Activity: 110
Merit: 10


August 25, 2017, 07:20:41 PM 

Eugene, I think there is a bug in the software regarding resetstats() not working. I've tried it on 6 different versions of dicebot, I've tried other people's scripts that had the resetstats() in it, scripts other people said were working before. The feature works fine in Advanced mode, but not in programmer mode. If you think it works please send me any script that has it so I can test it.
I really need this feature to work. Please can you tell me how to make this code work!!
if profit > 0 then resetstats() end

H ~ O ~ D ~ L



seuntjie
Legendary
Offline
Activity: 1470
Merit: 1000


August 26, 2017, 05:49:40 AM 

Eugene, I think there is a bug in the software regarding resetstats() not working. I've tried it on 6 different versions of dicebot, I've tried other people's scripts that had the resetstats() in it, scripts other people said were working before. The feature works fine in Advanced mode, but not in programmer mode. If you think it works please send me any script that has it so I can test it.
I really need this feature to work. Please can you tell me how to make this code work!!
if profit > 0 then resetstats() end
Lets keep it seuntjie while on the forums and casinos please. There isn't a resetstats option in the advanced mode. Are you sure you're using the correct function for what you're trying to do? I know there is an issue in the programmer mode calling the resetstats function outside of the dobet function. I ran a simulation of your script, it worked fine. Can you send me a screenshot of your console when you try to run the script and the error it gives please? (including all commands you use before the error)




seuntjie
Legendary
Offline
Activity: 1470
Merit: 1000


August 26, 2017, 05:52:52 AM 

okey thanks! but "I'm saying you can get another 1500 reds in a row after 1000 because you CAN get another 1500 losses after 1000 in a row, whether you reset your seed or not." i don't get why you are saying it, when its not possible at all, each percentage has maxiumum even possible losing streak +/... and for 1% its ~15001600 and if you will get more then something is wrong with this dice game site probably fair i think. Your luck will be NEAR 100% over an INFINITE amount of bets. You CAN place 1 000 000 bets and have 0% luck. same with this, i dont get, why you are saying it, 0% luck after 1 000 000 bets you cant get at all, even with minimum dice site win percentage what its = 0.01%(~x9900 payout) it will be around 100 000150 000 bets maximum +/ That is the part you don't understand. With randomness, everything is possible. You CAN get another 1500 losses after 1000 in a row, whether you reset your seed or not. It even becomes likely that you will if you place enough bets. There is no maximum number of losses in a row you can get. You CAN get 1 000 000 losses in a row at 50%, or 90%. With random numbers, it is possible. Whats the point in asking me if it's possible if you're just going to argue with my answer? okey, im understand your point. but that propability is the same, that tommorow alien will fall with NLO on my head, and im will be dead. i get it. anyone can say what is better option to find mistakes in script if script is very very long? like ~5000 lines? "[string "chunk"]:2847: attempt to compare number with nil" if i get this kind of error with script, this maybe means my mistake is in 2847 line?! but this line is "end" .... noone can tell you where the problem is without seeing the script. It is not due to the length of your script. I can tell you that you are trying to use a variable in an if before it is instantiated.




DCP
Member
Offline
Activity: 110
Merit: 10


August 26, 2017, 07:54:51 AM 

Eugene, I think there is a bug in the software regarding resetstats() not working. I've tried it on 6 different versions of dicebot, I've tried other people's scripts that had the resetstats() in it, scripts other people said were working before. The feature works fine in Advanced mode, but not in programmer mode. If you think it works please send me any script that has it so I can test it.
I really need this feature to work. Please can you tell me how to make this code work!!
if profit > 0 then resetstats() end
Lets keep it seuntjie while on the forums and casinos please. There isn't a resetstats option in the advanced mode. Are you sure you're using the correct function for what you're trying to do? I know there is an issue in the programmer mode calling the resetstats function outside of the dobet function. I ran a simulation of your script, it worked fine. Can you send me a screenshot of your console when you try to run the script and the error it gives please? (including all commands you use before the error) Re: "There isn't a resetstats option in the advanced mode. " Sorry, disregard that comment. For a moment I confused it with the Reset after BTC Profit function in Advanced mode, but I don't need that for this script, I need to reset the stats when its in profit. Re: Screenshots, here are 2, all I did was enter start(), each time it gets to the resetstats() command it crashes with the error. Below are the screenshots and the exact code I just used. Thanks for looking at it. I'm really hoping the resetstats will work. set for primedice, Go for 4  fully auto nextbet = 0 basebet = 0.0 chance=49.5 resetonwin = false bethigh = false enablesrc=true r=math.random(2)
function dobet()
if win then
nextbet = basebet
if (resetonwin == true) then nextbet = basebet end
if (profit > 0.000001) then resetstats() end
if (currentstreak == 2) then nextbet = 0.0000007 end
if ((profit < 0.0000005) and (profit >= 0.0000020)) and (currentstreak == 2) then nextbet = 0.0000008 end
if ((profit < 0.0000020) and (profit >= 0.0000041)) and (currentstreak == 2) then nextbet = 0.0000009 end
if ((profit < 0.0000041) and (profit >= 0.0000071)) and (currentstreak == 2) then nextbet = 0.0000011 end
if ((profit < 0.0000071) and (profit >= 0.0000110)) and (currentstreak == 2) then nextbet = 0.0000013 end
if ((profit < 0.0000110) and (profit >= 0.0000155)) and (currentstreak == 2) then nextbet = 0.0000015 end
if ((profit < 0.0000155) and (profit >= 0.0000200)) and (currentstreak == 2) then nextbet = 0.0000018 end
if ((profit < 0.0000200) and (profit >= 0.0000260)) and (currentstreak == 2) then nextbet = 0.0000020 end
if ((profit < 0.0000260) and (profit >= 0.0000329)) and (currentstreak == 2) then nextbet = 0.0000022 end
if ((profit < 0.0000329) and (profit >= 0.0000404)) and (currentstreak == 2) then nextbet = 0.0000025 end
if ((profit < 0.0000404) and (profit >= 0.0000488)) and (currentstreak == 2) then nextbet = 0.0000028 end
if ((profit < 0.0000488) and (profit >= 0.0000578)) and (currentstreak == 2) then nextbet = 0.0000032 end
if ((profit < 0.0000578) and (profit >= 0.0000683)) and (currentstreak == 2) then nextbet = 0.0000037 end
if ((profit < 0.0000683) and (profit >= 0.0000703)) and (currentstreak == 2) then nextbet = 0.0000043 end
if ((profit < 0.0000703) and (profit >= 0.0000853)) and (currentstreak == 2) then nextbet = 0.0000050 end
if ((profit < 0.0000853) and (profit >= 0.0001)) and (currentstreak == 2) then nextbet = 0.0000057 end
if ((profit < 0.0001) and (profit >= 0.0001180)) and (currentstreak == 2) then nextbet = 0.0000060 end
if currentstreak == 3 then nextbet = previousbet*2 end
if (currentstreak == 3) then resetonwin=true end
else
nextbet = basebet
r=math.random(2)
if r == 1 then bethigh=true else bethigh=false end
end end

H ~ O ~ D ~ L



DCP
Member
Offline
Activity: 110
Merit: 10


August 29, 2017, 08:52:58 PM 

Can you send me a screenshot of your console when you try to run the script and the error it gives please? (including all commands you use before the error)
Hi Seuntjie, Please can you look at my previous post.. Is there someway I can automatically reset the stats when profit is over 0 ? Thanks

H ~ O ~ D ~ L



HCP


August 30, 2017, 01:53:56 AM 

If resetstats() keeps crashing your script... you can probably work around it by just tracking the profit yourself using a user created profit variable... as it seems the only "stats" you're using is "profit"... runProfit = 0 startBalance = balance ...
function dobet()
runProfit = balance  startBalance
if win then ... if (runProfit > 0.000001) then  "reset stats" startBalance = balance runProfit = 0 end
... if ((runProfit < 0.0000005) and (runProfit >= 0.0000020)) and (currentstreak == 2) then ...
else ... end
end
Then you just replace all instances of "profit" with "runProfit" etc...




DCP
Member
Offline
Activity: 110
Merit: 10


August 30, 2017, 02:43:00 AM 

If resetstats() keeps crashing your script... you can probably work around it by just tracking the profit yourself using a user created profit variable... as it seems the only "stats" you're using is "profit"... runProfit = 0 startBalance = balance ...
function dobet()
runProfit = balance  startBalance
if win then ... if (runProfit > 0.000001) then  "reset stats" startBalance = balance runProfit = 0 end
... if ((runProfit < 0.0000005) and (runProfit >= 0.0000020)) and (currentstreak == 2) then ...
else ... end
end
Then you just replace all instances of "profit" with "runProfit" etc... THANK YOU SO MUCH! I really appreciate you taking the time to post this.

H ~ O ~ D ~ L



thrilled
Newbie
Offline
Activity: 14
Merit: 0


September 03, 2017, 10:28:08 PM 

Hi everyone!
I am in dire need of having a customised script created, but I am certainly no programmer. I know exactly what I want in the script just that I can create it myself.
Therefor I wonder if there are any kind soul willing to assist me here? I can donate $10 to the kind soul helping me out here (paypal required).
Please send me a PM if you have time and skills to assist me.
Best Regards!
/Thrilled




thrilled
Newbie
Offline
Activity: 14
Merit: 0


September 06, 2017, 01:37:55 PM 

A quick question....
I am trying to get the withdrawal function to work on 999d.
The code used here is:
if balance >= targetBalance then ching() withdraw(withdrawAmount,withdrawAddress)
And in the beginning I have the following settings:
 withdraw settings withdrawAddress="my address here ofc" withdrawAmount=50  amount to withdraw
I can see the messages in the console saying:
Betting 13.0161111551561 at 95% chance to win, low Withdrawing 50 to Betting 0.00002 at 95% chance to win, low Withdrawing 50 to
Nothing gets withdrawn and it's just getting into a loop since the balace says it should withdraw...
However I can just easy withdraw the same amount by clicking the withdraw button in Dicebot and enter the same amount and address.
Anyone have an idea what's failing?
/Mikael




seuntjie
Legendary
Offline
Activity: 1470
Merit: 1000


September 06, 2017, 02:15:07 PM 

A quick question....
I am trying to get the withdrawal function to work on 999d.
The code used here is:
if balance >= targetBalance then ching() withdraw(withdrawAmount,withdrawAddress)
And in the beginning I have the following settings:
 withdraw settings withdrawAddress="my address here ofc" withdrawAmount=50  amount to withdraw
I can see the messages in the console saying:
Betting 13.0161111551561 at 95% chance to win, low Withdrawing 50 to Betting 0.00002 at 95% chance to win, low Withdrawing 50 to
Nothing gets withdrawn and it's just getting into a loop since the balace says it should withdraw...
However I can just easy withdraw the same amount by clicking the withdraw button in Dicebot and enter the same amount and address.
Anyone have an idea what's failing?
/Mikael
Try using withdrawAddress='my address here ofc' instead of withdrawAddress="my address here ofc" Also, to test if your syntax is correct, you can withdraw directly from the console. So you can start your script, stop it after one bet, then use withdraw(withdrawAmount,withdrawAddress) from the console. If it works, it will work from the script, if it doesn't, somethings wrong. (Withdrawing like this POSSIBLY won't update your balance in the bot immediately. It might take a minute to update your balance. Check your withdrawal history on 999dice to see if it worked)




HCP


September 06, 2017, 02:20:43 PM 

What currency are you using? BTC or DOGE or ?? The bot seems to be setup to calculate BTC values in the withdrawal code (ie. 1 BTC = 100,000,000 satoshis): pairs.Add(new KeyValuePair<string, string>("Amount", (Amount*100000000m).ToString("0",System.Globalization.NumberFormatInfo.InvariantInfo)));
Given that you're betting "13.016.." and withdrawing "50"... either you're some kind of "whale" or you're wagering and attempting to withdraw in a currency other than BTC If this is the case, then I suspect that the final amount calculated is not correct and the bot is not reporting the error/failure message from the site correctly.




