Hi,
Thanks for creating such a lightweight and straightforward bot. So far, this is is one of my favorites.
If it's not too much to ask, may I request a bit of help on getting a modification compiled?
Here's what I was trying to make happen:
I need to be able to set a percentage in place of the base bet in the string arguments so that as the balance increases, so will the base bet in proportion to the balance.
Ex. My bankroll is .01BTC so the percent I would set is 0.00152590218966964% setting my base bet to 0.00000153 approx and giving me around 16 maximum bets in the martingale (x2) strategy.
I looked through the code and it seems simple enough. I was thinking that a baseBetPercent variable (in place of the original baseBet) could store this percent value i was referring to and the nextBetAmount could be set to something like nextBetAmount = (CurrentBalance * baseBetPercent); or something to that extent.
I have a little background in programming so I thought id try to recompile it myself however I am unfamiliar with the eclipse compiler as well as the primedice variable for the users current balance.
I'm afraid I really need to ask your help on either doing a quick rewrite and recompile, or pointing me in the right direction so I could try it myself. I'm thinking however, that it might actually be easier for you to do the first suggestion as opposed to teaching me what to do. Regardless, whatever you are comfortable doing, I'd really appreciate it.
Again, great program as is, I hope I'm not asking too much.
Respectfully,
Blayzer
I think I managed a crude way to do it. Here's what I did.
I added
startBal = userStats.getDouble("balance");after the line
meStats.parseStats(userStats);
and I changed the original nextBetAmount to
nextBetAmount = Math.round(startBal * baseBet);then I changed baseBet from int to double and used that variable as the multiplier I wanted. In this case 0.0000152590218966964
I exported to an executable jar and named it primebot2.jar and to run, I type in:
java -jar primebot2.jar myuser mypass 0.0000152590218966964 49.5 2.0 99999999
so far it seems to be working fine although I'm not sure if the variable startBal will update after every bet. I have a feeling it will only set it when it logs on...
perhaps there is a way to do it so that the variable updates after every bet? I'm hoping it doesnt slow down the bot significantly because speed is the beatu of this one.
Let me know how I can improve it please.
Thanks!