houseworx
|
|
February 22, 2018, 01:13:45 PM |
|
Hey! I want to know, if i have in script very many "if... then... end" lines bot and script are start to work slower and slower, with every added new "if" line. I can re-edit any "if line" with change it to: (sample) if .... then .... end
if .... then .... end to if .... then ....
elseif .... then .... end and it can dramatically increase back betting speed what my pc/internet/site can give me with simple short script?! so basic question is, if i can change every if/end line, with very very long, if/elseif/elseif lines(with only one end in the end) and it can dramatically increase betting speed?!
|
|
|
|
seuntjie
Legendary
Offline
Activity: 1717
Merit: 1125
|
|
February 22, 2018, 10:07:23 PM |
|
Hey! I want to know, if i have in script very many "if... then... end" lines bot and script are start to work slower and slower, with every added new "if" line. I can re-edit any "if line" with change it to: (sample) if .... then .... end
if .... then .... end to if .... then ....
elseif .... then .... end and it can dramatically increase back betting speed what my pc/internet/site can give me with simple short script?! so basic question is, if i can change every if/end line, with very very long, if/elseif/elseif lines(with only one end in the end) and it can dramatically increase betting speed?!Imagine you have a stack of papers, each with a number on, What would be faster? 1: Looking at each page seperately to see if the number on it is 5 and take out all of the numbers with a 5 on it. 2: Looking at each page until you find a 5 and then discarding the rest of the stack. When you're doing if...then...end repeatedly, you're looking at every page every time. When you're doing elseif, you look until you find one and skip the rest, so it will be faster. But now, what are your needs. Do you need ALL of the pages withe the number 5 on it, or do you need one? How you write it depends on your script. It doesn't help you have a lot of elseifs if some of them are for setting bet amounts and others are for setting chance or high/low, because then you might be skipping important parts of your script. Usually when someone has a whole lot of its, there's usually a better way of doing it as well. For instance, instead of checking for currentstreak==5, or currentstreak==10, or currentstreak==15, or currentstreak==20 etc, you can check whether currentstreak%5==0. This single if statement can replace a whole series of if statements. tldr; it's impossible to tell you what would be best and fastest for your script without seeing the script, but it sounds like there might be a better way to do whatever you're doing.
|
|
|
|
marlboroza
Legendary
Offline
Activity: 1932
Merit: 2272
|
|
March 05, 2018, 01:49:20 PM |
|
Can someone help me with this: As I am not programmer I was hopping someone can point me in right direction but I don't really understand this. I need something for this settings: payout 2.3X or 2.4X, bet increase on win 1.9X(90%) with random bets all the way. It is reversed martingale with random bets (example L L L L H L H H L H L L H H H L etc)
|
|
|
|
HCP
Legendary
Offline
Activity: 2086
Merit: 4361
<insert witty quote here>
|
|
March 06, 2018, 12:55:08 AM Merited by marlboroza (1) |
|
As I am not programmer I was hopping someone can point me in right direction but I don't really understand this. I need something for this settings: payout 2.3X or 2.4X, bet increase on win 1.9X(90%) with random bets all the way. It is reversed martingale with random bets (example L L L L H L H H L H L L H H H L etc) Yeah... you just need to edit the script slightly from my post in the other thread... Just one thing to note, I'm not sure what site you're using, and the bot works on "chance" not on "payout", so you need to work that bit out manually (goto the site and set payout to 2.3x and see what it lists your "chance" as... then change the value in the script as appropriate For instance... on crypto-games.net, a 2.3x payout -> chance 43.130... and 2.4x payout -> chance 41.333 math.randomseed(os.time()) -- sets random seed using system time
-- set basebet and chance according to your requirements basebet = 0.00000001 chance = 43.130 -- 2.3x payout on Crypto-Games.net
if (math.random(100) >= 50) then bethigh = true else bethigh = false end
nextbet = basebet
function dobet()
if (win) then -- reverse martingale nextbet = previousbet * 1.9 else -- revert to base? nextbet = basebet end
if (math.random(100) >= 50) then bethigh = true else bethigh = false end
end
Also, I assume the reverse martingale just resets to basebet on a loss... Addtionally, at what point should the bot STOP increasing on a winning streak and reset back to basebet?
|
|
|
|
marlboroza
Legendary
Offline
Activity: 1932
Merit: 2272
|
|
March 06, 2018, 02:27:57 PM |
|
For instance... on crypto-games.net, a 2.3x payout -> chance 43.130... and 2.4x payout -> chance 41.333
Ok, lets say it is for cryptogames so chance is 43.130%. Also, I assume the reverse martingale just resets to basebet on a loss. Yes. at what point should the bot STOP increasing on a winning streak and reset back to basebet? When balance is higher than 1btc or something like that I want exactly this settings with random picks(bets):
|
|
|
|
HCP
Legendary
Offline
Activity: 2086
Merit: 4361
<insert witty quote here>
|
|
March 06, 2018, 10:50:58 PM Last edit: November 15, 2023, 08:11:49 AM by HCP Merited by marlboroza (1) |
|
I want exactly this settings with random picks(bets): Then we just need to add a simple check of balance after a roll and stop() is called if that value is exceeded: Note: as always, I have not thoroughly tested this script... so use at your own risk.math.randomseed(os.time()) -- sets random seed using system time
-- set basebet and chance according to your requirements basebet = 0.00000001 chance = 43.130 -- 2.3x payout on Crypto-Games.net balancetarget = 1.0 -- Script will stop if balance greater than this value
if (math.random(100) >= 50) then bethigh = true else bethigh = false end
nextbet = basebet
function dobet()
if (win) then -- reverse martingale nextbet = previousbet * 1.9 else -- revert to base nextbet = basebet end
if (math.random(100) >= 50) then bethigh = true else bethigh = false end
if balance > balancetarget then nextbet = 0 stop() end
end
|
|
|
|
marlboroza
Legendary
Offline
Activity: 1932
Merit: 2272
|
|
March 07, 2018, 08:48:43 PM |
|
Thanks, everything is working fine as it should.
|
|
|
|
hi5burger
Newbie
Offline
Activity: 28
Merit: 0
|
|
March 08, 2018, 08:19:48 AM |
|
Hi, Im newbie to the dicebot. I have been playing with dice quite some time and won some satoshi when Pocketdice still live.
Anyone can help to program the bot with info below?
Base bet: 0.00001 Multiplier: 5 Chance: 66.6% Bet range: low
Condition If betting lose more than 2 times, and follow by win (at least 1 win) and if the following lose betting appear then the bot will multiply base bet with multiplier. If it is losing, when the next condition fulfill, the betting amount increased to 2x multiplier. Reset to base bet and change range (low/high) if win.
Example 1 L base bet L base bet W base bet L base bet L multiplier 1x W base bet W base bet W base bet L base bet W multiplier 2x L base bet
Example 2 L base bet L base bet L base bet W base bet W base bet W base bet L base bet L multiplier 1x W base bet L base bet L multiplier 2x L base bet W base bet L base bet W multiplier 3x W base bet
Thanks.
|
|
|
|
HCP
Legendary
Offline
Activity: 2086
Merit: 4361
<insert witty quote here>
|
|
March 08, 2018, 08:38:30 AM Last edit: November 15, 2023, 08:11:40 AM by HCP |
|
Anyone can help to program the bot with info below?
Base bet: 0.00001 Multiplier: 5 Chance: 66.6% Bet: low
Condition If betting lose more than 2 times, and follow by win (at least 1 win) and if the following lose betting appear then the bot will multiply base bet with multiplier. If it is losing, when the next condition fulfill, the betting amount increased to 2x multiplier. Reset to base bet if win.
~~ Examples snipped ~~
Good examples... I don't think that's toooo difficult... If I understand right... we do ONE big bet... then back to basebet until the next "2+ loss/1+win/loss" cycle... and then 2x multiplier bet... Also, when you said 2x and 3x multiplier... I took that to mean: 1st bigbet = 0.00001 * 5 2nd bigbet = 0.00001 * 10 3rd bigbet = 0.00001 * 15 etc As always... Code is NOT thoroughly tested... use at own risk! -- Script for hi5burger -- written by HCP
basebet = 0.00001 multiplier = 5 multiplierstep = 0 chance = 66.6 bethigh = false
nextbet = basebet
betNextLoss = false foundLosingStreak = false bettingBig = false
function dobet()
if (win) then if foundLosingStreak then print("End of losing streak... bigBetting next loss!") -- win after losing streak, bet big after next loss betNextLoss = true foundLosingStreak = false multiplierstep = multiplierstep + 1 end if bettingBig then print("Hit the bigBet... RESETTING!") nextbet = basebet multiplierstep = 0 betNextLoss = false foundLosingStreak = false bettingBig = false bethigh = !bethigh end else nextbet = basebet if (currentstreak == -1) and betNextLoss then print("First loss after win, MULTIPLY!") -- first loss after winning streak, multiply! nextbet = previousbet * (multiplier * multiplierstep) betNextLoss = false foundLosingStreak = false bettingBig = true elseif currentstreak <= -2 then print("LossStreak > 2 found...") foundLosingStreak = true betNextLoss = false bettingBig = false end
end end
If you make millions and are feeling generous, my tip address is: 33gzi64cvCr4i9ECGPwvZktzS2qknRUFhC ps. Your strategy doesn't seem to perform too well
|
|
|
|
dimondimon
Member
Offline
Activity: 270
Merit: 10
|
|
March 11, 2018, 01:18:10 PM |
|
what team to write hundred to look how many courses there was the smallest and biggest stone back? For example
1000 rates : min roll = 0.23 max roll = 99.9
|
|
|
|
HCP
Legendary
Offline
Activity: 2086
Merit: 4361
<insert witty quote here>
|
|
March 11, 2018, 06:58:41 PM |
|
what team to write hundred to look how many courses there was the smallest and biggest stone back? For example
1000 rates : min roll = 0.23 max roll = 99.9
I assume you're wanting to know what was the smallest and largest roll in the previous 1000 bets? If you want to just do a fixed size run, its easy... minRoll = 100 maxRoll = 0
numBets = 0
.. other setup ..
function dobet()
numBets = numBets + 1
if lastBet.Roll > maxRoll then maxRoll = lastBet.Roll elseif lastBet.Roll < minRoll then minRoll = lastBet.Roll end
if numBets == 1000 then print("1000 rolls: min roll = ".. minRoll .. " max roll = " .. maxRoll) end
.. other stuff ..
end
Note that this will only work for the first 1000 rolls... then it won't work. It also wouldn't work "as is" as a "sliding" window of min/max over the last 1000 rolls on a continuous betting basis... ie. you couldn't just reset it back to 0 and 100 and let it count again. You'd need to store the bets in a a FIFO list and recalculate min/max every roll... this would be slow. Also, if you just want to track all the bets and calculate it at any given stage for any given length of rolls... you would need to store ALL the bet results and calculate it by looping through them... that would take up LOTS of memory... and be VERY slow! You'd probably be better off running SQL on the database file using external programs... but then you couldn't use an automated script to get the numbers... you might have to consider modifying the source code for the bot itself to include a function that you can call from programmer mode that could find min and max over X number of rolls.
|
|
|
|
seuntjie
Legendary
Offline
Activity: 1717
Merit: 1125
|
|
March 11, 2018, 09:01:56 PM Last edit: March 11, 2018, 09:50:12 PM by seuntjie |
|
what team to write hundred to look how many courses there was the smallest and biggest stone back? For example
1000 rates : min roll = 0.23 max roll = 99.9
I assume you're wanting to know what was the smallest and largest roll in the previous 1000 bets? If you want to just do a fixed size run, its easy... minRoll = 100 maxRoll = 0
numBets = 0
.. other setup ..
function dobet()
numBets = numBets + 1
if lastBet.Roll > maxRoll then maxRoll = lastBet.Roll elseif lastBet.Roll < minRoll then minRoll = lastBet.Roll end
if numBets == 1000 then print("1000 rolls: min roll = ".. minRoll .. " max roll = " .. maxRoll) end
.. other stuff ..
end
Note that this will only work for the first 1000 rolls... then it won't work. It also wouldn't work "as is" as a "sliding" window of min/max over the last 1000 rolls on a continuous betting basis... ie. you couldn't just reset it back to 0 and 100 and let it count again. You'd need to store the bets in a a FIFO list and recalculate min/max every roll... this would be slow. Also, if you just want to track all the bets and calculate it at any given stage for any given length of rolls... you would need to store ALL the bet results and calculate it by looping through them... that would take up LOTS of memory... and be VERY slow! You'd probably be better off running SQL on the database file using external programs... but then you couldn't use an automated script to get the numbers... you might have to consider modifying the source code for the bot itself to include a function that you can call from programmer mode that could find min and max over X number of rolls. I might be able to add a function to the programmermode that can allow you to execute a sql query directly, I will just have to investigate how to return different data types etc, so no ETA for now. Edit: I still wouldn't recommend these kind of queries though. You will need to execute something like ( top(1000) min(roll) as minimum, max(roll) as maximum from bet where site='sitename' order by betid desc) after every bet. SQLite is not a great DBMS, and queries like these are relatively slow in it. You're going to kill your betting speed and hike your hdd and cpu usage.
|
|
|
|
dimondimon
Member
Offline
Activity: 270
Merit: 10
|
|
March 12, 2018, 02:01:25 AM |
|
what team to write hundred to look how many courses there was the smallest and biggest stone back? For example
1000 rates : min roll = 0.23 max roll = 99.9
I assume you're wanting to know what was the smallest and largest roll in the previous 1000 bets? If you want to just do a fixed size run, its easy... minRoll = 100 maxRoll = 0
numBets = 0
.. other setup ..
function dobet()
numBets = numBets + 1
if lastBet.Roll > maxRoll then maxRoll = lastBet.Roll elseif lastBet.Roll < minRoll then minRoll = lastBet.Roll end
if numBets == 1000 then print("1000 rolls: min roll = ".. minRoll .. " max roll = " .. maxRoll) end
.. other stuff ..
end
Note that this will only work for the first 1000 rolls... then it won't work. It also wouldn't work "as is" as a "sliding" window of min/max over the last 1000 rolls on a continuous betting basis... ie. you couldn't just reset it back to 0 and 100 and let it count again. You'd need to store the bets in a a FIFO list and recalculate min/max every roll... this would be slow. Also, if you just want to track all the bets and calculate it at any given stage for any given length of rolls... you would need to store ALL the bet results and calculate it by looping through them... that would take up LOTS of memory... and be VERY slow! You'd probably be better off running SQL on the database file using external programs... but then you couldn't use an automated script to get the numbers... you might have to consider modifying the source code for the bot itself to include a function that you can call from programmer mode that could find min and max over X number of rolls. I copy a code, but it isn't started
|
|
|
|
HCP
Legendary
Offline
Activity: 2086
Merit: 4361
<insert witty quote here>
|
|
March 12, 2018, 04:07:40 AM |
|
I copy a code, but it isn't started
That's because it's not a "full" script... it doesn't set nextbet or chance... and there are (deliberate) syntax errors that will prevent it from being able to copy/paste and run, hence the ".. other setup .." and ".. other stuff .." sections. This is just a code snippet that you should be able to integrate into your own script.
|
|
|
|
dimondimon
Member
Offline
Activity: 270
Merit: 10
|
|
March 12, 2018, 05:27:47 AM |
|
I copy a code, but it isn't started
That's because it's not a "full" script... it doesn't set nextbet or chance... and there are (deliberate) syntax errors that will prevent it from being able to copy/paste and run, hence the ".. other setup .." and ".. other stuff .." sections. This is just a code snippet that you should be able to integrate into your own script. it is clear. It is necessary for me that has just shown also everything, we will wait can the developer will add separate function
|
|
|
|
seuntjie
Legendary
Offline
Activity: 1717
Merit: 1125
|
|
March 15, 2018, 05:40:13 PM |
|
I have created a forum for DiceBot discussions at https://forum.seuntjie.com. Feel free to register an account there and create a thread if you have questions or suggestions, or need help with something. Theres' a whole section for the programmer mode, so don't be shy to ask a question if you need any help.
|
|
|
|
optimuz
Newbie
Offline
Activity: 3
Merit: 0
|
|
March 16, 2018, 05:26:59 AM |
|
Which VPS/VDS is the best for hosting this bot?
|
|
|
|
HCP
Legendary
Offline
Activity: 2086
Merit: 4361
<insert witty quote here>
|
|
March 16, 2018, 05:36:48 AM |
|
Any "reasonable" windows based VPS should be fine... as it is a windows only application.
Any particular reason why you want to do it with a VPS? It runs perfectly adequately on a standard Windows desktop PC.
|
|
|
|
optimuz
Newbie
Offline
Activity: 3
Merit: 0
|
|
March 16, 2018, 05:42:18 AM |
|
Any "reasonable" windows based VPS should be fine... as it is a windows only application.
Any particular reason why you want to do it with a VPS? It runs perfectly adequately on a standard Windows desktop PC.
So 2Gb of RAM will be enough? I use my laptop at several place - so need a server where I can test script 24x7
|
|
|
|
HCP
Legendary
Offline
Activity: 2086
Merit: 4361
<insert witty quote here>
|
|
March 16, 2018, 06:59:07 AM |
|
If you're going to run on a low RAM setup, you'll probably need to disable the charting to avoid OOM (Out of Memory) issues. Also, depending on the complexity of the script(s) you're testing... you might find that 2GB is a little low if you're setting up lots (as in hundreds) of variables/data structures etc. If the scripts are relatively simple, 2GB should probably suffice... Obviously, the more the better
|
|
|
|
|