Pages:
Author

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

legendary
Activity: 1717
Merit: 1125
How to enable debugInfo() ?


There's no debuginfo function. If you want to debug your code, print your  variables etc to the console. Do it old school. Any syntax or runtime errors that LUA encounters are printed to the console. Logic errors you need to figure out yourself.
newbie
Activity: 42
Merit: 0
How to enable debugInfo() ?
full member
Activity: 140
Merit: 100
Hey guys, I have a very detailed microsoft excel (google sheets) file that I have been working on for Bustabit.  You can plug in specific numbers and see what your profit, cost, total spent, etc are so you can find a sweet spot for gambling.  I payed someone to make me a private script for that website but the type of betting I do takes ~24-48 hours to profit from and the script/site resets and crashes my script.

I need someone who is willing to help out make me a similar script for the dicebot.  If you have some free time and want to help please let me know I would really appreciate it and you can have the excel file yourself in return for compensation. It shouldn't take long at all, I can show you the old script I had, and the excel file via google docs so you can see what I am talking about.

Thanks again all. I know I am new here but I was directed bere by Seuntjie

if you want to pm me or message me here is fine.

we could go in discord and chat if you are willing to help also since it's easier Smiley

What do you mean exactly that BustaBit resets every day?
newbie
Activity: 42
Merit: 0
how to use presetlist on progammer mode?
legendary
Activity: 1007
Merit: 1000
Guys, is there a way to use the amount written in withdraw(amount, address) in a if statement?

   Yes, Amount is just telling you the first parm is the amount.  Same with address

X = balance
BTCaddress  = my BTC address

if x > 10 then
   withdraw(x-9,BTCaddress)     
end

if you balance is greater then 10, withdraw an amount that leaves you a balance of 9. 
newbie
Activity: 42
Merit: 0
Guys, is there a way to use the amount written in withdraw(amount, address) in a if statement?
legendary
Activity: 1717
Merit: 1125
Is there any way to get the bot to return the client and server seed / hash used for bets?

You can use the lastBet variable, which is of type Bet. See the UML at the bottom of this page: https://bot.seuntjie.com/programmermode.aspx
full member
Activity: 140
Merit: 100
Is there any way to get the bot to return the client and server seed / hash used for bets?
legendary
Activity: 1717
Merit: 1125
this program is very good, but i dont know how to use there mode like martiangle etc..

Take a look at the getting started guide: https://bot.seuntjie.com/gettingstarted.aspx
hero member
Activity: 1470
Merit: 502
this program is very good, but i dont know how to use there mode like martiangle etc..
newbie
Activity: 42
Merit: 0
Is there way to do this?

if (X == 0) then
wait 10 bets
do something
end
 

  No, your script has to end (return before the next bet gets placed.   This is more what you want.

if (X == 0) then
bets += 1
   if (bets > 9) then
      do something
   end
end

Make sure you reset bets to zero at some point, or that check will only work the first time. 

 thanks
legendary
Activity: 1007
Merit: 1000
Is there way to do this?

if (X == 0) then
wait 10 bets
do something
end
 

  No, your script has to end (return before the next bet gets placed.   This is more what you want.

if (X == 0) then
bets += 1
   if (bets > 9) then
      do something
   end
end

Make sure you reset bets to zero at some point, or that check will only work the first time. 
newbie
Activity: 42
Merit: 0
Is there way to do this?

if (X == 0) then
wait 10 bets
do something
end
 
hero member
Activity: 896
Merit: 1000
Posting to save this to try on bitvest.
newbie
Activity: 1
Merit: 0
Play now  Wink
Head Soccer
newbie
Activity: 1
Merit: 0
hello.
 I used the default settings.
Chance 49.5
Multiply 2
As shown in the figure (indicated bet) instead of 2x multiples there is 4x multiple. This a bug?

Image: (I can not embed.)  Huh

https://s19.postimg.org/504616d37/dicebot.jpg

http://www.rajce.net/f1114187784

I used also

nextbet = 0.0000001
enablezz=true
enablesrc=true
percentage=0.00038 -- the percentage of your balance that will make up your base bet
function dobet()
if win then
nextbet = balance*(percentage/100)
else
nextbet = martingale(win)
end
end


Please help me.

newbie
Activity: 42
Merit: 0
right now im having a problem with X += 1, i put

Code:
  if (previousbet = basebet * 3 * 12 and win) then
   X += 1
   end

bit it won't add the value to the variable, why?


 Are you sure the variable is X and not x.  

 Add print(X) after that line to see what the value is.  

I tried that, keeps 0 (that's the value I declared).

   I was not clear.  By after that line I mean

Code:
  if (previousbet = basebet * 3 * 12 and win) then
   X += 1
   print(X)
   end

Just in case you tried

Code:
  if (previousbet = basebet * 3 * 12 and win) then
   X += 1
   end
   print(X)

I have a feeling your if statement is never true and so your never doing the X+=1 code.  

You wouldn't happen to have this in the losing path.  IE usually the else side of the "if win"  and your checking for a win.  




it is true, cause i wrote the same block but with (!win) and works, just with (win) it doesn't
legendary
Activity: 1007
Merit: 1000
right now im having a problem with X += 1, i put

Code:
  if (previousbet = basebet * 3 * 12 and win) then
   X += 1
   end

bit it won't add the value to the variable, why?


 Are you sure the variable is X and not x. 

 Add print(X) after that line to see what the value is. 

I tried that, keeps 0 (that's the value I declared).

   I was not clear.  By after that line I mean

Code:
  if (previousbet = basebet * 3 * 12 and win) then
   X += 1
   print(X)
   end

Just in case you tried

Code:
  if (previousbet = basebet * 3 * 12 and win) then
   X += 1
   end
   print(X)

I have a feeling your if statement is never true and so your never doing the X+=1 code. 

You wouldn't happen to have this in the losing path.  IE usually the else side of the "if win"  and your checking for a win. 

 




legendary
Activity: 1717
Merit: 1125
right now im having a problem with X += 1, i put

Code:
  if (previousbet = basebet * 3 * 12 and win) then
   X += 1
   end

bit it won't add the value to the variable, why?


 Are you sure the variable is X and not x. 

 Add print(X) after that line to see what the value is. 

I tried that, keeps 0 (that's the value I declared).

it's nearly impossible to tell you whats wrong without seeing the context the code is being used in.

This works:
Code:
x =0
x += 1
x += 1
x += 1
print(x)

So there's nothing wrong with the code you posted, but if you use that inside of dobet, x will always be 3, which might not be what you want.
newbie
Activity: 42
Merit: 0
right now im having a problem with X += 1, i put

Code:
  if (previousbet = basebet * 3 * 12 and win) then
   X += 1
   end

bit it won't add the value to the variable, why?


 Are you sure the variable is X and not x. 

 Add print(X) after that line to see what the value is. 

I tried that, keeps 0 (that's the value I declared).
Pages:
Jump to: