HCP
Legendary
Offline
Activity: 2086
Merit: 4363
<insert witty quote here>
|
|
June 22, 2017, 01:35:21 AM |
|
I want to add a function when x is lost, add a bet.
I assume you mean that when x < 100, and the "random" bet is made and loses... that you want to be able to do something specific? In that case, add a boolean flag that indicates whether or not the last bet was an "x" bet... basebet=0.1 bchance=93 chance=bchance nextbet=basebet maxbet=100 minbet=100 maxchance=93 minchance=93 randomc=100
bettingX = false
function dobet() if not bettingX then bethigh= math.random(0,1000)%2==0 x=math.random(0,10000) if x < randomc then nextbet = math.random(minbet,maxbet) chance=math.random(minchance*100,maxchance*100)/100 bettingX = true else nextbet = basebet chance=bchance bettingX = false end else if not win then --Your X bet just lost, so "add your bet" here .. add a bet .. bettingX = true ?? I don't know if you want to continue adding bets or not, you didn't say else -- guessing you want it to reset on a win? nextbet = basebet chance=bchance bettingX = false end end end
hello, i would like to simply know how to add a time delay to my script, for example, to delay for say 1minute after an action , before commencing another one
you should be able to put in a simple blocking delay using something like: delay = 60 -- measured in seconds
local start = os.clock() while os.clock() - start < delay do end
|
|
|
|
B4RF
|
|
June 22, 2017, 06:09:03 AM |
|
hello, i would like to simply know how to add a time delay to my script, for example, to delay for say 1minute after an action , before commencing another one
you should be able to put in a simple blocking delay using something like: delay = 60 -- measured in seconds
local start = os.clock() while os.clock() - start < delay do end
The only problem with sleep functions like this is that they consume processor time. But without external libraries I dont really know any better solution. Is it possible to import lua libraries in the seuntje bot?
|
▄▄▄████████▄▄▄ ▄██████████████████▄ ▄██████████████████████▄ ██████████████████████████ ████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ████████████████████████████ ██████████████████████████ ▀██████████████████████▀ ▀██████████████████▀ ▀▀▀████████▀▀▀
| | | | ███████ ██████████ ██████████ ██████████ ██████████ ██████████ ██████████ ██████████ ██████████ ██████████ ██████████ ██████████ ███████ | | | | ▄▄██████████████▄▄ ▄██████████████████████▄ █████ ▄██████████████████████████▄ █████ ████ ▄▄▄▄▄ ▄▄▄▄▄▄ ▄▄▄▄▄ ████ ▄██▀ ████ █████ ██████ █████ ████ ▄██▀ ████ █████ ██████ █████ ████ ██▀ ████ █████ ██████ █████ ████ ██ ████ ▀▀▀▀▀ ▀▀▀▀▀▀ ▀▀▀▀▀ ████ ▄██████▄ ████████████████████████████ ████████ ███████▀ ▀███████ ▀██████▀ █████▀ ▀█████ ▀██████████████████████████▀ ▀▀████████████████████▀▀ | | |
|
|
|
HCP
Legendary
Offline
Activity: 2086
Merit: 4363
<insert witty quote here>
|
|
June 23, 2017, 03:49:47 AM |
|
Yeah... it's a kludge... but it works... If it is just the betting speed you're trying to slow down, you can always set the bet speed in advanced settings to slow the bot down... that will effectively put a delay in to every call to dobet() function. That solution doesn't let you specify the exact "location" in your script of the delay... but if you're wanting a 1 minute delay to give you time to react and/or stop the bot, it should probably achieve that goal.
|
|
|
|
sree6020
Newbie
Offline
Activity: 51
Merit: 0
|
|
June 27, 2017, 07:17:28 PM |
|
When I select reset seed after 1 win check box ,it just delays the seed change if the win happens earlier.I want the betting to stop if the win happens earlier and only continue betting after a seed change.In short I just want to take only one win from a seed . Is there any program or code that can do this job.
|
|
|
|
chilly2k (OP)
Legendary
Offline
Activity: 1007
Merit: 1000
|
|
June 27, 2017, 08:50:17 PM |
|
When I select reset seed after 1 win check box ,it just delays the seed change if the win happens earlier.I want the betting to stop if the win happens earlier and only continue betting after a seed change.In short I just want to take only one win from a seed . Is there any program or code that can do this job.
There is a resetseed() function. But you do not know if it worked or not. At least I don't. That being the case, you have to know if the site your using allows the reset seed after an amount of time, or number of bets. If it's number of bets you could use a counter to keep track of the number of bets, and if you win before the counter reaches your goal, you can stop(). Else do the resetseed() and continue. If anyone know if the resetseed() provides a return code you can check, it would make this a little more fool proof....
|
|
|
|
maverick528
|
|
July 01, 2017, 01:31:08 PM |
|
chilly2k, wanted to thank you very much for this topic. While I programmed in several languages long time ago, Im slowly reading all your topic now to learn about LUA, and the interaction with dicebot. What I want to do is a script for my personal variation of martingale, but the most important thing other than the amount of the bets is that on certain conditions to switch bets from HIGH to LOW and viceversa, and also maybe change multiplier settings on the fly. I am going to use it only on PrimeDice. Thanks again.
|
|
|
|
thrilled
Newbie
Offline
Activity: 14
Merit: 0
|
|
July 01, 2017, 02:51:07 PM |
|
Quick and most likely an easy question for you...
The scripts I have been testing by copy and pasting in and running start() only executes one time.... can I in some way make it execute repeatingly?
/T
|
|
|
|
HCP
Legendary
Offline
Activity: 2086
Merit: 4363
<insert witty quote here>
|
|
July 02, 2017, 12:51:16 AM |
|
Sounds like you have a Stop condition set in the "Advanced" settings section. These settings are still "active" when in "Programmer" mode... so switch back to Advanced and make sure you dont have any stop conditions set that are causing it to stop (most likely a "stop if balance > xxx" etc)
|
|
|
|
haybee191
Newbie
Offline
Activity: 9
Merit: 0
|
|
July 06, 2017, 09:33:22 PM |
|
hello, i need help adding a command to the following script, its works in a modified martingale style, i would simply like you guys to help me add a command to it to make it stop when the multiplier reaches say x8
chance = 49.95 base = 0.00000001 count = 0 tot = 1 tot2 = 1 abc = 0 cba = 0 nextbet = base function dobet() if profit>0.000000001 then count = 0 tot = 1 tot2 = 1 abc = 0 cba = 0 base = 0.00000001 resetstats() end if base == base then tot = 1 tot2 = 1 end if base == base*2 then tot = 2 tot2 = 1 end if base == base*4 then tot = 4 tot2 = 1 end if base == base*8 then tot = 8 tot2 = 1 end if base == base*16 then tot = 16 tot2 = 1 end if base == base*32 then tot = 32 tot2 = 1 end if base == base*64 then tot = 64 tot2 = 1 end if base == base*128 then tot = 128 tot2 = 1 end if base<0.00000001 then base = 0.00000001 count = 0 abc = 0 cba = 0 end count = count+1 if count>10 and abc>cba then base = base/2 count = 0 abc = 0 cba = 0 end if count>10 and abc<cba then base = base*2 count = 0 abc = 0 cba = 0 end if win then abc = abc+tot nextbet = base else cba = cba+tot2 nextbet = base end end end end
|
|
|
|
HCP
Legendary
Offline
Activity: 2086
Merit: 4363
<insert witty quote here>
|
|
July 07, 2017, 02:58:59 AM |
|
Hi, firstly, you should indent the code to make it easier to read! Secondly, you should use the "code" tags... so that it doesn't make your post super long! chance = 49.95 base = 0.00000001 count = 0 tot = 1 tot2 = 1 abc = 0 cba = 0 nextbet = base
function dobet() if profit>0.000000001 then count = 0 tot = 1 tot2 = 1 abc = 0 cba = 0 base = 0.00000001 resetstats() end
if base == base then tot = 1 tot2 = 1 end if base == base*2 then tot = 2 tot2 = 1 end if base == base*4 then tot = 4 tot2 = 1 end if base == base*8 then tot = 8 tot2 = 1 end if base == base*16 then tot = 16 tot2 = 1 end if base == base*32 then tot = 32 tot2 = 1 end if base == base*64 then tot = 64 tot2 = 1 end if base == base*128 then tot = 128 tot2 = 1 end if base<0.00000001 then base = 0.00000001 count = 0 abc = 0 cba = 0 end count = count+1 if count>10 and abc>cba then base = base/2 count = 0 abc = 0 cba = 0 end if count>10 and abc<cba then base = base*2 count = 0 abc = 0 cba = 0 end if win then abc = abc+tot nextbet = base else cba = cba+tot2 nextbet = base end
end
Thirdly, the whole script is logically broken. None of those "if base == base * x" will ever evaluate to true... that's like saying: if 2 == 2 * 2... or if 2 == 2 * 16... obviously, that can NEVER happen. You will need to use a different variable... something like "betAmount" so you can say "if betAmount == base * 2 then"... otherwise you script looks like it isn't really going to do anything. As for making the script stop if the multiplier is 8... I would think that putting stop() command in the "if betAmount == base * 8 then" section would stop it. if betAmount == base * 8 then stop() end
|
|
|
|
B4RF
|
|
July 07, 2017, 06:23:12 AM |
|
hello, i need help adding a command to the following script, its works in a modified martingale style, i would simply like you guys to help me add a command to it to make it stop when the multiplier reaches say x8 chance = 49.95 base = 0.00000001 count = 0 tot = 1 tot2 = 1 abc = 0 cba = 0 nextbet = base function dobet() if profit>0.000000001 then count = 0 tot = 1 tot2 = 1 abc = 0 cba = 0 base = 0.00000001 resetstats() end if base == base then tot = 1 tot2 = 1 end if base == base*2 then tot = 2 tot2 = 1 end if base == base*4 then tot = 4 tot2 = 1 end if base == base*8 then tot = 8 tot2 = 1 end if base == base*16 then tot = 16 tot2 = 1 end if base == base*32 then tot = 32 tot2 = 1 end if base == base*64 then tot = 64 tot2 = 1 end if base == base*128 then tot = 128 tot2 = 1 end if base<0.00000001 then base = 0.00000001 count = 0 abc = 0 cba = 0 end count = count+1 if count>10 and abc>cba then base = base/2 count = 0 abc = 0 cba = 0 end if count>10 and abc<cba then base = base*2 count = 0 abc = 0 cba = 0 end if win then abc = abc+tot nextbet = base else cba = cba+tot2 nextbet = base end end end end
Looks like you invested some time into your strategie but there are some mistakes in your code (like tot2 is always 1, the equations with base as mentioned by HCP and the check if base is smaler then minbet is before dividing by 2 which might cause problems) and I think there is an easier way to do the betting you are looking for. Would you mind explaining what your script is supposed to do? I would rewrite the code for you.
|
▄▄▄████████▄▄▄ ▄██████████████████▄ ▄██████████████████████▄ ██████████████████████████ ████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ████████████████████████████ ██████████████████████████ ▀██████████████████████▀ ▀██████████████████▀ ▀▀▀████████▀▀▀
| | | | ███████ ██████████ ██████████ ██████████ ██████████ ██████████ ██████████ ██████████ ██████████ ██████████ ██████████ ██████████ ███████ | | | | ▄▄██████████████▄▄ ▄██████████████████████▄ █████ ▄██████████████████████████▄ █████ ████ ▄▄▄▄▄ ▄▄▄▄▄▄ ▄▄▄▄▄ ████ ▄██▀ ████ █████ ██████ █████ ████ ▄██▀ ████ █████ ██████ █████ ████ ██▀ ████ █████ ██████ █████ ████ ██ ████ ▀▀▀▀▀ ▀▀▀▀▀▀ ▀▀▀▀▀ ████ ▄██████▄ ████████████████████████████ ████████ ███████▀ ▀███████ ▀██████▀ █████▀ ▀█████ ▀██████████████████████████▀ ▀▀████████████████████▀▀ | | |
|
|
|
haybee191
Newbie
Offline
Activity: 9
Merit: 0
|
|
July 07, 2017, 07:06:43 AM |
|
thanks HCP and B4RF, already made modifications using HCP's suggestion, good so far, i will definitely let you know if i encounter anymore trouble
|
|
|
|
retampan
|
|
July 07, 2017, 02:52:19 PM |
|
want to ask for experienced gambler on 999dice using Seuntjie Dicebot currently have 100k sats , im betting on 0.0000001 (the low balance for bet) with 33 chance to win and 1.75 multiplier on loss. can i reach 1million sats safely with that settings? i know its verryyy slowly to reach and i think its possible.
|
|
|
|
B4RF
|
|
July 07, 2017, 07:23:58 PM |
|
want to ask for experienced gambler on 999dice using Seuntjie Dicebot currently have 100k sats , im betting on 0.0000001 (the low balance for bet) with 33 chance to win and 1.75 multiplier on loss. can i reach 1million sats safely with that settings? i know its verryyy slowly to reach and i think its possible.
There is no save way to earn in gambling and especially not when you play on 999dice...I have seen many scam accusations about their site.
|
▄▄▄████████▄▄▄ ▄██████████████████▄ ▄██████████████████████▄ ██████████████████████████ ████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ████████████████████████████ ██████████████████████████ ▀██████████████████████▀ ▀██████████████████▀ ▀▀▀████████▀▀▀
| | | | ███████ ██████████ ██████████ ██████████ ██████████ ██████████ ██████████ ██████████ ██████████ ██████████ ██████████ ██████████ ███████ | | | | ▄▄██████████████▄▄ ▄██████████████████████▄ █████ ▄██████████████████████████▄ █████ ████ ▄▄▄▄▄ ▄▄▄▄▄▄ ▄▄▄▄▄ ████ ▄██▀ ████ █████ ██████ █████ ████ ▄██▀ ████ █████ ██████ █████ ████ ██▀ ████ █████ ██████ █████ ████ ██ ████ ▀▀▀▀▀ ▀▀▀▀▀▀ ▀▀▀▀▀ ████ ▄██████▄ ████████████████████████████ ████████ ███████▀ ▀███████ ▀██████▀ █████▀ ▀█████ ▀██████████████████████████▀ ▀▀████████████████████▀▀ | | |
|
|
|
Kanzashi
Newbie
Offline
Activity: 2
Merit: 0
|
|
July 08, 2017, 09:06:26 AM |
|
hey guys im creating my first ever basic script (im new to this bare with me) and im trying to make it so if the bet amount reaches > 0.00000050 and you win it resets to base but if you still lose after its > 0.00000050 you keep multiplying by the multiplier, im using the basic martingale script and this is what i have so far (i think its completely wrong since its not working XD) any help would be appreciated thanks!
chance=24.75 multiplier=1.5 winmultiplier=0.78 betsize = nextbet onwin=win base=0.00000002 function dobet()
if (win) then nextbet=previousbet*winmultiplier if (betsize > 0.00000050) then nextbet=base else nextbet=previousbet*multiplier end end end
|
|
|
|
B4RF
|
|
July 08, 2017, 09:36:55 AM |
|
hey guys im creating my first ever basic script (im new to this bare with me) and im trying to make it so if the bet amount reaches > 0.00000050 and you win it resets to base but if you still lose after its > 0.00000050 you keep multiplying by the multiplier, im using the basic martingale script and this is what i have so far (i think its completely wrong since its not working XD) any help would be appreciated thanks!
chance=24.75 multiplier=1.5 winmultiplier=0.78 betsize = nextbet onwin=win base=0.00000002 function dobet()
if (win) then nextbet=previousbet*winmultiplier if (betsize > 0.00000050) then nextbet=base else nextbet=previousbet*multiplier end end end
You never change the variable betsize so the if statement can never be fulfilled (simply use nextbet instead). And what is your script supposed to do when you lose? Right now it keeps betting the same amount over and over until you hit a win.
|
▄▄▄████████▄▄▄ ▄██████████████████▄ ▄██████████████████████▄ ██████████████████████████ ████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ██████████████████████████████ ████████████████████████████ ██████████████████████████ ▀██████████████████████▀ ▀██████████████████▀ ▀▀▀████████▀▀▀
| | | | ███████ ██████████ ██████████ ██████████ ██████████ ██████████ ██████████ ██████████ ██████████ ██████████ ██████████ ██████████ ███████ | | | | ▄▄██████████████▄▄ ▄██████████████████████▄ █████ ▄██████████████████████████▄ █████ ████ ▄▄▄▄▄ ▄▄▄▄▄▄ ▄▄▄▄▄ ████ ▄██▀ ████ █████ ██████ █████ ████ ▄██▀ ████ █████ ██████ █████ ████ ██▀ ████ █████ ██████ █████ ████ ██ ████ ▀▀▀▀▀ ▀▀▀▀▀▀ ▀▀▀▀▀ ████ ▄██████▄ ████████████████████████████ ████████ ███████▀ ▀███████ ▀██████▀ █████▀ ▀█████ ▀██████████████████████████▀ ▀▀████████████████████▀▀ | | |
|
|
|
AMONRA75
|
|
July 08, 2017, 01:25:21 PM Last edit: July 08, 2017, 09:52:07 PM by AMONRA75 |
|
hi all,
i need a script like this:
array like this...
chances = {11,12,13} bets = {1000,2000,3000} increase = {1.16,1.17,1.18}
but change random when profit is 0.1 btc
anyone help me?? tnx
|
|
|
|
maverick528
|
|
July 08, 2017, 02:17:01 PM |
|
want to ask for experienced gambler on 999dice using Seuntjie Dicebot currently have 100k sats , im betting on 0.0000001 (the low balance for bet) with 33 chance to win and 1.75 multiplier on loss. can i reach 1million sats safely with that settings? i know its verryyy slowly to reach and i think its possible.
You can also try it on PrimeDice, I think its a safer place, truly provably fair.
|
|
|
|
haybee191
Newbie
Offline
Activity: 9
Merit: 0
|
|
July 09, 2017, 10:48:43 AM |
|
hello guys, please i need help adding a command to the following script, that will make the bot reset seed if i get 3 losses in a row chance = 49.95 base = 0.00000001 count = 0 tot = 1 tot2 = 1 abc = 0 cba = 0 nextbet = base function dobet() if profit>0.000000001 then count = 0 tot = 1 tot2 = 1 abc = 0 cba = 0 base = 0.00000001 resetstats() end if base == base then tot = 1 tot2 = 1 end if base == base*2 then tot = 2 tot2 = 1 end if base == base*4 then tot = 4 tot2 = 1 end if base == base*8 then tot = 8 tot2 = 1 end if base == base*16 then tot = 16 tot2 = 1 end if base == base*32 then tot = 32 tot2 = 1 end if base == base*64 then tot = 64 tot2 = 1 end if base == base*128 then tot = 128 tot2 = 1 end if base<0.00000001 then base = 0.00000001 count = 0 abc = 0 cba = 0 end count = count+1 if count>10 and abc>cba then base = base/2 count = 0 abc = 0 cba = 0 end if count>10 and abc<cba then base = base*2 count = 0 abc = 0 cba = 0 end if win then abc = abc+tot nextbet = base else cba = cba+tot2 nextbet = base end end end end
thanks
|
|
|
|
HCP
Legendary
Offline
Activity: 2086
Merit: 4363
<insert witty quote here>
|
|
July 09, 2017, 11:39:46 PM |
|
i need a script like this:
array like this... chances = {11,12,13} bets = {1000,2000,3000} increase = {1.16,1.17,1.18} but change random when profit is 0.1 btc
It isn't very clear what you actually want your script to do. Do you mean that you want it to randomly select a chance, bet and multiplier from your Array when your profit is > 0.1BTC? What should it do when profit is < 0.1 BTC? hello guys, please i need help adding a command to the following script, that will make the bot reset seed if i get 3 losses in a row chance = 49.95 base = 0.00000001 count = 0 tot = 1 tot2 = 1 abc = 0 cba = 0 nextbet = base function dobet() if profit>0.000000001 then count = 0 tot = 1 tot2 = 1 abc = 0 cba = 0 base = 0.00000001 resetstats() end if base == base then tot = 1 tot2 = 1 end if base == base*2 then tot = 2 tot2 = 1 end if base == base*4 then tot = 4 tot2 = 1 end if base == base*8 then tot = 8 tot2 = 1 end if base == base*16 then tot = 16 tot2 = 1 end if base == base*32 then tot = 32 tot2 = 1 end if base == base*64 then tot = 64 tot2 = 1 end if base == base*128 then tot = 128 tot2 = 1 end if base<0.00000001 then base = 0.00000001 count = 0 abc = 0 cba = 0 end count = count+1 if count>10 and abc>cba then base = base/2 count = 0 abc = 0 cba = 0 end if count>10 and abc<cba then base = base*2 count = 0 abc = 0 cba = 0 end if win then abc = abc+tot nextbet = base else cba = cba+tot2 nextbet = base end end end end
thanks Firstly, as previously mentioned, that script is broken... all those "if base == base*2", "if base == base*4" etc... will NEVER return true... they need to be fixed for your script to do anything. To reset the seed, check the "currentstreak" inbuilt variable in the "loss" section of your script (it's the "else" section of your "if win then")... currentstreak shows the number of wins or losses in the current streak. Win streaks are are positive number, loss streak are negative number ie. currentstreak == 10 is a 10 win streak currentstreak == -5 is a 5 loss streak ... function dobet() ... if win then abc = abc+tot nextbet = base else cba = cba+tot2 nextbet = base if currentstreak == -3 then resetseed() end end ... end
|
|
|
|
|