Hello Guest

Recent Posts

Pages: 1 ... 6 7 [8] 9 10
71
Programmer Mode / Re: How to tip from DuckDice?
« Last post by Bullseye on June 10, 2021, 01:40:28 pm »
OK, i got this working...

i changed my wdaccount variable from:
wdaccount = bobdobbs
to
wdaccount = "bobdobbs"

so, tip(3,wdaccount) works now, so i guess tip(3,"bobdobbs") would work.  Next question:
Duckdice chat has a tip function like this: /tip {username} {amount} {currency} {comment?} {silent?}

Can i use that in my script to hide the tip from the chat?  Like tip(3,"bobdobbs",silent) ?
72
Programmer Mode / Re: Script with every Streak and % of Balance
« Last post by Seuntjie on June 10, 2021, 07:26:22 am »
kickit=0
losebb=balance/0001 --check that math, though

function dobet()

if win then kickit=1 nextbet=losebb end

if (!win) and kickit=1 then
nextbet=previousbet*10
end
--at some point you will want to set kickit back to zero.  maybe at a threshold?  but you will probably be broke by then unless your chance is high.  your post is pretty vague.
end

You're dividing the balance by 1, so your basebet will be your balance. 100% = /1. So 0.0001% = /0.000001
73
Programmer Mode / Re: Script with every Streak and % of Balance
« Last post by Bullseye on June 09, 2021, 08:12:37 pm »
kickit=0
losebb=/0.000001 --Seuntjie checked that math :)

function dobet()

if win then kickit=1 nextbet=losebb end

if (!win) and kickit=1 then
nextbet=previousbet*10
end
--at some point you will want to set kickit back to zero.  maybe at a threshold?  but you will probably be broke by then unless your chance is high.  your post is pretty vague.
end
74
Programmer Mode / Re: Can anybody help me to write a script
« Last post by Bullseye on June 09, 2021, 07:58:43 pm »
what does this mean?:

Bot catch series less than 5000 or more than 5000

and what chance do you want to play?
75
Programmer Mode / Re: Target reached.. now restart again
« Last post by Bullseye on June 09, 2021, 07:56:52 pm »
change the following part:


if (balance) >= profittarget then
--stop();
print(balance)
print("TARGET ACHIEVED!!!")
startbalance=balance
profittarget = balance + 0.1
nextbet=basebet

end

That should work.  You may have to also add any other variables from above your dobet() if they get changed after the start.

it won't stop in the console, but you could add some variables to keep track of how many times you reached your profittarget and the total.
76
Programmer Mode / How to tip from DuckDice?
« Last post by Bullseye on June 09, 2021, 07:47:49 pm »
I have tried the following, but neither seem to work

tip(username,amount)
tip(amount,username)
withdraw(username, amount)


is there a way to tip another user on duckdice in program mode?

i saw this in the dicebot program:
Code: [Select]
public override bool InternalSendTip(string User, decimal amount)does this mean i can use InternalSendTip(user,amount) ?

Thank you,
77
Programmer Mode / Re: Target reached.. now restart again
« Last post by Davillen on June 01, 2021, 10:16:40 pm »
Can anyone help me out?
78
Bugs and Suggestions / Possible bug with Duckdice
« Last post by Darv on May 24, 2021, 04:45:01 pm »
I think I have run across a possible bug with duckdice.  I cant seem to reset the server seed, every time the command runs in my script the bot stops and I get a failed to place bet error.  Is there a workaround for this?
79
Programmer Mode / Can anybody help me to write a script
« Last post by desuxgod on May 23, 2021, 12:17:40 pm »
So idea is:
Bot catch series less than 5000 or more than 5000.
Min bet 0,00000001
Timer between bets about 1sec
On loose streak we need 5 rolls, after that we suppose that loose streak continue and raise bet "balance/1000"
If loose bets back to minimum
If win we raise until 1st loose
80
Programmer Mode / Re: nextbet incrise proportionally to the balance
« Last post by Seuntjie on May 17, 2021, 05:10:52 pm »
Is your balance large enough for you to place a viable bet with that factor? Secondly is it large enough to see a viable increase from that factor?

For example if your balance is 0.00010000, your bet would be 0.00010000/1410526=0.000000000007, which is obviously far below minimum bet.
If your balance is 1, you first bet would be 0.00000071. Meaning your balance after the bet would be 1.00000071 (assuming 2x payout), thus making your second bet 0.00000071.... It could take hundreds of bets before you see a 1 sat increase in your bet size.

Also, see the tutorials on https://forum.seuntjie.com/index.php?topic=2.0, specifically the one about variables. There are built in variables that tracks bets, wins and losses and functions to reset those values if needed.
Pages: 1 ... 6 7 [8] 9 10