Pages:
Author

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

member
Activity: 270
Merit: 10
how to combine three of the script



Code:
script1
chance = 1
bethigh = true
basebet = 0.00000001
nextbet = basebet

function dobet()

chance = 1
if (win) then
   nextbet = basebet
   bethigh = !bethigh
else
   nextbet = previousbet * 1.1
end

end
script2
chance = 2
bethigh = true
basebet = 0.00000001
nextbet = basebet

function dobet()

chance = 2

if (win) then
   nextbet = basebet
   bethigh = !bethigh
else
   nextbet = previousbet * 1.1
end

end
script3
chance = 3
bethigh = true
basebet = 0.00000001
nextbet = basebet

function dobet()

chance = 3

if (win) then
   nextbet = basebet
   bethigh = !bethigh
else
   nextbet = previousbet * 1.1
end

end
member
Activity: 64
Merit: 10
1st reply, everything i needed and i understand it!

HCP ... im lost for words!! thanks


-- there are errors when i try to run the script.
i edited the numbers in the array and the if < > e.g put 0.00000001 etc
it didn't start but i got it to start, then when it reached 0.00000010 it didn't stop

now it wont start

do i edit this?:
Code:
-- check to make sure we don't exceed the array size
  if arrayCounter > #myBetArray then
    -- reached end of list, prevent out of bound error
    arrayCounter = myBetArray[#myBetArray]
  end

  nextbet = myBetArray[arrayCounter]

end

ive messed with the script so much i cant remember what i did to make it start

have you tested it?

Firstly, it wasn't by any means a complete script... far from it... hence all of the "...do other stuff... " type messages spread through out the code... What I showed was merely a code snippet that should achieve the same functionality as the preset list..

If the script was meant to stop at the end of the list, then you'd just edit the "if arrayCounter > #myBetArray then" section and put a stop() in.

Code:
 if arrayCounter > #myBetArray then
    -- reached end of list, stop betting
    stop()
  end

I'm not sure what you mean by you couldn't get the script to start? If you just tried to copy and paste my original code without doing anything to it, it would probably not do anything because the nextbet value is not set before the dobet() function is called... so the site would (should?) probably reject the attempt as the bet would have been null or zero etc... were there any error messages displayed in the bottom left hand corner of the dicebot window?


i changed the obvious things because i knew it wouldnt just run, doesn't matter ive gone back to playing roulette now  Cool thats where im at home.

but heres the latest idea i had, if you haven't heard of the 1 3 2 4

Its the quickest way of making 10 units,

but i though of doing it on 1.1x 1.2x 1.3x and 1.4x (and maybe a version betting 4 units on 1.1x - 1 unit on 1.4x) and on a loss doing the right martingale on 1.3 and then going back to the pattern.

I did this manually without the other martingale, it worked fine but i dont have the time to program it.
legendary
Activity: 1717
Merit: 1125
I never thought my bot would get so many people to start learning programming. Completely unintentional but awesome side-effect, lol.
newbie
Activity: 29
Merit: 0
I think the problem is that you are just trying to copy+paste my code snippets directly into your script and expecting it to work  Undecided For the most part, the code I type in here should be considered at best "pseudo code" and at worst, totally broken Tongue

The error is most likely caused by "numbets" not actually being a declared variable. I think the inbuilt variable is actually called "bets", but I was trying to illustrate what the variable was actually representing...

Ok, that's absolutely fine! I'll try to deep digger on it and with the variables. I'm very rookie with this, i never made or used or understand a single piece of code until i found this program, so i'm basically learning from scratch. anyway thanks!
HCP
legendary
Activity: 2086
Merit: 4361
I think the problem is that you are just trying to copy+paste my code snippets directly into your script and expecting it to work  Undecided For the most part, the code I type in here should be considered at best "pseudo code" and at worst, totally broken Tongue

The error is most likely caused by "numbets" not actually being a declared variable. I think the inbuilt variable is actually called "bets", but I was trying to illustrate what the variable was actually representing...
newbie
Activity: 29
Merit: 0
ok, i wrote startcount instead of startCount, but now i get this: Betting Stopped!
[string "chunk"]:39: attempt to compare number with nil i'm getting closer!
newbie
Activity: 29
Merit: 0
Thanks for your reply Smiley
I've set startcount = 0 at the beginning of the script together with the other variables such as base, chance, etc but i still get the same error  Huh
legendary
Activity: 1007
Merit: 1000
any idea about how to make the script change for a certain amount of bets? I've managed to change it from 5, let's say to 1 red streak, but i would like the script to do this change to 1 for example for 100 rolls, and then go back to 5 red streak. Do you have any idea on how to do it? Maybe with numbet? thanks!

That is exactly what my code example was doing... when you lose, and the lossCount is >= 5, it reset your lossStartMult to 4... and then started a counter (lossStartMultCounter)...

every roll it would increment the lossStartMultCounter... and then if it got to big (ie. your target number "xNumberOfBets") then it would reset the lossStartMult back to the initial value and then reset the counter as well...

You could also use numbets, which is probably a lot cleaner Wink :

Code:
if (!win) then
  lossCount += 1
else
  if lossCount >= 5 then
    lossStartMult = 4

    startCount = numbets -- save starting point   

  end
  lossCount = 0
end

if numbets >= startCount + 100 then
  -- it has been 100 bets since we changed stuff
  -- reset all the values here
end

Hi again!

So i tried your code:

Code:
if (!win) then
  lossCount += 1
else
  if lossCount >= 5 then
    lossStartMult = 1
    startCount = numbets -- save starting point   
    end
  lossCount = 0
end

if numbets >= startCount + 100 then
  -- it has been 100 bets since we changed stuff
  -- reset all the values here
     base = 0.000000100
     lossStartMult = 5
     chance = 60
end

But when I start i got this error: string "chunk":39: attempt to perform arithmetic on global 'startCount' (a nil value) I have tried to look online for the solution but i'm pretty lost. Just to remind, the idea is that when we got a 5 red streak and we start to apply the multiplier, after winning we will set for 100 bets a losstartmult to 1 (or any value, lower). I really appreciate your help, I hope to make it work because the script works very well but with this add it will be the ultimate script lol. Thanks again!

in the initialization section (before the dobet function) set startCount

startCount = 0

Your problem is if the first bet is a loss you never set startCount.  But your trying to check it later numbets >= startCount.  If it's not set, then it's nil.  (nothing nada...  Smiley )
newbie
Activity: 29
Merit: 0
any idea about how to make the script change for a certain amount of bets? I've managed to change it from 5, let's say to 1 red streak, but i would like the script to do this change to 1 for example for 100 rolls, and then go back to 5 red streak. Do you have any idea on how to do it? Maybe with numbet? thanks!

That is exactly what my code example was doing... when you lose, and the lossCount is >= 5, it reset your lossStartMult to 4... and then started a counter (lossStartMultCounter)...

every roll it would increment the lossStartMultCounter... and then if it got to big (ie. your target number "xNumberOfBets") then it would reset the lossStartMult back to the initial value and then reset the counter as well...

You could also use numbets, which is probably a lot cleaner Wink :

Code:
if (!win) then
  lossCount += 1
else
  if lossCount >= 5 then
    lossStartMult = 4

    startCount = numbets -- save starting point   

  end
  lossCount = 0
end

if numbets >= startCount + 100 then
  -- it has been 100 bets since we changed stuff
  -- reset all the values here
end

Hi again!

So i tried your code:

Code:
if (!win) then
  lossCount += 1
else
  if lossCount >= 5 then
    lossStartMult = 1
    startCount = numbets -- save starting point   
    end
  lossCount = 0
end

if numbets >= startCount + 100 then
  -- it has been 100 bets since we changed stuff
  -- reset all the values here
     base = 0.000000100
     lossStartMult = 5
     chance = 60
end

But when I start i got this error: string "chunk":39: attempt to perform arithmetic on global 'startCount' (a nil value) I have tried to look online for the solution but i'm pretty lost. Just to remind, the idea is that when we got a 5 red streak and we start to apply the multiplier, after winning we will set for 100 bets a losstartmult to 1 (or any value, lower). I really appreciate your help, I hope to make it work because the script works very well but with this add it will be the ultimate script lol. Thanks again!
full member
Activity: 148
Merit: 100
hi,

i need a code for:

when i win change bethigh to true if previously is false

anyone help me?



Technically this is what you asked for.

if (win) then
   bethigh = true
end

bethigh is changed to, or left true on a win.   I don't know how it would change to anything else since you didn't provide any supporting code.  

did you really mean to flip bethigh?  IE if true make false or if false make true?    In that case it's bethigh = !bethigh.  



tnx but i need to flip ...
if win
if bethigh is true  i need set to false and if false i need to set to true




Then it's the

if (win) then
   bethigh = !bethigh
end

This sets bethigh the opposite of what it is. 


great tnx a lot!
newbie
Activity: 29
Merit: 0
Yes I know! However, maybe it's because it is a very long chart, the option to save it to hard drive and upload to imgur wasn't working at all. My pc was froze  and i've got a NET FRAMEWORK error, so i had to to a screenshoot and then upload it to imgur manualy Cheesy
legendary
Activity: 1717
Merit: 1125
I myself shared a script, a modification of a previous script, that's prebetting all the times you want at the chance you want and others have shared them. You are playing a martingale with a certain amount  of prebetting and multipliying and at some point if you don't achieve the earnings, you just start over. That's fine, when you are 1.5 btc up just share your screenshot again.
Maybe when you are 1000000 btc up you might want to share your script with the rest of the world from your private island Wink And again, if you are in the opensource community still makes less sense to me that you do not want to share anything so the rest of the people can learn by themselves.



So take that script and use it bro. I'm sure it won't be far from mine Smiley My private island is precisly that. Private. No sharing allowed, since I do that in the main land Wink

Well its better to make less sense than no sense! I guess you have different POV about this issue.

Yes i think we definitively have a different POV about that Wink Nevertheless, I respect your position and I hope you can make a huge profit with the script. It will be nice if you can share your chart in a while thought. Here you have mine in the month of march:




Did you know that if "upload to imgur" is checked and you click save, the chart is uploaded to imgur and the uploaded image is opened in your browser? Just ironic that you have that option ticked and then take a screenshot of it and upload it to imgur.

Nice chart though
HCP
legendary
Activity: 2086
Merit: 4361
any idea about how to make the script change for a certain amount of bets? I've managed to change it from 5, let's say to 1 red streak, but i would like the script to do this change to 1 for example for 100 rolls, and then go back to 5 red streak. Do you have any idea on how to do it? Maybe with numbet? thanks!

That is exactly what my code example was doing... when you lose, and the lossCount is >= 5, it reset your lossStartMult to 4... and then started a counter (lossStartMultCounter)...

every roll it would increment the lossStartMultCounter... and then if it got to big (ie. your target number "xNumberOfBets") then it would reset the lossStartMult back to the initial value and then reset the counter as well...

You could also use numbets, which is probably a lot cleaner Wink :

Code:
if (!win) then
  lossCount += 1
else
  if lossCount >= 5 then
    lossStartMult = 4

    startCount = numbets -- save starting point   

  end
  lossCount = 0
end

if numbets >= startCount + 100 then
  -- it has been 100 bets since we changed stuff
  -- reset all the values here
end
legendary
Activity: 1007
Merit: 1000
hi,

i need a code for:

when i win change bethigh to true if previously is false

anyone help me?



Technically this is what you asked for.

if (win) then
   bethigh = true
end

bethigh is changed to, or left true on a win.   I don't know how it would change to anything else since you didn't provide any supporting code.  

did you really mean to flip bethigh?  IE if true make false or if false make true?    In that case it's bethigh = !bethigh.  



tnx but i need to flip ...
if win
if bethigh is true  i need set to false and if false i need to set to true




Then it's the

if (win) then
   bethigh = !bethigh
end

This sets bethigh the opposite of what it is. 
full member
Activity: 148
Merit: 100
hi,

i need a code for:

when i win change bethigh to true if previously is false

anyone help me?



Technically this is what you asked for.

if (win) then
   bethigh = true
end

bethigh is changed to, or left true on a win.   I don't know how it would change to anything else since you didn't provide any supporting code.  

did you really mean to flip bethigh?  IE if true make false or if false make true?    In that case it's bethigh = !bethigh.  



tnx but i need to flip ...
if win
if bethigh is true  i need set to false and if false i need to set to true


newbie
Activity: 29
Merit: 0

Hi again! Thanks to your help, i've managed to achieve more or less what i wanted. However, do you know how i can set the parameters inside the script to only make the change of lossmult during a certain amount of bets, and then go back to the initial? Any help will be much apreciatted! thanks

ummmm put in another counter when you change the lossmult? set it to zero, increment it every roll... and when it gets to the number of bets you set, you can just set lossStartMult back to whatever you want...

Code:
--CODE HAS NOT BEEN TESTED!

if (!win) then
  lossCount += 1
else
  if lossCount >= 5 then
    lossStartMult = 4

    -- NEW COUNTER
    lossStartMultCounter = 0
  end
  lossCount = 0
end

--Increment every roll
lossStartMultCounter += 1

-- if it gets to big, reset lossStartMult and reset the counter as well
if lossStartMultCounter >= xNumberOfBets then
  lossStartMult = initialLossStartMultValue (or whatever else you feel like)
  lossStartMultCounter = 0
end if
[/quote]

any idea about how to make the script change for a certain amount of bets? I've managed to change it from 5, let's say to 1 red streak, but i would like the script to do this change to 1 for example for 100 rolls, and then go back to 5 red streak. Do you have any idea on how to do it? Maybe with numbet? thanks!
legendary
Activity: 1007
Merit: 1000
hi,

i need a code for:

when i win change bethigh to true if previously is false

anyone help me?



Technically this is what you asked for.

if (win) then
   bethigh = true
end

bethigh is changed to, or left true on a win.   I don't know how it would change to anything else since you didn't provide any supporting code.  

did you really mean to flip bethigh?  IE if true make false or if false make true?    In that case it's bethigh = !bethigh.  
newbie
Activity: 29
Merit: 0
I myself shared a script, a modification of a previous script, that's prebetting all the times you want at the chance you want and others have shared them. You are playing a martingale with a certain amount  of prebetting and multipliying and at some point if you don't achieve the earnings, you just start over. That's fine, when you are 1.5 btc up just share your screenshot again.
Maybe when you are 1000000 btc up you might want to share your script with the rest of the world from your private island Wink And again, if you are in the opensource community still makes less sense to me that you do not want to share anything so the rest of the people can learn by themselves.



So take that script and use it bro. I'm sure it won't be far from mine Smiley My private island is precisly that. Private. No sharing allowed, since I do that in the main land Wink

Well its better to make less sense than no sense! I guess you have different POV about this issue.

Yes i think we definitively have a different POV about that Wink Nevertheless, I respect your position and I hope you can make a huge profit with the script. It will be nice if you can share your chart in a while thought. Here you have mine in the month of march:


https://i.imgur.com/9HKrT6n.png
full member
Activity: 148
Merit: 100
hi,

i need a code for:

when i win change bethigh to true if previously is false and if bethigh are true set to false

anyone help me?

newbie
Activity: 49
Merit: 0
The thing with the whole "House always wins" argument... is that people tend to look at it from their individual perspective...

It is perfectly within the bounds of mathematical reasoning and logic that an individual player can "beat" the house and walk away with a profit... (The odds of that happening tend towards zero the longer that individual plays.)

However, the house doesn't play 1v1... it plays 1vMany... and they rely on the majority losing more than the minority win... which is generally going to happen with the house edge and law of large numbers on their side...

congrats to the guy who made some money, just don't expect it to last forever... nor should others expect to be able to replicate the results.

Play for fun... and don't risk what you can't afford to lose. Wink

Wise words and clearly someone who knows its facts. Thanks for the input.
Pages:
Jump to: