Pages:
Author

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

legendary
Activity: 1717
Merit: 1125
FYI DiceBot always parses the result to somewhere between 0 and 100. If a site rolls between 0 and 9999, dicebot will show and process it as between 0 and 99.99 (so a 9999 in the site is a 99.99 in the bot, a 1 in the site is a 0.01 in the bot). But HCP is still correct, some sites use more decimals than others. You can use the site.maxroll variable to get the accurate maximum roll a site can give.
HCP
legendary
Activity: 2086
Merit: 4363
This script will just bet continuously until there are 50000 consecutive rolls where 0 or 9999 have not been rolled.

NOTE: depending on the site used... you may need to change "lastBet.Roll == 0" and "lastBet.Roll == 9999" to something like "lastBet == 0.0000" and "lastBet.Roll == 99.9999" or whatever format the site is using for it's results.

As always, it's pretty much untested...

Code:
chance = 98
bethigh = True
basebet = 0.00000010
nextbet = basebet

count = 0

function dobet()

  nextbet = basebet
  count = count + 1
  if lastBet.Roll == 0 or lastBet.Roll == 9999 then
    count = 0
  end

  if count >= 50000 then
    Stop()
    nextbet = 0
  end

end
legendary
Activity: 1904
Merit: 1000
who will write the script ---- Start at 98 chance, stop if roll number 0 or 9999.  has not dropped 50 thousand times .---


will pay 50 thousands of Satoshi

Do you want to play at 98% win of chance and stop the roll when you hit 0.00 or 99.99? If so, try with this script and wish you good luck!


Code:
nextbet = 0.00001 -- set your base bet here!
chance = 98
target = 0.00
target1 = 99.99


function dobet()

    if lastBet.roll == target then
ching();
                stop();
    end

       if lastBet.roll == target1 then
ching();
                stop();
    end

end
member
Activity: 270
Merit: 10
who will write the script ---- Start at 98 chance, stop if roll number 0 or 9999.  has not dropped 50 thousand times .---


will pay 50 thousands of Satoshi
HCP
legendary
Activity: 2086
Merit: 4363
Your original script looked like it wanted High/low changed on the every 30 losses...
Quote
if losscount==30 then
     nextbet = previousbet*1.112
     chance = chance
     bethigh =!bethigh

So I just followed that... if you DON'T want it changing high/low when losing... and ONLY want it changing High/low when there is a win, simply remove the "bethigh = !bethigh" line from the from the "if losscount == 30" section:
Quote
if losscount == 30 then
      stepcount = stepcount + 1
      if stepcount > maxstep then
        -- make sure we don't exceed the size of multipliers table
        stepcount = maxstep
      end
      losscount = 0
      bethigh = !bethigh <-- delete this
    end
HCP
legendary
Activity: 2086
Merit: 4363
script. change button after the change %.what do you think after the win that changed   ?
test need to
give dogs a purse.than I can. thank
I'm sorry... I don't quite understand what it is that you're saying/asking? Huh Did you use Google translate?
HCP
legendary
Activity: 2086
Merit: 4363
thank you very much for replying to the message
but the script gave an error wrote.[string "chunk"]:23: attempt to index global 'multiplier' (a number value)
makes 2 bets and stops
NOTE: This code is completely untested, use at your own risk. It probably won't even run without editing.
Like I said... it was untested... and as expected has bugs... so you need to change:
nextbet = previousbet * multiplier[stepcount]
to
nextbet = previousbet * multipliers[stepcount]


Quote
strategy such .after winning the button changes and returns to the beginning of the bet
If you want the script to change high/low on a win as well... simply add:
bethigh = !bethigh

into the "if (win) then" block:
Code:
...
  if (win) then
    nextbet = basebet
    losscount = 0
    stepcount = 1
    bethigh = !bethigh
  else
...
HCP
legendary
Activity: 2086
Merit: 4363
That is very doable... although your (chance == chance) logic seems very flawed... I'm not sure what you were actually attempting to achieve with this? Huh Looking at the code you have, it seems that you want to modify the multiplier every 30 losses... returning to basebet if you win? and changing HIGH/low every 30 losses...

Hopefully, this code should do what I think it is that you're attempting to do

NOTE: This code is completely untested, use at your own risk. It probably won't even run without editing.
Code:
chance = 49.5 -- EDIT THIS
bethigh = true
basebet = 0.00000001
nextbet = basebet

multipliers = {1,1.112,1.113,1.115}

losscount = 0
stepcount = 1
maxstep = #multipliers

function dobet()

  if (win) then
    nextbet = basebet
    losscount = 0
    stepcount = 1
  else
    losscount = losscount + 1
    if losscount == 30 then
      stepcount = stepcount + 1
      if stepcount > maxstep then
        -- make sure we don't exceed the size of multipliers table
        stepcount = maxstep
      end
      losscount = 0
      bethigh = !bethigh
    end
    nextbet = previousbet * multiplier[stepcount]
  end

end

As currently setup, assuming a loooooong losing streak, this should go something like:
Roll 1: HIGH - 0.00000001 - Loss
Roll 2: HIGH - 0.00000001 - Loss
Roll 3: HIGH - 0.00000001 - Loss
...
Roll 30: HIGH - 0.00000001 - Loss
Roll 31: low - 0.00000001112 - Loss
Roll 32: low - 0.00000001236 - Loss
...
Roll 60: low - 0.00000021729 - Loss
Roll 61: HIGH - 0.00000024184 - Loss
Roll 62: HIGH - 0.00000026917 - Loss
...
Roll 90: HIGH - 0.00000539379 - Loss
Roll 91: low - 0.00000601407 - Loss
Roll 92: low - 0.00000670569 - Loss
...
HCP
legendary
Activity: 2086
Merit: 4363
HELLO
I had tried to add in this script
Winnumb = 0
if win number >3 then next bet=basebet but it does not work correctly pls help me
You need to make sure that you are setting and resetting the counter correctly... so you need to add 1 to the winnum each time you win, and then check it to see if your condition (winnum > 3) has been reached. If so, then you need to reset the bet AND the counter... otherwise it will just keep counting to infinity and always trigger the winnum >3 condition Wink

something like this:
Code:
math.randomseed(os.time()) -- sets random seed using system time

-- set basebet and chance according to your requirements
basebet = 0.00000001
chance = 43.130 -- 2.3x payout on Crypto-Games.net
balancetarget = 0.0001 -- Script will stop if balance greater than this value

if (math.random(100) >= 50) then
  bethigh = true
else
  bethigh = false
end

winnum = 0

nextbet = basebet

function dobet()

 if (win) then
    -- reverse martingale
    nextbet = previousbet * 1.9
    winnum = winnum + 1
    if (winnum > 3) then
      nextbet = basebet
      winnum = 0
    end
  else
    -- revert to base
    nextbet = basebet
    winnum = 0
  end

  if (math.random(100) >= 50) then
    bethigh = true
  else
    bethigh = false
  end

  if balance > balancetarget then
    nextbet = 0
    stop()
  end

end
newbie
Activity: 1
Merit: 0
HELLO
I had tried to add in this script
Winnumb = 0
if win number >3 then next bet=basebet but it does not work correctly pls help me
Code:
math.randomseed(os.time()) -- sets random seed using system time

-- set basebet and chance according to your requirements
basebet = 0.00000001
chance = 43.130 -- 2.3x payout on Crypto-Games.net
balancetarget = 0.0001 -- Script will stop if balance greater than this value

if (math.random(100) >= 50) then
  bethigh = true
else
  bethigh = false
end

nextbet = basebet

function dobet()

 [color=red] if (win) then
    -- reverse martingale
    nextbet = previousbet * 1.9
  else
    -- revert to base
    nextbet = basebet
  end  [/color]

  if (math.random(100) >= 50) then
    bethigh = true
  else
    bethigh = false
  end

  if balance > balancetarget then
    nextbet = 0
    stop()
  end

end

HCP
legendary
Activity: 2086
Merit: 4363
Probably very possible... couple of questions for you:

1. is it meant to check "4 numbers in a row > 70" (ie. 74, 82, 80, 92) or "4 numbers in a row < 30" (ie. 15, 20, 28, 11) or can it alternate? (ie. 12, 83, 22, 91) = set 70%?
2. When you set the chance to 50%, 70% or 80%, do you want the high/low set to a specific option? If so... what?
3. What should the script do if it is already betting one option (say, 2 numbers > 80) and it comes across another sequence (ie. 4 numbers < 30)?
4. Should it just reset to 98% and basebet on any win?
5. how long should it "martingale" with the multipliers when betting one of the options? should it just go until bankroll is busted? or is there a maximum number of losses to bet for? or a maximum amount to bet up to?
newbie
Activity: 4
Merit: 0

Hello,
I'm new and dont know how to create a script.
I would like to create a script :
98% chance to win betbase 1 (dont care for the loss and win)
if 5 number in a row < or > 50 so change the bet base to 100, chance to 50% and multiplie by 2
if 2 number in a row > 80 or < 20 change the bet base to 100, chance to 80% and multiplie by 7
if 4 number in a row  > 70 or <30 change the bet base to 100, chance to 70% and multiplie by 3,5
...
It is possible ?
Thanks in advance if someone can help me.
newbie
Activity: 3
Merit: 0
If you're going to run on a low RAM setup, you'll probably need to disable the charting to avoid OOM (Out of Memory) issues. Also, depending on the complexity of the script(s) you're testing... you might find that 2GB is a little low if you're setting up lots (as in hundreds) of variables/data structures etc.

If the scripts are relatively simple, 2GB should probably suffice... Obviously, the more the better Tongue

Thank you for perfect and detailed responce!
HCP
legendary
Activity: 2086
Merit: 4363
If you're going to run on a low RAM setup, you'll probably need to disable the charting to avoid OOM (Out of Memory) issues. Also, depending on the complexity of the script(s) you're testing... you might find that 2GB is a little low if you're setting up lots (as in hundreds) of variables/data structures etc.

If the scripts are relatively simple, 2GB should probably suffice... Obviously, the more the better Tongue
newbie
Activity: 3
Merit: 0
Any "reasonable" windows based VPS should be fine... as it is a windows only application.

Any particular reason why you want to do it with a VPS? It runs perfectly adequately on a standard Windows desktop PC.

So 2Gb of RAM will be enough?

I use my laptop at several place - so need a server where I can test script 24x7
HCP
legendary
Activity: 2086
Merit: 4363
Any "reasonable" windows based VPS should be fine... as it is a windows only application.

Any particular reason why you want to do it with a VPS? It runs perfectly adequately on a standard Windows desktop PC.
newbie
Activity: 3
Merit: 0
Which VPS/VDS is the best for hosting this bot?
legendary
Activity: 1717
Merit: 1125
I have created a forum for DiceBot discussions at https://forum.seuntjie.com. Feel free to register an account there and create a thread if you have questions or suggestions, or need help with something.

Theres' a whole section for the programmer mode, so don't be shy to ask a question if you need any help.
member
Activity: 270
Merit: 10
I copy a code, but it isn't started
That's because it's not a "full" script... it doesn't set nextbet or chance... and there are (deliberate) syntax errors that will prevent it from being able to copy/paste and run, hence the ".. other setup .." and ".. other stuff .." sections.

This is just a code snippet that you should be able to integrate into your own script.
it is clear. It is necessary for me that has just shown also everything, we will wait can the developer will add separate function
HCP
legendary
Activity: 2086
Merit: 4363
I copy a code, but it isn't started
That's because it's not a "full" script... it doesn't set nextbet or chance... and there are (deliberate) syntax errors that will prevent it from being able to copy/paste and run, hence the ".. other setup .." and ".. other stuff .." sections.

This is just a code snippet that you should be able to integrate into your own script.
Pages:
Jump to: