Bitcoin Forum
November 04, 2024, 08:17:18 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)
houseworx
Full Member
***
Offline Offline

Activity: 319
Merit: 100


View Profile
August 23, 2017, 02:43:22 AM
 #801

there is some possibility to make, that bot keep seed and dsnt change it every roll on different sites? like bit-exo?! in his web page are option, to keep seed or change everybet, if we bet from web page seed dsnt changes, but if you do from dicebot, every bet we have new seed, what we can do?!

Short answer: no.

Longer answer:
Keeping the same client seed on sites that change the server seed on every bet puts the player at risk.

If you are betting predictably, for example using a preset list, fibonacci or martingale, and using the same client seed for every bet, the site can pick server seeds that will make you lose. By changing your client seed every bet prevents the site from being able to cheat in this way. The bot picks a random client seed for every bet for the players protection and to ensure the provably fair RNG remains fair.
ohh, but then i have question!

dice game random number generator, and seeds are two different things?!
like sample, im play on 1% win there is possibility to get 1500 red streak, if im reset a seed in while im already on redstreak in 1000th red roll, i cant get another 1500reds, right?! because there is random number generator!? so seeds and dice game RNG are two different things?!

everyone can make me wiser in this tematic?

████          O W N R   W A L L E T          ████   VISA PREPAID CARD    ████  Use crypto to pay in stores with OWNR  ████
❱❱❱❱ ❱❱❱ ❱❱ ❱     Buy, send, receive and exchange crypto        VISA    mastercard   SPA    UnionPay     ❰ ❰❰ ❰❰❰ ❰❰❰❰
BLOG       TWITTER     ██ █▌█ ▌     Manage crypto and VISA card in OWNR Wallet app    ▐ █▐█ ██     REDDIT   YOUTUBE
seuntjie
Legendary
*
Offline Offline

Activity: 1717
Merit: 1125



View Profile WWW
August 23, 2017, 06:25:02 AM
 #802

ohh, but then i have question!

(1)dice game random number generator, and seeds are two different things?!
like sample, im play on 1% win there is possibility to get 1500 red streak, if im reset a seed in while im already on redstreak in 1000th red roll,(2)i cant get another 1500reds, right?! because there is random number generator!? so seeds and dice game RNG are two different things?!

everyone can make me wiser in this tematic?

(1) They are different things but they are related. The RNG uses the seeds to NG.

(2) Yes you can. Seeds does not affect your ODDS. The ODDS and RNG are not related. The ODDS and SEEDS are not related. The only reason you should even look at seeds is if you think the site is cheating you and you want to verify your rolls.

DCP
Member
**
Offline Offline

Activity: 110
Merit: 10


View Profile
August 23, 2017, 10:25:00 AM
 #803

How do I reset the stats, each time I try I get this error

[string "chunk"]:14: attempt to call global 'resetstats' (a boolean value)


example:

(earlier in code:  resetonwin = false)


if resetonwin = true then
resetstats();
end

I've tried many ways to reset the stats but I always get that error msg..

H ~ O ~ D ~ L
seuntjie
Legendary
*
Offline Offline

Activity: 1717
Merit: 1125



View Profile WWW
August 23, 2017, 10:59:42 AM
 #804

How do I reset the stats, each time I try I get this error

[string "chunk"]:14: attempt to call global 'resetstats' (a boolean value)


example:

(earlier in code:  resetonwin = false)


if resetonwin = true then
resetstats();
end

I've tried many ways to reset the stats but I always get that error msg..


The error could originate from another part of your script. Mind posting your whole script?

also: if format:

Code:
if (boolean value) then

else

end

If resetonwin is a bool:
Code:
if resetonwin then

else

end
will work. With "if resetonwin = true then" You're comparing a boolean with a boolean to create a boolean.

houseworx
Full Member
***
Offline Offline

Activity: 319
Merit: 100


View Profile
August 23, 2017, 11:51:57 AM
 #805

ohh, but then i have question!

(1)dice game random number generator, and seeds are two different things?!
like sample, im play on 1% win there is possibility to get 1500 red streak, if im reset a seed in while im already on redstreak in 1000th red roll,(2)i cant get another 1500reds, right?! because there is random number generator!? so seeds and dice game RNG are two different things?!

everyone can make me wiser in this tematic?

(1) They are different things but they are related. The RNG uses the seeds to NG.

(2) Yes you can. Seeds does not affect your ODDS. The ODDS and RNG are not related. The ODDS and SEEDS are not related. The only reason you should even look at seeds is if you think the site is cheating you and you want to verify your rolls.


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!

████          O W N R   W A L L E T          ████   VISA PREPAID CARD    ████  Use crypto to pay in stores with OWNR  ████
❱❱❱❱ ❱❱❱ ❱❱ ❱     Buy, send, receive and exchange crypto        VISA    mastercard   SPA    UnionPay     ❰ ❰❰ ❰❰❰ ❰❰❰❰
BLOG       TWITTER     ██ █▌█ ▌     Manage crypto and VISA card in OWNR Wallet app    ▐ █▐█ ██     REDDIT   YOUTUBE
seuntjie
Legendary
*
Offline Offline

Activity: 1717
Merit: 1125



View Profile WWW
August 23, 2017, 04:55:44 PM
 #806

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.

houseworx
Full Member
***
Offline Offline

Activity: 319
Merit: 100


View Profile
August 23, 2017, 06:19:35 PM
 #807

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


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


████          O W N R   W A L L E T          ████   VISA PREPAID CARD    ████  Use crypto to pay in stores with OWNR  ████
❱❱❱❱ ❱❱❱ ❱❱ ❱     Buy, send, receive and exchange crypto        VISA    mastercard   SPA    UnionPay     ❰ ❰❰ ❰❰❰ ❰❰❰❰
BLOG       TWITTER     ██ █▌█ ▌     Manage crypto and VISA card in OWNR Wallet app    ▐ █▐█ ██     REDDIT   YOUTUBE
DCP
Member
**
Offline Offline

Activity: 110
Merit: 10


View Profile
August 23, 2017, 07:45:56 PM
 #808


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 4-in-a-row and is in profit, it crashes with the boolean error message.

Here's my script

Code:
--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 Offline

Activity: 1717
Merit: 1125



View Profile WWW
August 23, 2017, 09:19:17 PM
 #809


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


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



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 Offline

Activity: 1717
Merit: 1125



View Profile WWW
August 23, 2017, 09:29:38 PM
 #810


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 4-in-a-row and is in profit, it crashes with the boolean error message.

Here's my script

Code:
--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
Full Member
***
Offline Offline

Activity: 319
Merit: 100


View Profile
August 23, 2017, 10:16:31 PM
 #811


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


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



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 ~1500-1600 Huh 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 000-150 000 bets maximum +/-

████          O W N R   W A L L E T          ████   VISA PREPAID CARD    ████  Use crypto to pay in stores with OWNR  ████
❱❱❱❱ ❱❱❱ ❱❱ ❱     Buy, send, receive and exchange crypto        VISA    mastercard   SPA    UnionPay     ❰ ❰❰ ❰❰❰ ❰❰❰❰
BLOG       TWITTER     ██ █▌█ ▌     Manage crypto and VISA card in OWNR Wallet app    ▐ █▐█ ██     REDDIT   YOUTUBE
DCP
Member
**
Offline Offline

Activity: 110
Merit: 10


View Profile
August 24, 2017, 04:07:06 AM
 #812


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 4-in-a-row and is in profit, it crashes with the boolean error message.

Here's my script

Code:
--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 Crypto-games 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 Offline

Activity: 1717
Merit: 1125



View Profile WWW
August 25, 2017, 06:46:25 AM
 #813

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 ~1500-1600 Huh 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 000-150 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
Full Member
***
Offline Offline

Activity: 319
Merit: 100


View Profile
August 25, 2017, 05:30:54 PM
Last edit: August 25, 2017, 06:16:43 PM by houseworx
 #814

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 ~1500-1600 Huh 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 000-150 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" ....

████          O W N R   W A L L E T          ████   VISA PREPAID CARD    ████  Use crypto to pay in stores with OWNR  ████
❱❱❱❱ ❱❱❱ ❱❱ ❱     Buy, send, receive and exchange crypto        VISA    mastercard   SPA    UnionPay     ❰ ❰❰ ❰❰❰ ❰❰❰❰
BLOG       TWITTER     ██ █▌█ ▌     Manage crypto and VISA card in OWNR Wallet app    ▐ █▐█ ██     REDDIT   YOUTUBE
DCP
Member
**
Offline Offline

Activity: 110
Merit: 10


View Profile
August 25, 2017, 07:20:41 PM
 #815

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 Offline

Activity: 1717
Merit: 1125



View Profile WWW
August 26, 2017, 05:49:40 AM
 #816

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 Offline

Activity: 1717
Merit: 1125



View Profile WWW
August 26, 2017, 05:52:52 AM
 #817

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 ~1500-1600 Huh 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 000-150 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" ....

no-one 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 Offline

Activity: 110
Merit: 10


View Profile
August 26, 2017, 07:54:51 AM
 #818

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.










Code:
--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 Offline

Activity: 110
Merit: 10


View Profile
August 29, 2017, 08:52:58 PM
 #819


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
Legendary
*
Offline Offline

Activity: 2086
Merit: 4361

<insert witty quote here>


View Profile
August 30, 2017, 01:53:56 AM
 #820

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

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

█████████████████████████
████▐██▄█████████████████
████▐██████▄▄▄███████████
████▐████▄█████▄▄████████
████▐█████▀▀▀▀▀███▄██████
████▐███▀████████████████
████▐█████████▄█████▌████
████▐██▌█████▀██████▌████
████▐██████████▀████▌████
█████▀███▄█████▄███▀█████
███████▀█████████▀███████
██████████▀███▀██████████
█████████████████████████
.
BC.GAME
▄▄░░░▄▀▀▄████████
▄▄▄
██████████████
█████░░▄▄▄▄████████
▄▄▄▄▄▄▄▄▄██▄██████▄▄▄▄████
▄███▄█▄▄██████████▄████▄████
███████████████████████████▀███
▀████▄██▄██▄░░░░▄████████████
▀▀▀█████▄▄▄███████████▀██
███████████████████▀██
███████████████████▄██
▄███████████████████▄██
█████████████████████▀██
██████████████████████▄
.
..CASINO....SPORTS....RACING..
█░░░░░░█░░░░░░█
▀███▀░░▀███▀░░▀███▀
▀░▀░░░░▀░▀░░░░▀░▀
░░░░░░░░░░░░
▀██████████
░░░░░███░░░░
░░█░░░███▄█░░░
░░██▌░░███░▀░░██▌
░█░██░░███░░░█░██
░█▀▀▀█▌░███░░█▀▀▀█▌
▄█▄░░░██▄███▄█▄░░▄██▄
▄███▄
░░░░▀██▄▀


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
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!