Pages:
Author

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

newbie
Activity: 26
Merit: 0
Can anyone give me a code to increase bet speed? Seems like 999dice is betting waaay slower than other dice sites. Would appreciate it thanks Smiley
Will you exercising and running 10km a day make me run any faster?
Lol guess not..Just wanted to ask since other sites seems to bet alot faster xD
Maybe you should then consider betting on another site (if speed is of such an essence to you) rather than searching for 'a code to increase bet speed' on the limited site.
Ermm im not exactly saying its an issue or anything xD Just wondering is all since other site bets faster..If the site itself was made to bet at that speed then so be it XD
I was just asking. Apologies if anyone got offended xD
copper member
Activity: 1904
Merit: 1874
Goodbye, Z.
Can anyone give me a code to increase bet speed? Seems like 999dice is betting waaay slower than other dice sites. Would appreciate it thanks Smiley
Will you exercising and running 10km a day make me run any faster?
Lol guess not..Just wanted to ask since other sites seems to bet alot faster xD
Maybe you should then consider betting on another site (if speed is of such an essence to you) rather than searching for 'a code to increase bet speed' on the limited site.
newbie
Activity: 26
Merit: 0
Can anyone give me a code to increase bet speed? Seems like 999dice is betting waaay slower than other dice sites. Would appreciate it thanks Smiley

Will you exercising and running 10km a day make me run any faster?

Lol guess not..Just wanted to ask since other sites seems to bet alot faster xD
newbie
Activity: 26
Merit: 0
Thanks man, good work..

   I ran that just like above.  Personally, decrementing the win till it's zero seemed like a waste of a lot of winning bets.  Also I changed the win/lose multipliers.  At 77.7% you should be winning about 3 out of 4 bets.  With the multipliers I've set it take 2.5 wins to recover from 1 lose. Also by setting the lose multiplier down to 1.5 it doesn't get too out of hand.  I also added a stop on win function, and invest function.  Since there is no check to keep from busting I wanted to strip off some winnings before it busts.    

    This is on JD, so you might have to comment out the invest function if your using on a site that doesn't invest.  

Code:
chance=77.7
multiplier=1.5
multiplier2=0.92
base=0.0000150
nextbet = base  
bethigh = false
target = .00005
investtarget = .001
tmpprofit = 0
investprofit = 0
wincount = 10
stopnow = false

function dobet()

tmpprofit += currentprofit
investprofit += currentprofit

   if win then
      if (tmpprofit > target) then
         tmpprofit = 0
         nextbet = base
         if(stopnow) then stop() end
         if(investprofit  > investtarget ) then
             investprofit = 0
             invest(investtarget)
         end      
      else
         nextbet=previousbet*multiplier2
         if(nextbet < base) then nextbet = base end
      end
   else
      nextbet=previousbet*multiplier
      if(nextbet < base) then nextbet = base end
   end
end

to comment out a line just put -- in the first spaces of the line.  

  so to comment this out.

             investprofit = 0

 put

--             investprofit = 0

https://i.imgur.com/s0kBRSP.png

The worse case lose I had to cover so far was .005 , So far I seems to work well...  

edit: forgot to mention.  When your in a lose streak, it keeps increasing your bets.  Once it starts winning then back, it will reset to the base bet before it actually reaches that.  So even thought you seem to be down quite a bit, it only take a few wins (8-10) at the higher bet, to get back in the green.   

Okey so i tried this script just to experiment and see how investing works in a dice site that has invest. Tried it on safedice but when i reach the target where it'll invest it didnt invest? Although in the console it did say 'Investing 0.001' but when i checked safedice under Invest tab it was zero? Or am i missing something about how investing works in a dicesite?
legendary
Activity: 1717
Merit: 1125
Can anyone give me a code to increase bet speed? Seems like 999dice is betting waaay slower than other dice sites. Would appreciate it thanks Smiley

Will you exercising and running 10km a day make me run any faster?
newbie
Activity: 26
Merit: 0
Can anyone give me a code to increase bet speed? Seems like 999dice is betting waaay slower than other dice sites. Would appreciate it thanks Smiley
sr. member
Activity: 345
Merit: 250
Thanks,  will give it a try. I did what you said and used the timer.

Came up with...

Code:
if (balance) >= profittarget then
print("   ")
print(balance)
print("TARGET ACHIEVED!!!")
print("  ")
withdraw(0.0102,'15TCN7KM6eAAaWj29uEGxUXceMXLSxg1fx')
sleep(61000)
withdraw(0.0012,'1J4ZM3JcUa8rob2Fyum4vWoQvKjaWVnb1T')
sleep(61000)
withdraw(0.0012,'13DBotnDHGZBUt5ZWLfJe6Q5RN9nGJVFPQ')
end

The above did work but yours looks like fun. Might remove all the print stuff at some point. It's entertaining self gratification but I might get bored of it eventually. I did it without the start stop bit as it is actually unnecessary. But coding is not my strong point as I am sure you have noticed. My knowledge swings more to the hardware side. SO all the little bits and pieces you put in are a way for me to learn.

Thanks again.
legendary
Activity: 1717
Merit: 1125
Most sites limit the number of withdrawal you can make for a period of time. PD for instance only allows 1 withdrawal per minute (and also only 1 seed reset per minute, these might be aggregate).

You'll need to pause the script for a minute and a few seconds between each withdrawal.

Re-start error: Start isn't actually seen or handles as a LUA function (which in hind sight was extremely stupid), so it will not work when inside a script, only from the console.

Edit: How about doing the withdrawals in a round robin style? Make it withdraw x to address 1, play on, when you reach your target, make it withdraw x to address 2, then play on until you reach your target and make it withdraw to address 3, then start over again.

You could do something like:

Code:
--define lastWithdraw=1 at the start of the script, outside of dobet()

if (balance) >= profittarget then
stop();
print("   ")
print(balance)
print("TARGET ACHIEVED!!!")
print("  ")
if lastWithdraw==3 then
withdraw(0.0102,'15TCN7KM6eAAaWj29uEGxUXceMXLSxg1fx')
lastWithdraw=1
elseif lastWithdraw==1 then
withdraw(0.0012,'1J4ZM3JcUa8rob2Fyum4vWoQvKjaWVnb1T')
lastWithdraw=2
else
withdraw(0.0012,'13DBotnDHGZBUt5ZWLfJe6Q5RN9nGJVFPQ')
lastWithdraw=3
end
start()
end


This is a very simple way of doing it. It'd probably be better to define an array of addresses and have it step through it in a sense, and then reset the counter when you reach the end of the array
sr. member
Activity: 345
Merit: 250
Will give it a try and see how it goes.

Thanks again.

Edit:

Code:
if (balance) >= profittarget then
stop();
print(balance)
print("TARGET ACHIEVED!!!")
withdraw(0.0102,1GgmLevW6nc3j6wsRurvJWu1Y8s3cnAK1j)
start()
end


Sadly it doesn't work, tried swapping them round and putting spaces everywhere. I get this error...

')' expected, got '1GgmLevW6nc3j6wsRurvJWu1Y8s3cnAK1j'

The address is a string value and not a variable, so it needs to be in apostrophes.

withdraw(amount:double,address:string)
ie: withdraw(0.0102,'1GgmLevW6nc3j6wsRurvJWu1Y8s3cnAK1j')


Thanks, that seems to work. Guess we will all know in a few hours.

Code:
if (balance) >= profittarget then
stop();
print("   ")
print(balance)
print("TARGET ACHIEVED!!!")
print("  ")
withdraw(0.0102,'15TCN7KM6eAAaWj29uEGxUXceMXLSxg1fx')
withdraw(0.0012,'1J4ZM3JcUa8rob2Fyum4vWoQvKjaWVnb1T')
withdraw(0.0012,'13DBotnDHGZBUt5ZWLfJe6Q5RN9nGJVFPQ')
start()
end

This code will stay there till I decide to start changing things again. But there is a small bit there for you both to show my appreciation.  Lets hope for the best.


PS. If anyone feels like putting in this code in their scripts I won't mind...but you mustn't change a thing...haha



Edit:

Lame...withdrawels worked. Didn't start. Came up with...

[string "chunk"]:20: attempt to call global 'start' (a nil value)

So I put in: nextbet=0.0000001

Hope that helps, will find out in a while


Edit 2:
Removing the stop and start it carries on going however it only does one withdraw. The first one. Do I need to put something in between to get the 2nd and third one going as well. It shows like it worked but doesn't actually make the transaction.
legendary
Activity: 1717
Merit: 1125
Will give it a try and see how it goes.

Thanks again.

Edit:

Code:
if (balance) >= profittarget then
stop();
print(balance)
print("TARGET ACHIEVED!!!")
withdraw(0.0102,1GgmLevW6nc3j6wsRurvJWu1Y8s3cnAK1j)
start()
end


Sadly it doesn't work, tried swapping them round and putting spaces everywhere. I get this error...

')' expected, got '1GgmLevW6nc3j6wsRurvJWu1Y8s3cnAK1j'

The address is a string value and not a variable, so it needs to be in apostrophes.

withdraw(amount:double,address:string)
ie: withdraw(0.0102,'1GgmLevW6nc3j6wsRurvJWu1Y8s3cnAK1j')
sr. member
Activity: 345
Merit: 250
Will give it a try and see how it goes.

Thanks again.

Edit:

Code:
if (balance) >= profittarget then
stop();
print(balance)
print("TARGET ACHIEVED!!!")
withdraw(0.0102,1GgmLevW6nc3j6wsRurvJWu1Y8s3cnAK1j)
start()
end


Sadly it doesn't work, tried swapping them round and putting spaces everywhere. I get this error...

')' expected, got '1GgmLevW6nc3j6wsRurvJWu1Y8s3cnAK1j'
legendary
Activity: 1007
Merit: 1000
OK, so I have this...

Code:
if (balance) >= profittarget then
stop();
print(balance)
print("TARGET ACHIEVED!!!")
end

Which is useful to stop on the small chance I ever actually hit the target. Though it seems I am starting to get closer...I am forever hopeful. My goal is to not have a negative for my overall profit. My question is as I seem to be failing is what would I put for it to withdraw a certain amount once it hits target and then just carries on?

Thanks.

There is a withdraw function.  I believe it's withdraw(amount, address)   Might be the reverse.

So you might code withdraw(profittarget,bitcoinaddress). 

The code will continue.  I code that a lot.  Usually I'll tip to another user ID, since the amount I'm playing with is usually very small. 

A note, the balance isn't usually updated after the withdrawal.  It's usually OK after the next bet, but you might have ad some checks so your not trying to withdraw over and over.   
sr. member
Activity: 345
Merit: 250
OK, so I have this...

Code:
if (balance) >= profittarget then
stop();
print(balance)
print("TARGET ACHIEVED!!!")
end

Which is useful to stop on the small chance I ever actually hit the target. Though it seems I am starting to get closer...I am forever hopeful. My goal is to not have a negative for my overall profit. My question is as I seem to be failing is what would I put for it to withdraw a certain amount once it hits target and then just carries on?

Thanks.
legendary
Activity: 1717
Merit: 1125
Thanks. Have some expirience with  PHP and python. Guess i will need to learn visual studio, net...

So if i use your github source code for dicebot and add:

Code:
 public override bool Divest(double Amount)
        {
           
            Parent.updateStatus(string.Format("Divest {0:0.00000000}", Amount));
            Instance.Divest(Amount,"");
            System.Threading.Thread.Sleep(1500);
            return true;
        }

will it do? Will i be able to use divest command in console.

Two kids, full time job and limited programing skills (more like none).

If you want to do this kind of thing, don't use dicebot. While it will technically be able to do it, it's not a good way to handle it. Create your own project using jdcapi and do it through there.

The code you added above won't work in the bot.
legendary
Activity: 1717
Merit: 1125
Hi.

Since Just Dice has no API is this possible using bot:

Invest all.

Wait 1 hour.

Divest all.

Withdraw some amount.

Yup. Automatic staking platform...

It is, but it's not really practical. and there's a better solution. I wrote a custom api for JD out of frustration for the lack of one, you can download the source and some example projects here , but remember that dooglus limits the number of invest transactions to 12 per 24 hour period, per user. So
legendary
Activity: 1007
Merit: 1000
Ohhh thats a nice script grendel :O care to post it in seuntjies script page so we can try it? Cheesy

Sure will.  Good luck.  It's not perfect and there might be better scripts but it's fun to play with different possibilities.

Edit: Actually, I should get permission from Chilly2K since he was really the brains of producing it.

Chilly2k, you okay with me posting the script?  I can name it something like "Pluscoup by chilly2k and grendel25". 

   Sorry missed your update, but yea, no problem go ahead and post it.  I like the idea of having all of the scripts in one place.  Smiley 
legendary
Activity: 2296
Merit: 1031
Ohhh thats a nice script grendel :O care to post it in seuntjies script page so we can try it? Cheesy

Sure will.  Good luck.  It's not perfect and there might be better scripts but it's fun to play with different possibilities.

Edit: Actually, I should get permission from Chilly2K since he was really the brains of producing it.

Chilly2k, you okay with me posting the script?  I can name it something like "Pluscoup by chilly2k and grendel25". 
legendary
Activity: 1007
Merit: 1000

Edited:  I think I might have it.  Time to play video games and come back to this later.  For now, have some drinks on me: c0170530df352d88dd09beb34400830e26c8288456695bc4bdbd1166599fb28e

   Thanks, The first toast is to your good luck...   Smiley
newbie
Activity: 26
Merit: 0
Ohhh thats a nice script grendel :O care to post it in seuntjies script page so we can try it? Cheesy
legendary
Activity: 2296
Merit: 1031
Can anyone help me with a pluscoup script?  

when you Lose: repeat previous bet

when you Win: increase by basebet size but only enough to maintain one basebet unit of profit per bet.  If you already have won the base unit your next bet continues to be the basebet.  And you never bet more than the amount required to total up to a profit

There are some tables here that show the progression:  http://www.outsidebet.net/oscars-grind-roulette-system

Code:

Bet amount    Outcome      Total Profit
1                      LOSS         -1
1                      LOSS         -2
1                      LOSS         -3
1                      LOSS         -4
1                      WIN           -3
2                      WIN            -1
2                      WIN             1

at the end, the player doesn't increase the bet amount beyond 2 because all that is required to accomplish a profit are 2 units.  The script has to know to reset after each cycle of 1 unit of profit

That's actually pretty easy, but your example doesn't match the website.  I think your final bet should have been a 3, because the prior bet was a win, and you have still not come into profit.

This is a start, but you need to figure out when do you stop?  

Code:

roundprofit = 0
basebet = 1
nextbet = basebet

function dobet()

roundprofit += currentprofit

   if (win) then
      if (roundprofit < 0) then
        nextbet = previousbet + basebet
      else
        nextbet = base
      end
   else
  
   end
    
end




Thank you Chilly2k.  The example I gave is from here:  http://www.roulette30.com/2014/01/oscars-grind-system-pluscoup-progression.html

It stops at a final bet of 2 because that's all that is required to be +1 unit.

For stopping:  I would just want to stop at a certain level of profit or a certain level of loss.  At the end of a +1 unit cycle I would want to continue betting until the gain or loss limit was reached.

I tried the script provided but it doesn't do pluscoup.

the += operator means greater than or equal to, right?  When does the "currentprofit" reset as a result of reaching +1 unit or how do we ensure we tell currentprofit to reset so that it restarts per pluscoup strategy?  Wouldn't this mean a periodic balance check/reset as well?

I've tried to expand on the script with this:

Code:
basebet = 0.00005000
nextbet = basebet
profitsincelastcycle = 0
roundprofit = 0

function dobet()

roundprofit += currentprofit
profitsincelastcycle += lastBet.profit

   if (win) then
      if (roundprofit < 0) then
        nextbet = previousbet + basebet
        print(profitsincelastcycle)
        print(nextbet)
      else
        nextbet = base
        print(profitsincelastcycle)
        print(nextbet)
      end
end
     if (!win) then
        nextbet = previousbet
        print(profitsincelastcycle)
        print(nextbet)
        end
     end
end



But I'm getting reports like this:

Code:
runsim(0.1,20)
Running 20 bets Simulation with starting balance of 0.1
-4E-06
4E-06
0
5E-05
5E-05
5E-05
0.0001
5E-05
5E-05
5E-05
0
5E-05
5E-05
5E-05
0
5E-05
-5E-05
5E-05
-0.0001
5E-05
-5E-05
0.0001
-0.00015
0.0001
-5E-05
0.00015
-0.0002
0.00015
-5E-05
0.0002
0.00015
5E-05
0.0001
5E-05
0.00015
5E-05
0.0001
5E-05
5E-05
5E-05
Betting Stopped!
Simulation finished. Bets:21 Wins:10 Losses:11 Balance:0.1001 Profit:0.0001 Worst Streak:140 Best Streak:40




This looks closer.  I'm still testing.  Thank you again for your help.  When I get this sorted I'll send some crypto your way.

Code:

basebet = 0.00005000
nextbet = basebet
profitsincelastcycle = 0
roundprofit = 0
chance = 49.5

function dobet()

roundprofit += currentprofit
profitsincelastcycle += lastBet.profit

   if (win) then
      if (roundprofit < 0) then
        nextbet = previousbet + basebet
                print ("WIN")
print(nextbet)
      else
        nextbet = base
         print ("WIN")
print(nextbet)
        end
end
     if (!win) then
        nextbet = previousbet
print ("LOSE")
print(nextbet)
        end
     end
end





    The += is shorthand.  
roundprofit += currentprofit   is the same as
roundprofit = roundprofit + currentprofit

   Also on the win path, when the roundprofit is not less then zero, (else part) you can add a a check if roundprofit > 0 then roundprofit = 0 end.  In that path the roundprofit is either 0 or greater then 0.  And zeroing it is like starting a new cycle.  

Also I'm guessing your running with a chance of 50? Of whatever chance gives you 2 for 1 winning?   At least thats what it would be for Red/Black in Roulette.  In that case before you increase the bet, you can add a check and see if the current bet (previousbet) will be enough to put you in profit.  If it will, just bet that amount, if not then bump the bet.  

Code:
   if (win) then
      if (roundprofit < 0) then
        if ((previousbet + roundprofit) > 0) then
           nextbet = previousbet
        else      
           nextbet = previousbet + basebet
        end
                print ("WIN")
print(nextbet)
      else
        nextbet = base
         print ("WIN")
print(nextbet)
        if (roundprofit > 0) then
           roundprofit = 0
           end
        end
end


I think your last cycle variable should be exactly the same as roundprofit.  You getting the same info from a different place.  

Edited:  I think I might have it.  Time to play video games and come back to this later.  For now, have some drinks on me: c0170530df352d88dd09beb34400830e26c8288456695bc4bdbd1166599fb28e
Pages:
Jump to: