Pages:
Author

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

newbie
Activity: 23
Merit: 1
Unfortunate. Is that something that could be implemented in future releases or is it just not possible?

not saying no, but not saying yes either. There's a lot of other development that needs to be done before I will consider nicetohaves like that.

Gotcha. If you don't mind me asking, what are you looking to further develop in upcoming releases?
legendary
Activity: 1717
Merit: 1125
Unfortunate. Is that something that could be implemented in future releases or is it just not possible?

not saying no, but not saying yes either. There's a lot of other development that needs to be done before I will consider nicetohaves like that.
newbie
Activity: 23
Merit: 1
How can I print colors in the console?

If I want this...

Code:
print("Session Profit - "..profit)

to output this

Session Profit - 999999

What do I need to add to the print command?

You can't

Unfortunate. Is that something that could be implemented in future releases or is it just not possible?
legendary
Activity: 1717
Merit: 1125
How can I print colors in the console?

If I want this...

Code:
print("Session Profit - "..profit)

to output this

Session Profit - 999999

What do I need to add to the print command?

You can't
newbie
Activity: 23
Merit: 1
How can I print colors in the console?

If I want this...

Code:
print("Session Profit - "..profit)

to output this

Session Profit - 999999

What do I need to add to the print command?
jr. member
Activity: 53
Merit: 2
Okay this is a great bot and help me a lot for the things that i was trying to do manually.As a newb i play around a bit with programmer mode so far i could do something with my capability but i stuck now Smiley I am looking to get an help from you guys with script.Here what i want to do ;

Let's say my dices goes  for  max. 30x red so instead of prerolls i want to have it like ;

for the first 10 red i want to use xx of my balance for martingale.

If dice still gives me a red for the next 10 (starts with 11th red) it should use xx of my balance again. (amount which covers all lost from previous 10 red )

If still no greed goes to last passage and for last 10 red it again uses xx of my balance. (amount which covers all lost from first 20 reds and gives me profit for the next 10)

If still no green it shouldnt go for 31th bet instead starts over.


I know how to use  this  ==>   nextbet=balance*(percentage/100.0)  for part of my current script but this one needs lots more to do i guess.

i am sure this is possible to do but almost impossible for a beginner.I will be glad if anyone helps me with that , cheers!
legendary
Activity: 1717
Merit: 1125
just downloaded the new dice bot version and after install , i head on to login area but i cant see the password box  .  what are written is only : username , api key and 2fa  .  i input my username only and it says login failed  . i dont set 2fa but do i need to provide the api key ? i dont know what is it , but i scroll down on the pd (casino ) webpage  , i cant see any api on there  . do you know where to get it  ? hmmm ...
https://bot.seuntjie.com/faqs.aspx#faq25 is a good resource to read through.

leave the 2FA box blank if you have not enabled 2FA.


When logging in with an API key, 2fa is typically not required.
HCP
legendary
Activity: 2086
Merit: 4361
... i dont set 2fa but do i need to provide the api key ? i dont know what is it , but i scroll down on the pd (casino ) webpage  , i cant see any api on there  . do you know where to get it  ? hmmm ...
If "PD" == Primedice... then on the primedice website, you need to go into "Settings -> Tokens"

Then you need to click the "reveal" button... this will show you your "API Key"... you should then be able to login through the dicebot using just your Username + API Key... leave the 2FA box blank if you have not enabled 2FA.


full member
Activity: 1750
Merit: 118
just downloaded the new dice bot version and after install , i head on to login area but i cant see the password box  .  what are written is only : username , api key and 2fa  .  i input my username only and it says login failed  . i dont set 2fa but do i need to provide the api key ? i dont know what is it , but i scroll down on the pd (casino ) webpage  , i cant see any api on there  . do you know where to get it  ? hmmm ...
HCP
legendary
Activity: 2086
Merit: 4361
how to martine last "n"times loose or win result during "x" bets?
Unfortunately, I can not decipher what it is that you are asking here. Can you please explain more clearly what you are wanting to do? Huh

Perhaps if you included some examples of what you'd like, it might be helpful.
newbie
Activity: 1
Merit: 0
how to martine last "n"times loose or win result during "x" bets?

legendary
Activity: 1717
Merit: 1125
Hello.

I want to ask if you can add to bot (Im interested in website freebitco.in) sth like array with Hi Low options?

I mean i want to make autobet for example: hi, hi, low, hi, low, low, low, hi, low which will be fully random. I have my own strategy.

Is it possible?

Thanks

If you want to use random high/low, you don't need to use an array. Here's a sample script that bets a random amount at a random chance with random high/low: https://bot.seuntjie.com/scripts.aspx?id=18

Take out the part that you need, be sure to read through the tutorials if you're not familiar with programming: https://bot.seuntjie.com/ProgrammerMode.aspx
but its random with random

I need martignale + random choice for f.e. 10000 hi/lo bets, also I need it for freebitco.in

It's an example. See the highlighted text in the quote from my previous post.
newbie
Activity: 10
Merit: 0
Hello.

I want to ask if you can add to bot (Im interested in website freebitco.in) sth like array with Hi Low options?

I mean i want to make autobet for example: hi, hi, low, hi, low, low, low, hi, low which will be fully random. I have my own strategy.

Is it possible?

Thanks

If you want to use random high/low, you don't need to use an array. Here's a sample script that bets a random amount at a random chance with random high/low: https://bot.seuntjie.com/scripts.aspx?id=18

Take out the part that you need, be sure to read through the tutorials if you're not familiar with programming: https://bot.seuntjie.com/ProgrammerMode.aspx
but its random with random

I need martignale + random choice for f.e. 10000 hi/lo bets, also I need it for freebitco.in
legendary
Activity: 1717
Merit: 1125
Hello.

I want to ask if you can add to bot (Im interested in website freebitco.in) sth like array with Hi Low options?

I mean i want to make autobet for example: hi, hi, low, hi, low, low, low, hi, low which will be fully random. I have my own strategy.

Is it possible?

Thanks

If you want to use random high/low, you don't need to use an array. Here's a sample script that bets a random amount at a random chance with random high/low: https://bot.seuntjie.com/scripts.aspx?id=18

Take out the part that you need, be sure to read through the tutorials if you're not familiar with programming: https://bot.seuntjie.com/ProgrammerMode.aspx
newbie
Activity: 10
Merit: 0
Hello.

I want to ask if you can add to bot (Im interested in website freebitco.in) sth like array with Hi Low options?

I mean i want to make autobet for example: hi, hi, low, hi, low, low, low, hi, low which will be fully random. I have my own strategy.

Is it possible?

Thanks
legendary
Activity: 1717
Merit: 1125
btw Seuntjie, what kind of "built-in variable" do not working at simulation?! i know there is something wrong. like example simulation dont use "profit from stats statesment" you need to write manual "own roundprofit" to use that kind of things, but what else?! simulation using "currentstreak"? etc or everthing are need to be written by "own"?!

my target is to say, simulation dont use currentstreak right or not at all in it, can be?!

All internal variables should be available in the simulations.
full member
Activity: 319
Merit: 100
btw Seuntjie, what kind of "built-in variable" do not working at simulation?! i know there is something wrong. like example simulation dont use "profit from stats statesment" you need to write manual "own roundprofit" to use that kind of things, but what else?! simulation using "currentstreak"? etc or everthing are need to be written by "own"?!

my target is to say, simulation dont use currentstreak right or not at all in it, can be?!
full member
Activity: 319
Merit: 100
how I can simple make something:

if currentstreak "every number" then
do something
end

11111222223333344444

for example every 5 streak next 5 streak made nextbet = previousbet + 0.00000001
Do you mean every 5 loss streak? 5 win streak? or something else?

Personally, I would do something like:
Code:
myLossStreakCounter = 0
streakLimit = 5

function dobet()
...
  if (!win) then
    -- If it was a loss, increment the counter
    myLossStreakCounter = myLossStreakCounter + 1
  end
  ...
  if myLossStreakCounter == streakLimit then
    -- reached the streak limit, increase bet and reset counter
    nextbet = previousbet + 0.00000001
    myLossStreakCounter = 0
  end
  ...

If should be relatively obvious how the code can be modified to be used for a Win streak


Quote
I dont understand, last period when bot was updates with this "blue words" in code box, they dont like = simbol.

'then' expected, got '='
This error suggests that you have a syntax error in your code. The bot thinks you're trying to use an "if something then" command, but it can't find the "then" part of the command before it finds an "=".

Usually it shows a line number where the error occurred. Check near there for incorrect code... failing that, you'd need to post the code for others to be able to debug it properly.

thanks!
HCP
legendary
Activity: 2086
Merit: 4361
I'm playing with the idea of incrementally increasing my bet based on my balance and as the balance increases the increment of the bet gets smaller. In the code below I have this working, but I'm thinking that there must be an easier or shorter way to do this with variables. If anyone has any suggestions I'd appreciate it.
About all you can do in this scenario is refactor your code slightly to avoid the script having to process every individual "if" statement by using "elseif's"... once it finds the "matching" elseif, it will drop out of the if and move on:
Code:
if balance < 0.00025000 then
  basebet = 0.00000001
elseif balance < 0.00150000 then
  basebet = (balance / 25000)
elseif balance < 0.00300000 then
  basebet = (balance / 50000) + 0.00000003
elseif balance < 0.00600000 then
  basebet = (balance / 100000) + 0.00000006
elseif balance < 0.01000000 then
  basebet = (balance / 200000) + 0.00000009
else
  basebet = (balance / 500000) + 0.00000012
end


As for using variables, I don't think that it would be "easier" or "shorter"... as you have several factors in play (ie. the divisor and the increment) which need to be modified for each "step" in your system. Potentially you could set up some arrays to hold these, like:
Code:
divisor = {25000,50000,100000,200000,50000}
increment = {0,0.00000003,0.00000006,0.00000009,0.00000012}

basebet = (balance / divisor[x]) + increment[x]

But then you're still left with trying to derive the index into those arrays... and then it gets a bit more complicated... like this:
Code:
step = 1
bal = {0.00025, 0.0015, 0.003, 0.006, 0.01, 999999999}
divider = {1, 25000, 50000, 100000, 200000, 500000}
increment = {0, 0, 0.00000003, 0.00000006, 0.00000009, 0.00000012}

while bal[step] < balance do
  step = step + 1
end

if step == 1 then
  basebet = 0.00000001
else
  basebet = (balance / divider[step]) + increment[step]
end
NOTE: This code appears to work... but I haven't tested it in the bot.
newbie
Activity: 23
Merit: 1
I'm playing with the idea of incrementally increasing my bet based on my balance and as the balance increases the increment of the bet gets smaller. In the code below I have this working, but I'm thinking that there must be an easier or shorter way to do this with variables. If anyone has any suggestions I'd appreciate it.

Code:
basebet=.00000001

if balance>.00025000 and balance<.00150000 then
    basebet = balance/25000
end

if balance>=.00150000 and balance<.00300000 then
    basebet = (balance/50000)+.00000003
end

if balance>=.00300000 and balance<.00600000 then
    basebet = (balance/100000)+.00000006
end

if balance>=.00600000 and balance<.01000000 then
    basebet = (balance/200000)+.00000009
end

if balance>=.01000000 then
    basebet = (balance/500000)+.00000012
end

Pages:
Jump to: