optimuz
Newbie
Offline
Activity: 3
Merit: 0
|
|
March 17, 2018, 01:24:13 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 Thank you for perfect and detailed responce!
|
|
|
|
|
|
|
|
|
It is a common myth that Bitcoin is ruled by a majority of miners. This is not true. Bitcoin miners "vote" on the ordering of transactions, but that's all they do. They can't vote to change the network rules.
|
|
|
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
|
|
|
lilly69
Newbie
Offline
Activity: 4
Merit: 0
|
|
April 01, 2018, 12:47:41 PM |
|
Hello, I'm new and dont know how to create a script. I would like to create a script : 98% chance to win betbase 1 (dont care for the loss and win) if 5 number in a row < or > 50 so change the bet base to 100, chance to 50% and multiplie by 2 if 2 number in a row > 80 or < 20 change the bet base to 100, chance to 80% and multiplie by 7 if 4 number in a row > 70 or <30 change the bet base to 100, chance to 70% and multiplie by 3,5 ... It is possible ? Thanks in advance if someone can help me.
|
|
|
|
HCP
Legendary
Offline
Activity: 2086
Merit: 4316
<insert witty quote here>
|
|
April 01, 2018, 01:44:38 PM |
|
Probably very possible... couple of questions for you:
1. is it meant to check "4 numbers in a row > 70" (ie. 74, 82, 80, 92) or "4 numbers in a row < 30" (ie. 15, 20, 28, 11) or can it alternate? (ie. 12, 83, 22, 91) = set 70%? 2. When you set the chance to 50%, 70% or 80%, do you want the high/low set to a specific option? If so... what? 3. What should the script do if it is already betting one option (say, 2 numbers > 80) and it comes across another sequence (ie. 4 numbers < 30)? 4. Should it just reset to 98% and basebet on any win? 5. how long should it "martingale" with the multipliers when betting one of the options? should it just go until bankroll is busted? or is there a maximum number of losses to bet for? or a maximum amount to bet up to?
|
|
|
|
KhurelbaatarN
Newbie
Offline
Activity: 1
Merit: 0
|
|
April 21, 2018, 07:19:32 PM Last edit: April 21, 2018, 07:52:29 PM by KhurelbaatarN |
|
HELLO I had tried to add in this script Winnumb = 0 if win number >3 then next bet=basebet but it does not work correctly pls help me 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 = 0.0001 -- 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()
[color=red] if (win) then -- reverse martingale nextbet = previousbet * 1.9 else -- revert to base nextbet = basebet end [/color]
if (math.random(100) >= 50) then bethigh = true else bethigh = false end
if balance > balancetarget then nextbet = 0 stop() end
end
|
|
|
|
HCP
Legendary
Offline
Activity: 2086
Merit: 4316
<insert witty quote here>
|
|
April 23, 2018, 04:24:59 AM |
|
HELLO I had tried to add in this script Winnumb = 0 if win number >3 then next bet=basebet but it does not work correctly pls help me
You need to make sure that you are setting and resetting the counter correctly... so you need to add 1 to the winnum each time you win, and then check it to see if your condition (winnum > 3) has been reached. If so, then you need to reset the bet AND the counter... otherwise it will just keep counting to infinity and always trigger the winnum >3 condition something like this: 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 = 0.0001 -- Script will stop if balance greater than this value
if (math.random(100) >= 50) then bethigh = true else bethigh = false end
winnum = 0
nextbet = basebet
function dobet()
if (win) then -- reverse martingale nextbet = previousbet * 1.9 winnum = winnum + 1 if (winnum > 3) then nextbet = basebet winnum = 0 end else -- revert to base nextbet = basebet winnum = 0 end
if (math.random(100) >= 50) then bethigh = true else bethigh = false end
if balance > balancetarget then nextbet = 0 stop() end
end
|
|
|
|
HCP
Legendary
Offline
Activity: 2086
Merit: 4316
<insert witty quote here>
|
|
April 23, 2018, 10:12:06 PM |
|
That is very doable... although your (chance == chance) logic seems very flawed... I'm not sure what you were actually attempting to achieve with this? Looking at the code you have, it seems that you want to modify the multiplier every 30 losses... returning to basebet if you win? and changing HIGH/low every 30 losses... Hopefully, this code should do what I think it is that you're attempting to do NOTE: This code is completely untested, use at your own risk. It probably won't even run without editing.chance = 49.5 -- EDIT THIS bethigh = true basebet = 0.00000001 nextbet = basebet
multipliers = {1,1.112,1.113,1.115}
losscount = 0 stepcount = 1 maxstep = #multipliers
function dobet()
if (win) then nextbet = basebet losscount = 0 stepcount = 1 else losscount = losscount + 1 if losscount == 30 then stepcount = stepcount + 1 if stepcount > maxstep then -- make sure we don't exceed the size of multipliers table stepcount = maxstep end losscount = 0 bethigh = !bethigh end nextbet = previousbet * multiplier[stepcount] end
end
As currently setup, assuming a loooooong losing streak, this should go something like: Roll 1: HIGH - 0.00000001 - Loss Roll 2: HIGH - 0.00000001 - Loss Roll 3: HIGH - 0.00000001 - Loss ... Roll 30: HIGH - 0.00000001 - Loss Roll 31: low - 0.00000001112 - Loss Roll 32: low - 0.00000001236 - Loss ... Roll 60: low - 0.00000021729 - Loss Roll 61: HIGH - 0.00000024184 - Loss Roll 62: HIGH - 0.00000026917 - Loss ... Roll 90: HIGH - 0.00000539379 - Loss Roll 91: low - 0.00000601407 - Loss Roll 92: low - 0.00000670569 - Loss ...
|
|
|
|
HCP
Legendary
Offline
Activity: 2086
Merit: 4316
<insert witty quote here>
|
|
April 25, 2018, 01:02:35 AM |
|
thank you very much for replying to the message but the script gave an error wrote.[string "chunk"]:23: attempt to index global 'multiplier' (a number value) makes 2 bets and stops
NOTE: This code is completely untested, use at your own risk. It probably won't even run without editing.
Like I said... it was untested... and as expected has bugs... so you need to change: nextbet = previousbet * multiplier[stepcount] to nextbet = previousbet * multiplier s[stepcount] strategy such .after winning the button changes and returns to the beginning of the bet
If you want the script to change high/low on a win as well... simply add: bethigh = !bethigh into the "if (win) then" block: ... if (win) then nextbet = basebet losscount = 0 stepcount = 1 bethigh = !bethigh else ...
|
|
|
|
HCP
Legendary
Offline
Activity: 2086
Merit: 4316
<insert witty quote here>
|
|
April 26, 2018, 02:06:22 AM |
|
script. change button after the change %.what do you think after the win that changed ? test need to give dogs a purse.than I can. thank
I'm sorry... I don't quite understand what it is that you're saying/asking? Did you use Google translate?
|
|
|
|
HCP
Legendary
Offline
Activity: 2086
Merit: 4316
<insert witty quote here>
|
|
April 27, 2018, 08:32:29 AM |
|
Your original script looked like it wanted High/low changed on the every 30 losses... if losscount==30 then nextbet = previousbet*1.112 chance = chance bethigh =!bethigh
So I just followed that... if you DON'T want it changing high/low when losing... and ONLY want it changing High/low when there is a win, simply remove the "bethigh = !bethigh" line from the from the "if losscount == 30" section: if losscount == 30 then stepcount = stepcount + 1 if stepcount > maxstep then -- make sure we don't exceed the size of multipliers table stepcount = maxstep end losscount = 0 bethigh = !bethigh <-- delete this end
|
|
|
|
dimondimon
Member
Offline
Activity: 270
Merit: 10
|
|
May 15, 2018, 08:49:35 AM |
|
who will write the script ---- Start at 98 chance, stop if roll number 0 or 9999. has not dropped 50 thousand times .---
will pay 50 thousands of Satoshi
|
|
|
|
emberbekas
Legendary
Offline
Activity: 1904
Merit: 1000
|
|
May 15, 2018, 07:07:18 PM |
|
who will write the script ---- Start at 98 chance, stop if roll number 0 or 9999. has not dropped 50 thousand times .---
will pay 50 thousands of Satoshi
Do you want to play at 98% win of chance and stop the roll when you hit 0.00 or 99.99? If so, try with this script and wish you good luck! nextbet = 0.00001 -- set your base bet here! chance = 98 target = 0.00 target1 = 99.99
function dobet() if lastBet.roll == target then ching(); stop(); end
if lastBet.roll == target1 then ching(); stop(); end end
|
|
|
|
HCP
Legendary
Offline
Activity: 2086
Merit: 4316
<insert witty quote here>
|
|
May 15, 2018, 07:23:19 PM |
|
This script will just bet continuously until there are 50000 consecutive rolls where 0 or 9999 have not been rolled. NOTE: depending on the site used... you may need to change "lastBet.Roll == 0" and "lastBet.Roll == 9999" to something like "lastBet == 0.0000" and "lastBet.Roll == 99.9999" or whatever format the site is using for it's results. As always, it's pretty much untested... chance = 98 bethigh = True basebet = 0.00000010 nextbet = basebet
count = 0
function dobet()
nextbet = basebet count = count + 1 if lastBet.Roll == 0 or lastBet.Roll == 9999 then count = 0 end
if count >= 50000 then Stop() nextbet = 0 end
end
|
|
|
|
seuntjie
Legendary
Offline
Activity: 1717
Merit: 1125
|
|
May 15, 2018, 10:38:44 PM |
|
FYI DiceBot always parses the result to somewhere between 0 and 100. If a site rolls between 0 and 9999, dicebot will show and process it as between 0 and 99.99 (so a 9999 in the site is a 99.99 in the bot, a 1 in the site is a 0.01 in the bot). But HCP is still correct, some sites use more decimals than others. You can use the site.maxroll variable to get the accurate maximum roll a site can give.
|
|
|
|
dimondimon
Member
Offline
Activity: 270
Merit: 10
|
|
May 16, 2018, 04:15:41 AM |
|
who will write the script ---- Start at 98 chance, stop if roll number 0 or 9999. has not dropped 50 thousand times .---
will pay 50 thousands of Satoshi
Do you want to play at 98% win of chance and stop the roll when you hit 0.00 or 99.99? If so, try with this script and wish you good luck! nextbet = 0.00001 -- set your base bet here! chance = 98 target = 0.00 target1 = 99.99
function dobet() if lastBet.roll == target then ching(); stop(); end
if lastBet.roll == target1 then ching(); stop(); end end LUA ERROR!! '(' expected, got 'if'
|
|
|
|
dimondimon
Member
Offline
Activity: 270
Merit: 10
|
|
May 16, 2018, 04:16:22 AM |
|
This script will just bet continuously until there are 50000 consecutive rolls where 0 or 9999 have not been rolled. NOTE: depending on the site used... you may need to change "lastBet.Roll == 0" and "lastBet.Roll == 9999" to something like "lastBet == 0.0000" and "lastBet.Roll == 99.9999" or whatever format the site is using for it's results. As always, it's pretty much untested... chance = 98 bethigh = True basebet = 0.00000010 nextbet = basebet
count = 0
function dobet()
nextbet = basebet count = count + 1 if lastBet.Roll == 0 or lastBet.Roll == 9999 then count = 0 end
if count >= 50000 then Stop() nextbet = 0 end
end
No work .
|
|
|
|
HCP
Legendary
Offline
Activity: 2086
Merit: 4316
<insert witty quote here>
|
|
May 16, 2018, 05:47:43 AM |
|
No work .
No explanation. That's not a terribly useful bug report... Care to explain how it isn't working? Is it not running? does dicebot give any error? Is it a logic error? Is it not doing what you wanted? what site are you trying to run it on?
|
|
|
|
dimondimon
Member
Offline
Activity: 270
Merit: 10
|
|
May 16, 2018, 06:36:26 AM |
|
sorry tried again to start and earned. But it doesn't show that the stone wasn't, 0 or 9999, it just writes [string "chunk"]: 13: attempt to call global 'Stop' (a nil value)
|
|
|
|
B4RF
|
|
May 16, 2018, 07:01:33 AM |
|
sorry tried again to start and earned. But it doesn't show that the stone wasn't, 0 or 9999, it just writes [string "chunk"]: 13: attempt to call global 'Stop' (a nil value)
You wont see any output since there is no print in the code before the stop. And it seems that it worked besides that stop() is case sensitive so it didnt stop through the function but an error
|
▄▄▄████████▄▄▄ ▄██████████████████▄ ▄██████████████████████▄ ██████████████████████████ ████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ████████████████████████████ ██████████████████████████ ▀██████████████████████▀ ▀██████████████████▀ ▀▀▀████████▀▀▀
| | | | ███████ ██████████ ██████████ ██████████ ██████████ ██████████ ██████████ ██████████ ██████████ ██████████ ██████████ ██████████ ███████ | | | | ▄▄██████████████▄▄ ▄██████████████████████▄ █████ ▄██████████████████████████▄ █████ ████ ▄▄▄▄▄ ▄▄▄▄▄▄ ▄▄▄▄▄ ████ ▄██▀ ████ █████ ██████ █████ ████ ▄██▀ ████ █████ ██████ █████ ████ ██▀ ████ █████ ██████ █████ ████ ██ ████ ▀▀▀▀▀ ▀▀▀▀▀▀ ▀▀▀▀▀ ████ ▄██████▄ ████████████████████████████ ████████ ███████▀ ▀███████ ▀██████▀ █████▀ ▀█████ ▀██████████████████████████▀ ▀▀████████████████████▀▀ | | |
|
|
|
HCP
Legendary
Offline
Activity: 2086
Merit: 4316
<insert witty quote here>
|
|
May 16, 2018, 10:20:10 AM |
|
But it doesn't show that the stone wasn't, 0 or 9999, it just writes [string "chunk"]: 13: attempt to call global 'Stop' (a nil value)
Damn... That's what you get for trying to type code on a mobile device! Stupid auto-capitalisation Yeah... It should be stop(), not Stop() Also, did you want it to specify if it was a 0 or a 9999 that hadn't shown up for 50000 rolls? If so, that code won't do that... It'll simply stop because there has not been a 0 AND no 9999 in 50000 consecutive rolls... But it could be that there was no 9999 for 75000 rolls, but there was a couple of 0s that reset the count. If you need it to track both numbers separately, the code will need to be modified: chance = 98 bethigh = True basebet = 0.00000010 nextbet = basebet
zerocount = 0 ninescount = 0
function dobet()
nextbet = basebet zerocount = zerocount + 1 ninescount = ninescount + 1 if lastBet.Roll == 0 then zerocount = 0 else if lastBet.Roll == 9999 then ninescount = 0 end
if zerocount >= 50000 then print("50000 rolls without 0") ching() stop() nextbet = 0 end if ninescount >= 50000 then print("50000 rolls without 9999") ching() stop() nextbet = 0 end
end
|
|
|
|
zombie35
Newbie
Offline
Activity: 6
Merit: 0
|
|
June 28, 2018, 08:15:41 AM |
|
This LUA Script , Not running, Why ? 999dice ,DOGE, My balance 5000 DOGE Script URL https://bot.seuntjie.com/scripts.aspx?id=5236Error Screen Starting Dicebot 3.3.18 start() LUA ERROR!! 'then' expected, got 'nextbet' Script -- Estimated chances --8 losses = 1 in 6600 --9 losses = 1 in 19700 --10 losses = 1 in 59000 --11 losses = 1 in 177100 --12 losses = 1 in 531400 --Any unlikely tips from wins are appreciated. Recommend you tip seuntjie first.
--My btc tip address = 16nVbRQM198oHALWUNonamJNHYf9NMCMeG chance= 66 basebet= 0.00000002 nextbet = basebet function dobet() if win then if currentstreak > 2 then nextbet = 0.00000001 else nextbet= basebet end else if previousbet*2.6> balance then nextbet=balance/7.5 else if currentstreak == -1 nextbet = previousbet*2 elseif currentstreak == -2 nextbet = previousbet*2.1 elseif currentstreak == -3 nextbet = previousbet*2.2 elseif currentstreak == -4 nextbet = previousbet*2.3 elseif currentstreak == -5 nextbet = previousbet*2.4 elseif currentstreak == -6 nextbet = previousbet*2.5 else nextbet = previousbet*2.6
end end end end end end end end end
|
|
|
|
|