HCP
Legendary
Offline
Activity: 2086
Merit: 4318
<insert witty quote here>
|
|
June 28, 2018, 09:15:51 AM |
|
This LUA Script , Not running, Why ?
The error screen tells you exactly why it isn't working: Starting Dicebot 3.3.18 start() LUA ERROR!! 'then' expected, got 'nextbet' Basically all your if/elseif's at the end are missing "then" statements: .... else if currentstreak == -1 then nextbet = previousbet*2 elseif currentstreak == -2 then nextbet = previousbet*2.1 elseif currentstreak == -3 then nextbet = previousbet*2.2 elseif currentstreak == -4 then nextbet = previousbet*2.3 elseif currentstreak == -5 then nextbet = previousbet*2.4 elseif currentstreak == -6 then nextbet = previousbet*2.5 else nextbet = previousbet*2.6
|
|
|
|
zombie35
Newbie
Offline
Activity: 6
Merit: 0
|
|
June 28, 2018, 09:20:17 AM |
|
thanks for the answer, but I am not the script author. I copied it from script page of seuntjie and tried to run it. in summary I do not know how to work it here it is https://bot.seuntjie.com/scripts.aspx?id=5236
|
|
|
|
HCP
Legendary
Offline
Activity: 2086
Merit: 4318
<insert witty quote here>
|
|
June 28, 2018, 09:39:34 AM |
|
All you need to do is add the missing "then" statements as I have highlighted... just edit the script yourself and type them in Also, I've sent a message to Seuntjie to let him know about the problem. For more script help, you might like to try the dicebot forum (you can find on the link on the dicebot website)
|
|
|
|
zombie35
Newbie
Offline
Activity: 6
Merit: 0
|
|
June 28, 2018, 09:51:57 AM |
|
Thank you for the help
|
|
|
|
seuntjie
Legendary
Offline
Activity: 1717
Merit: 1125
|
|
June 28, 2018, 02:11:12 PM |
|
Thank you for notifying me HCP, I have updated the script on the site, but I have not tested it. Feel free to ask questions about DiceBot, the programmer mode and scripts on https://forum.seuntjie.com
|
|
|
|
donkas007
Newbie
Offline
Activity: 9
Merit: 0
|
|
August 30, 2018, 10:45:45 AM |
|
Hi there,
Is it also possible to switch and load to another betting coin from the console instead through the menu? So from BTC to LTC or DOGE etc.
|
|
|
|
|
donkas007
Newbie
Offline
Activity: 9
Merit: 0
|
|
September 01, 2018, 04:32:48 PM |
|
Cool, works if you enter the correct coin name, thanks. How does the currencies.strings works. How to get the list of availible coins at the casino where i logged in from the Dicebot console. Did try but cannot find out how to get the list.
|
|
|
|
kwong1983
Newbie
Offline
Activity: 54
Merit: 0
|
|
September 02, 2018, 05:26:48 PM Last edit: September 02, 2018, 05:37:00 PM by kwong1983 |
|
Hey guys,
I am stuck on this coding. Everthing run smootly until i run into ZERO then the system stuck.
How do i set my min bet is 0.00001000
if (win) then nextbet = previousbet - 0.00001000
if (loss) then nextbet = previousbet + 0.00001000
example 0.00001000 Loss 0.00002000 Loss 0.00003000 Win 0.00002000 Win 0.00001000 Win 0.00001000 Win (This is where the system bet 0 and got stuck what i want is to tell the system to keep betting 0.00001000) 0.00001000 Win
Thanks Kwong
|
|
|
|
seuntjie
Legendary
Offline
Activity: 1717
Merit: 1125
|
|
September 02, 2018, 06:23:41 PM |
|
Cool, works if you enter the correct coin name, thanks. How does the currencies.strings works. How to get the list of availible coins at the casino where i logged in from the Dicebot console. Did try but cannot find out how to get the list. currencies is an array of strings. You can access it like any other array, for example print(currencies[1]). Hey guys,
I am stuck on this coding. Everthing run smootly until i run into ZERO then the system stuck.
How do i set my min bet is 0.00001000
if (win) then nextbet = previousbet - 0.00001000
if (loss) then nextbet = previousbet + 0.00001000
example 0.00001000 Loss 0.00002000 Loss 0.00003000 Win 0.00002000 Win 0.00001000 Win 0.00001000 Win (This is where the system bet 0 and got stuck what i want is to tell the system to keep betting 0.00001000) 0.00001000 Win
Thanks Kwong
You need to make sure that you never bet less than the specified amount. so you need to add an if to your script that compares the bet value to your minimum bet. Maybe alter one of your ifs to check that it's a win and that the previous bet was larger than the minimum bet? Alternatively, you could use the D'Alembert system in the advanced mode, it does exactly what your script does, and set a minimum bet in the stop conditions tab.
|
|
|
|
zombie35
Newbie
Offline
Activity: 6
Merit: 0
|
|
September 08, 2018, 02:15:44 PM |
|
-- UNTESTED!! -- Set these 3 values to match the site you're using and what you want your baseBet to be houseEdge = 1 -- ie HE = 0.8% = 0.8, HE = 1.1% = 1.1 maxPayout = 9900 -- set this to site max! 9920x = Crypto-Games.net basebet = 0.00000020 ---------------------- Don't Edit below here -------------------------- basePayout = 1.1 -- start at 1.1x payout firstLossPayout = 2 currPayout = basePayout nextbet = basebet chance = (100 - houseEdge) / currPayout bethigh = true maxPayoutReached = false function dobet() if win then --reset Payout to 1.1x currPayout = basePayout else if currPayout == basePayout then -- first loss currPayout = firstLossPayout else currPayout = currPayout + 1 end end if maxPayoutReached then stop() nextbet = 0 end if currPayout > maxPayout then maxPayoutReached = true else chance = (100 - houseEdge) / currPayout end end I use this script. Very successful . But I have a problem. if 9900 roll lose, script stoped. if 9900 rolls lose , I want continue and start basebet x1.01 incease every rolls until win. (the chances of winning will remain constant) "9900 rolls(payout) (chance = 0.01)" if win, re-start how to possible ? I'm waiting for support please..
|
|
|
|
dimondimon
Member
Offline
Activity: 270
Merit: 10
|
|
September 10, 2018, 05:38:15 AM |
|
chance = 98.99 bethigh = True basebet = 0.00000300 nextbet = basebet
count = 0
function dobet()
nextbet = basebet count = count + 1 if lastBet.Roll < 0.5 or lastBet.Roll > 99.49 then count = 0 end
if count >= 500 then Stop() nextbet = 0 end
end How to make the counter reset only for the number that did not fall into the conditions, and for another number continued to be considered
|
|
|
|
kwong1983
Newbie
Offline
Activity: 54
Merit: 0
|
|
September 17, 2018, 04:31:14 PM |
|
How do i code in programmer mode "btc streak profit"? just like in advance mode.
I was able to code similar to "btc profit" but i wanted to add "btc streak profit" as a safety option thanks.
|
|
|
|
seuntjie
Legendary
Offline
Activity: 1717
Merit: 1125
|
|
September 19, 2018, 06:54:13 AM |
|
How do i code in programmer mode "btc streak profit"? just like in advance mode.
I was able to code similar to "btc profit" but i wanted to add "btc streak profit" as a safety option thanks.
You need to reset your streak profit when it's the first win in a series or a first loss in a series, then add the profit of the previous bet to your counter. streakprofitcounter =0
if currentstreak==1 or currentstreak==-1 then streakprofitcounter =currentprofit else streakprofitcounter +=currentprofit end
as for btc profit, you don't need to program it, just use the profit variable. See https://forum.seuntjie.com/index.php?topic=2.0 for a list of tuturials for the programmer mode, including a reference list of available variables and methods.
|
|
|
|
houseworx
|
|
September 23, 2018, 01:40:34 PM Last edit: September 24, 2018, 04:09:27 AM by houseworx |
|
Hey, I know that somewhere Iv seen question about that kind of thing, but can't find it anymore. if (modbuton == true) then hilonumb = math.random(45,50)what does that kind of statement really doing? exactly numbers 45, 50 what will be changed if i will put there like 5, 95 or 1, 99 or 20, 80??? hope someone can explain it to me and another question is there is possible to make that bot "auto start" after stopping when internet connection or dicewebpage get some error?!
|
|
|
|
HCP
Legendary
Offline
Activity: 2086
Merit: 4318
<insert witty quote here>
|
|
September 28, 2018, 07:55:27 PM |
|
math.random has 3 possible variations:
math.random() = generates pseudo-random "real" numbers between 0 and 1
math.random(m) = when m is an integer = generates pseudo-random integer numbers in the range [1,m]
math.random(m,n) = when m and n = generates pseudo-random integer numbers in the range [m,n]
So, in your example, it will be generating numbers in the range [45,50]... or in other words, a "random" number selected from 45,46,47,48,49 and 50.
There is no auto-start built into dicebot... you might be able to achieve it using some sort of 3rd-party Windows automation tool, but it isn't possible within the confines of the dicebot
|
|
|
|
houseworx
|
|
September 28, 2018, 09:27:17 PM |
|
math.random has 3 possible variations:
math.random() = generates pseudo-random "real" numbers between 0 and 1
math.random(m) = when m is an integer = generates pseudo-random integer numbers in the range [1,m]
math.random(m,n) = when m and n = generates pseudo-random integer numbers in the range [m,n]
So, in your example, it will be generating numbers in the range [45,50]... or in other words, a "random" number selected from 45,46,47,48,49 and 50.
There is no auto-start built into dicebot... you might be able to achieve it using some sort of 3rd-party Windows automation tool, but it isn't possible within the confines of the dicebot
big thanks for answer HCP, its really made me understand that math.random "thing"!
|
|
|
|
Pandarian
Jr. Member
Offline
Activity: 132
Merit: 1
|
|
September 29, 2018, 02:51:47 AM |
|
Absolutly lovely thread. I'm trying to hun t specific numbers with scripting
Thanks
|
|
|
|
djshadowfax
Newbie
Offline
Activity: 3
Merit: 0
|
|
November 05, 2018, 10:52:45 AM |
|
@zombie35 did you find a solution?
|
|
|
|
patrickjo2001
Newbie
Offline
Activity: 6
Merit: 0
|
|
November 05, 2018, 07:09:25 PM |
|
Good morning all I am having a problem with dicebot, all bet place above 0.001XX satoshies give a lag. in the status bar you can see a message "Please try again in a few seconds". the delays can vary from 10 seconds to 2 hours. I want to know how to disable this setting. I have been writing but no one seems to hear my concern and let explain to me what is wrong with this dicebot. if someone can help. please can he share how to disable this annoying setting. Thank you in advance. here below is the screenshot. https://prntscr.com/leni8t
|
|
|
|
|