thenerdyone314
Jr. Member
Offline
Activity: 47
Merit: 6
|
|
August 22, 2020, 02:57:47 AM |
|
Yeah... I'm an idiot... but, in my defense, I've been doing mostly Python programming lately!! The correct the syntax for "combining" multiple outputs for a print() statement in LUA is ".." not "," Try: function dobet() print("Roll: " .. lastBet.Roll) if (lastBet.Roll < 3.3 or lastBet.Roll > 96.7) then chance = 49.1089 end ...
Lol, i probably could have just looked up how to do a print function, but it all looked good to me so I didn't. Lemme try that one. So I was fortunate to hit both sides withing a few bets of each other and all within a couple bets of starting. Here's what I got: Betting 0.00046871885 at 97.2549% chance to win, high Roll: 0.775 Betting 0.0009374377 at 49.1089% chance to win, high Roll: 91.807 Betting 0.000469670937109375 at 97.2549% chance to win, high Betting Stopped! Roll: 96.689 Betting 0.00046970763046875 at 97.2549% chance to win, high You can see that on the low end (first roll there), it works fine and the payout changes. But the last shown roll is 96.689 and should have made the next bet go to the 49%, but it didn't
|
|
|
|
|
|
|
|
|
"This isn't the kind of software where we can leave so many unresolved bugs that we need a tracker for them." -- Satoshi
|
|
|
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
|
|
|
|
HCP
Legendary
Offline
Activity: 2086
Merit: 4316
<insert witty quote here>
|
|
August 22, 2020, 09:52:55 AM |
|
You'll have to show your full script... there is obviously something elsewhere in your script which is overriding your chance setting that is done in the if (< 3 or > 97) block...
There is no way it should have reset to 97% unless there is another code branch setting the chance somwhere.
|
|
|
|
thenerdyone314
Jr. Member
Offline
Activity: 47
Merit: 6
|
|
August 22, 2020, 12:57:17 PM |
|
You'll have to show your full script... there is obviously something elsewhere in your script which is overriding your chance setting that is done in the if (< 3 or > 97) block...
There is no way it should have reset to 97% unless there is another code branch setting the chance somwhere.
Everything else seemed to run fine, other than right there. But here's my full thing: basebet = balance / 1024 nextbet = basebet chance = 97.2549
function dobet() if (lastBet.Roll < 3.3 or lastBet.Roll > 96.7) then chance = 49.1089 end if !win then nextbet = previousbet*2 else nextbet = balance / 1024 chance = 97.2549 end
end
I know it's a super complex code, but I just don't see where else it would be going wrong.
|
|
|
|
thenerdyone314
Jr. Member
Offline
Activity: 47
Merit: 6
|
|
August 22, 2020, 01:23:15 PM |
|
You'll have to show your full script... there is obviously something elsewhere in your script which is overriding your chance setting that is done in the if (< 3 or > 97) block...
There is no way it should have reset to 97% unless there is another code branch setting the chance somwhere.
Maybe it would be easier to state my end goals for this. I figured I would try to solve each problem as I try to implement it, but we'll see if this clears things up. I want to run high on 97.2% chance until it rolls under 3 or over 97. If it rolls under 3, it should change to 49% chance and do a basic martingale until a win, which would reset it. If it rolls over 97 I want it to do the same thing, but switch it to rolling low instead. Here's thejumbled c++/lua logic I could come up with for that but am still trying to implement. i can't seem to figure out how to do branches in the if statement like this in LUA: dobet
if lastBet < 3.3 { chance = 49.5; while (!win) {nextbet = previousbet*2;} } elseif lastBet > 97.6 {switch low; chance = 49.5; while (!win) {nextbet = previousbet*2;} } else { nextBet = balance / 512;}
|
|
|
|
HCP
Legendary
Offline
Activity: 2086
Merit: 4316
<insert witty quote here>
|
|
August 22, 2020, 08:33:15 PM |
|
basebet = balance / 1024 nextbet = basebet chance = 97.2549
function dobet() if (lastBet.Roll < 3.3 or lastBet.Roll > 96.7) then chance = 49.1089 end if !win then nextbet = previousbet*2 else nextbet = balance / 1024 chance = 97.2549 <-- This is where it is resetting your chance end
end
Looking at your code... the only time it will end up as chance=49 is when the lastBet.Roll was <3.3 or > 96.7 AND it was a loss... The "if !win then... else..." block you have means that if it was a win... it sets nextbet = balance /1024 and then chance is set to 97.2549. So currently, will only work if it is < 3.3... as you're betting "high" to start by default, if the roll is over 96.7 you'll win and the chance won't change. Try something like this: basebet = balance / 1024 nextbet = basebet chance = 97.2549
function dobet() if (!win) then -- loss, martingale nextbet = previousbet * 2 else -- win, reset bethigh = true nextbet = balance / 1024 chance = 97.2549 end if (lastBet.Roll < 3.3) then bethigh = true chance = 49.1089 elseif (lastBet.Roll > 96.7) then bethigh = false chance = 49.1089 end print("LastRoll: " .. lastBet.Roll) print("Chance: " .. chance) print("bethigh: " .. tostring(bethigh)) end
All the "ususal disclaimers" apply... I haven't thoroughly tested this, so run at your own risk Also, based on your pseudocode, I'd suggest you read this: https://steemit.com/dicebot/@seuntjie/dicebot-programmer-mode-tutorial-02-processIt gives you an idea of how the "flow" works... you can't run "innerloops" like the while() statement you have. Essentially, after a bet is placed and result received, dobet() is called... At this point, you can then process the received result and make changes to your bet amount, high/low, chance etc... then when you get to the end of the dobet() function, a bet with the new parameters is sent to the server and the bot waits for the new result. Again, once the result is received, dobet() runs again... and the process repeats until the script is stopped (manually, by stop() command in script, or an error is received from server). Basic overview of script lifecycle Here's a small overview of the lifecycle of the script, how and in which order everything is executed
1) bot starup - loads basic functions (withdraw, invest, tip, stop, runsim etc) 2) start() or runstim() is executed. the script in the code box is executed once. Thus functions are registered, variables are created and assigned. 3) place starting bet: the bot places the starting bet: no script executed 4) bet result returned: 4.1) variables (balance, profit, wins, lossess etc) are updated. 4.2) dobet() is executed. 4.3) local variables are updated to new varibable from the bot (chance, nextbet, high) 5) next bet is placed. On bet result, go back to step 4.
|
|
|
|
thenerdyone314
Jr. Member
Offline
Activity: 47
Merit: 6
|
|
August 22, 2020, 09:30:17 PM Last edit: August 23, 2020, 01:16:04 PM by thenerdyone314 |
|
Looking at your code... the only time it will end up as chance=49 is when the lastBet.Roll was <3.3 or > 96.7 AND it was a loss...
The "if !win then... else..." block you have means that if it was a win... it sets nextbet = balance /1024 and then chance is set to 97.2549.
So currently, will only work if it is < 3.3... as you're betting "high" to start by default, if the roll is over 96.7 you'll win and the chance won't change.
I appreciate all the help! I will try to implement that and see how it runs. Much appreciated! EDIT: Seems to do exactly what I wanted it to do, but I'm still not rich :/ (that's a joke) Thanks again for all the help HCP.
|
|
|
|
SM23031997
|
|
August 27, 2020, 06:53:27 AM |
|
I'm unable to login into Primedice, is there any ongoing issue with the website?
|
|
|
|
dre1982
Sr. Member
Offline
Activity: 770
Merit: 284
★Bitvest.io★ Play Plinko or Invest!
|
|
August 27, 2020, 07:33:02 AM |
|
I'm unable to login into Primedice, is there any ongoing issue with the website?
Where you able to log in before or is it your first try?
|
|
|
|
PedroJMelo
Newbie
Offline
Activity: 532
Merit: 0
|
|
September 01, 2020, 01:57:47 AM |
|
I'm unable to login into Primedice, is there any ongoing issue with the website?
same problem here , primedice and stake stopped : "we do not operate this country"m i got this on dicebot, any issue with german vps?
|
|
|
|
seuntjie (OP)
Legendary
Offline
Activity: 1717
Merit: 1125
|
|
September 01, 2020, 07:53:13 AM |
|
I'm unable to login into Primedice, is there any ongoing issue with the website?
same problem here , primedice and stake stopped : "we do not operate this country"m i got this on dicebot, any issue with german vps? Can you access the website from your browser on the VPS?
|
|
|
|
lebregone
Jr. Member
Offline
Activity: 298
Merit: 5
|
|
September 01, 2020, 09:29:29 AM |
|
As long as the response from the forum members will be positive like they actually earn even a small profit then I will try to download your application and will likely to start from a small amount. In my side, I can say that it is a little bit risky as I am not that familiar on how it operates but I think I can handle it as long as your application is safe. And with regards to primedice and stake issues, does your team already looking to it?
|
|
|
|
HCP
Legendary
Offline
Activity: 2086
Merit: 4316
<insert witty quote here>
|
|
September 01, 2020, 09:37:54 PM |
|
As long as the response from the forum members will be positive like they actually earn even a small profit then I will try to download your application and will likely to start from a small amount. In my side, I can say that it is a little bit risky as I am not that familiar on how it operates but I think I can handle it as long as your application is safe.
You realise that the dicebot is NOT a "guaranteed to make you win" type system right? It is just a tool, like a web browser... that lets you automate certain aspects of your betting and allows you to create or run custom scripts so you can try various "systems" or strategies... It is NOT guaranteed to win, it does NOT increase your chances of winning etc... the odds are exactly the same as if you used the site manually through a web browser. Anyone that tells you otherwise, is a fool... and if they're trying to sell you a "winning" script, they're a scammer.
|
|
|
|
PedroJMelo
Newbie
Offline
Activity: 532
Merit: 0
|
|
September 01, 2020, 11:12:43 PM |
|
I'm unable to login into Primedice, is there any ongoing issue with the website?
same problem here , primedice and stake stopped : "we do not operate this country"m i got this on dicebot, any issue with german vps? Can you access the website from your browser on the VPS? i checked it, stake and primedice banned Germany =/ thanks seuntjie, i need a new vps haha
|
|
|
|
abel1337
Legendary
Offline
Activity: 2464
Merit: 1145
FOCUS
|
|
September 02, 2020, 05:16:47 AM |
|
As long as the response from the forum members will be positive like they actually earn even a small profit then I will try to download your application and will likely to start from a small amount. In my side, I can say that it is a little bit risky as I am not that familiar on how it operates but I think I can handle it as long as your application is safe.
You realise that the dicebot is NOT a "guaranteed to make you win" type system right? It is just a tool, like a web browser... that lets you automate certain aspects of your betting and allows you to create or run custom scripts so you can try various "systems" or strategies... It is NOT guaranteed to win, it does NOT increase your chances of winning etc... the odds are exactly the same as if you used the site manually through a web browser. Anyone that tells you otherwise, is a fool... and if they're trying to sell you a "winning" script, they're a scammer. I think he is aware of the risk of this dice bot, It's a common-sense that a bot can't lead you in a sure victory just by using it, It also requires knowledge and strategy that's why it is called a tool. It's meant to be used for more proficiency. Bots have the same purpose that is to help the gambler to help them with their rolls and bot makers are doing something to help the user like this bot, It has charts in it for the user to easily see the data of his session also built-in strategy is also nice.
|
|
|
|
seuntjie (OP)
Legendary
Offline
Activity: 1717
Merit: 1125
|
|
September 03, 2020, 06:40:31 AM |
|
I think he is aware of the risk of this dice bot, It's a common-sense that a bot can't lead you in a sure victory just by using it, It also requires knowledge and strategy that's why it is called a tool. It's meant to be used for more proficiency.
Bots have the same purpose that is to help the gambler to help them with their rolls and bot makers are doing something to help the user like this bot, It has charts in it for the user to easily see the data of his session also built-in strategy is also nice.
Common sense isn't common. You have no idea how many emails I get from people asking me which settings or scripts to use to always make profit, to guarantee profit. How to get rich with the bot etc. Every opportunity for me or someone else to remind people that the bot cannot do that is a good time to do so.
|
|
|
|
HCP
Legendary
Offline
Activity: 2086
Merit: 4316
<insert witty quote here>
|
|
September 03, 2020, 10:19:53 PM |
|
Common sense isn't common.
Preach brother! You have no idea how many emails I get from people asking me which settings or scripts to use to always make profit, to guarantee profit. How to get rich with the bot etc.
Or people who don't understand why they can get 20 losses in a row on a 50% chance etc...
|
|
|
|
SM23031997
|
|
September 05, 2020, 11:02:58 AM |
|
I'm unable to login into Primedice, is there any ongoing issue with the website?
Login worked after updating the application to the latest version. I think he is aware of the risk of this dice bot, It's a common-sense that a bot can't lead you in a sure victory just by using it, It also requires knowledge and strategy that's why it is called a tool. It's meant to be used for more proficiency.
Bots have the same purpose that is to help the gambler to help them with their rolls and bot makers are doing something to help the user like this bot, It has charts in it for the user to easily see the data of his session also built-in strategy is also nice.
Common sense isn't common. You have no idea how many emails I get from people asking me which settings or scripts to use to always make profit, to guarantee profit. How to get rich with the bot etc. Every opportunity for me or someone else to remind people that the bot cannot do that is a good time to do so. For people looking for guaranteed profit "Go start your gambling business."
|
|
|
|
AceFairy
Newbie
Offline
Activity: 100
Merit: 0
|
|
September 13, 2020, 11:36:05 AM |
|
hello! nice to meet you!
may i, please, ask for advice? how do we stop bot if it struck a losing streak of 10, ie, currentstreak = -10 and we need to stop it only when it wins [more losing steps may follow after hitting -10] above the original balance when it was positive?
my sample didn't work: if currentstreak <= -10 and win then stop() alarm() print("stopping after bad streak") end
|
|
|
|
HCP
Legendary
Offline
Activity: 2086
Merit: 4316
<insert witty quote here>
|
|
September 13, 2020, 09:40:10 PM Last edit: September 13, 2020, 09:54:14 PM by HCP |
|
how do we stop bot if it struck a losing streak of 10, ie, currentstreak = -10 and we need to stop it only when it wins [more losing steps may follow after hitting -10] above the original balance when it was positive?
my sample didn't work: if currentstreak <= -10 and win then stop() alarm() print("stopping after bad streak") end
Answered over in the programming thread, as that is the more appropriate place for this discussion...
|
|
|
|
seuntjie (OP)
Legendary
Offline
Activity: 1717
Merit: 1125
|
|
September 14, 2020, 07:44:15 AM |
|
DiceBot version 3.4.11 is available to download from https://bot.seuntjie.com/botpage.aspxChange LogNew FeaturesNone ChangesBitsler Currencies Cryptogames currencies 999dice error wording PD Currencies Stake Currencies Windice Currencies Bug FixesBitvest resetseed Programmer mode withdraw amount fix, Programmer mode doesn't start without nextbet and chance being set duckdice fix Wolfbet decimal rounding
|
|
|
|
|