Bitcoin Forum
October 21, 2017, 05:03:57 AM
 News: Latest stable version of Bitcoin Core: 0.15.0.1  [Torrent]. (New!)
 Home Help Search Donate Login Register
 Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 [29] 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
 Author Topic: Seuntjie' Dice bot programmers mode discussion.  (Read 48398 times)
chilly2k
Legendary

Offline

Activity: 920

 April 28, 2017, 09:57:38 PM

Hello, im new on programmingmode and I need some help

what means resetstats()? reset the losses and winning events?

see this is more or less the thing that i wish configure

If I lose 1 to 4 times do nothing

If i lost 5 times and after i won 1 time change the bet  by multiply losses*lastbet and still the same on the losses and winning events

and if i lost 1 time and won 1 time twice (lost,win,lost,win) return to base bet and reset the winning and lossed statics (to the losses*lastbet multiply dont take effects all the losses)

and if i won 2 times on line reset to and return to base

thank you guys
resetstats() resets all of your stats that the bot displays.

you can use the currentstreak variable and each time it is equal to 1 or -1 you know the bet switched from a lose to a win or the other way around.  if it goes to 2 or -2 you had 2 wins or 2 loses.  so we reset the switch count.  if switch count is 4 or more when you win, it's your LWLW situation. the reason we check for greater then is because it might actually be a WLWLW in which case the count will be 5 before you see it on the winning side.

so
fivelosses = false
switchcount = 0
function dobet()
if (win) then
if currentstreak == 1 then
switchcount += 1
else   // you won more then 1 time in a row so you could reset and return to base here.
switchcount = 0
end
if fivelosses then
fivelosses = false
change the bet  by multiply losses*lastbet and still the same on the losses and winning events
end
if switchcount > 3 then
return to base bet and reset the winning and lossed statics (to the losses*lastbet multiply dont take effects all the losses)
switchcount = 0      //reset switchcount or not depending on what you want.
end

else
if currentstreak == -1 then
switchcount +=1
else
switchcount = 0
end
if currentstreak < -4 then      I assumed you ment 5 times in a row.
fivelosses = true
end
end
end

thank you sir, im trying to run the script but i got some LUA ERROR on fivelosses variable i think

Try cut/pasting the message, or do a screen print.

That script as written won't actually run.  I just stuck text in there where I didn't quite understand what you wanted to do.  Also there is some text that should be commented out.  I assumed you ment 5 times in a row.   should have been a comment.

 .Beyond The Void. ██▄████▄█████████████████████████████████████████████████████████████████  ██████████  ███████████████████████▄██████████████████████▄██████████████████████████████████████████████████████████████████████████████▀██████████████████████▀███▀ ██████████ ▀██████              ███ ..THE FIRST.BLOCKCHAIN RTS ✸ .FREE-TO-PLAY.MODEL. ✸ ..NEXIUM.GAME TOKEN ✸ .TRUE OWNERSHIP.CONCEPT.
1508562237
Hero Member

Offline

Posts: 1508562237

Ignore
 1508562237

1508562237
 Report to moderator
1508562237
Hero Member

Offline

Posts: 1508562237

Ignore
 1508562237

1508562237
 Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1508562237
Hero Member

Offline

Posts: 1508562237

Ignore
 1508562237

1508562237
 Report to moderator
1508562237
Hero Member

Offline

Posts: 1508562237

Ignore
 1508562237

1508562237
 Report to moderator
1508562237
Hero Member

Offline

Posts: 1508562237

Ignore
 1508562237

1508562237
 Report to moderator
Nicoletta
Newbie

Offline

Activity: 14

...just trying

 April 28, 2017, 11:21:58 PM

Ok so i want it to be
Lo
Lo
Hi
Hi
Lo
Lo
Lo
Hi
Hi
Hi

multiply on lose going to the next bet on win
I know that what i have is not working but i need to know why?
Code:
chance=7.14
multiplier=1.1555
base=0.00000001
bethigh = false
function dobet()
if !win then
else
nextbet=previousbet*multiplier
else
----What to put there if i want tit to be this
chance=7.14
multiplier=1.1555
base=0.00000001
bethigh = false
if !win then
nextbet=previousbet*multiplier
else
chance=7.14
multiplier=1.1555
base=0.00000001
bethigh = false
if !win then
nextbet=previousbet*multiplier
else
chance=7.14
multiplier=1.1555
base=0.00000001
bethigh = true
if !win then
nextbet=previousbet*multiplier
else
chance=7.14
multiplier=1.1555
base=0.00000001
bethigh = true
if !win then
nextbet=previousbet*multiplier
chance=7.14
multiplier=1.1
base=0.00000001
bethigh = false
if !win then
nextbet=previousbet*multiplier
else
chance=7.14
multiplier=1.1555
base=0.00000001
bethigh = false
if !win then
nextbet=previousbet*multiplier
else
chance=7.14
multiplier=1.1555
base=0.00000001
bethigh = false
if !win then
nextbet=previousbet*multiplier
else
chance=7.14
multiplier=1.1555
base=0.00000001
bethigh = true
if !win then
nextbet=previousbet*multiplier chance=7.14
multiplier=1.1555
base=0.00000001
bethigh = true
if !win then
nextbet=previousbet*multiplier chance=7.14
multiplier=1.1555
base=0.00000001
bethigh = true
if !win then
nextbet=previousbet*multiplier
---- now i want it to go to bet 1
end
end

On my Way
ponchofcult
Newbie

Offline

Activity: 5

 April 28, 2017, 11:39:46 PM

Hello, im new on programmingmode and I need some help

what means resetstats()? reset the losses and winning events?

see this is more or less the thing that i wish configure

If I lose 1 to 4 times do nothing

If i lost 5 times and after i won 1 time change the bet  by multiply losses*lastbet and still the same on the losses and winning events

and if i lost 1 time and won 1 time twice (lost,win,lost,win) return to base bet and reset the winning and lossed statics (to the losses*lastbet multiply dont take effects all the losses)

and if i won 2 times on line reset to and return to base

thank you guys
resetstats() resets all of your stats that the bot displays.

you can use the currentstreak variable and each time it is equal to 1 or -1 you know the bet switched from a lose to a win or the other way around.  if it goes to 2 or -2 you had 2 wins or 2 loses.  so we reset the switch count.  if switch count is 4 or more when you win, it's your LWLW situation. the reason we check for greater then is because it might actually be a WLWLW in which case the count will be 5 before you see it on the winning side.

so
fivelosses = false
switchcount = 0
function dobet()
if (win) then
if currentstreak == 1 then
switchcount += 1
else   // you won more then 1 time in a row so you could reset and return to base here.
switchcount = 0
end
if fivelosses then
fivelosses = false
change the bet  by multiply losses*lastbet and still the same on the losses and winning events
end
if switchcount > 3 then
return to base bet and reset the winning and lossed statics (to the losses*lastbet multiply dont take effects all the losses)
switchcount = 0      //reset switchcount or not depending on what you want.
end

else
if currentstreak == -1 then
switchcount +=1
else
switchcount = 0
end
if currentstreak < -4 then      I assumed you ment 5 times in a row.
fivelosses = true
end
end
end

thank you sir, im trying to run the script but i got some LUA ERROR on fivelosses variable i think

Try cut/pasting the message, or do a screen print.

That script as written won't actually run.  I just stuck text in there where I didn't quite understand what you wanted to do.  Also there is some text that should be commented out.  I assumed you ment 5 times in a row.   should have been a comment.

yes sorry and i left some things, like base bet ok i will change some numbers that are wrong and put only the information if you understant better that i want

Base bet:0.00000001
on every L-L-L-W multiply the last bet and the losses count from the LAST WIN only (the last reset i think)
BUT if W-W return to base bet (0.00000001) and reset the streak count
in W-L-W-L-W return to base bet and reset the streak count too

shorter and i think is the same that i want, more logic thank you so much, if you can or you have a guide with every variable and their function could help me the next time, the website is a litle confussing an excel table could be great, thanks

Skarner21
Hero Member

Offline

Activity: 532

Don't Trust anyone

 April 28, 2017, 11:44:27 PM

Ok so i want it to be
Lo
Lo
Hi
Hi
Lo
Lo
Lo
Hi
Hi
Hi

multiply on lose going to the next bet on win
I know that what i have is not working but i need to know why?
Code:
chance=7.14
multiplier=1.1555
base=0.00000001
bethigh = false
function dobet()
if !win then
else
nextbet=previousbet*multiplier
else
----What to put there if i want tit to be this
chance=7.14
multiplier=1.1555
base=0.00000001
bethigh = false
if !win then
nextbet=previousbet*multiplier
else
chance=7.14
multiplier=1.1555
base=0.00000001
bethigh = false
if !win then
nextbet=previousbet*multiplier
else
chance=7.14
multiplier=1.1555
base=0.00000001
bethigh = true
if !win then
nextbet=previousbet*multiplier
else
chance=7.14
multiplier=1.1555
base=0.00000001
bethigh = true
if !win then
nextbet=previousbet*multiplier
chance=7.14
multiplier=1.1
base=0.00000001
bethigh = false
if !win then
nextbet=previousbet*multiplier
else
chance=7.14
multiplier=1.1555
base=0.00000001
bethigh = false
if !win then
nextbet=previousbet*multiplier
else
chance=7.14
multiplier=1.1555
base=0.00000001
bethigh = false
if !win then
nextbet=previousbet*multiplier
else
chance=7.14
multiplier=1.1555
base=0.00000001
bethigh = true
if !win then
nextbet=previousbet*multiplier chance=7.14
multiplier=1.1555
base=0.00000001
bethigh = true
if !win then
nextbet=previousbet*multiplier chance=7.14
multiplier=1.1555
base=0.00000001
bethigh = true
if !win then
nextbet=previousbet*multiplier
---- now i want it to go to bet 1
end
end

This script will work as hihilowlow and hihihi and lowlowlow?
This is my first time and i want to try the bot if this is working on yolodice did you try this code in yolo? or this bot only works in other dice game?

▄▄▄▄▄▄▄▄▄▄▄▄
▄▄███▀▀▀▀▀▀▀▀▀▀███▄▄
▄██▀▀   ▄▄▄▄▄▄▄▄▄▄   ▀▀██▄
▄██▀  ▄▄████▀▀▀▀▀▀▀███▄▄  ▀██▄
▄██▀  ▄██▀▀   ▄▄▄▄▄▄▄  ▀▀██▄  ▀██▄
▐██   ██▀   ▄███▀▀▀▀▀███▄  ▀██   ██▌
██▌  ██▌   ██▀         ▀██  ▐██  ▐██
▐██   ██   ▐██           ██▌  ██▌  ██▌
██▌  ▐█▄   ██▄        ▄██▀  ▄█▀  ▐██
██▄  ▀██▄  ▀██▄    ▄██▀  ▄██▀  ▄██
▀██▄  ▀██▄  ▀█  ▄██▀  ▄██▀  ▄██▀
▀██▄  ▀██▄  ▄██▀  ▄██▀  ▄██▀
▀██▄  ▀████▀  ▄██▀  ▄██▀
▀██▄  ▀▀  ▄██▀  ▄██▀
▀██▄  ▄██▀  ▄██▀
▀████▀  ▄██▀
▀▀  ▄██▀
▀▀▀
T r i p p k i..
makes travel more rewarding
─ ─── ────..Hotel Booking & Rewards Platform
 ▄▄██████▄▄  ▄██████████████▄▐██████▀    ▀██████▌██████▌      ▐██████▐██████▄    ▄██████▌ ▐████████████████▌   ▀████████████▀     ▐█████████       ███████        █████         ███          ▀ .Valuable Rewards. ▄▄██████▄▄  ▄██████████████▄▐██████▀    ▀██████▌██████▌      ▐██████▐██████▄    ▄██████▌ ▐████████████████▌   ▀████████████▀     ▐█████████       ███████        █████         ███          ▀ .Better Relationship. ▄▄██████▄▄  ▄██████████████▄▐██████▀    ▀██████▌██████▌      ▐██████▐██████▄    ▄██████▌ ▐████████████████▌   ▀████████████▀     ▐█████████       ███████        █████         ███          ▀ .Distributed Ecosystem.
,
,
chilly2k
Legendary

Offline

Activity: 920

 April 28, 2017, 11:56:47 PM

Ok so i want it to be
Lo
Lo
Hi
Hi
Lo
Lo
Lo
Hi
Hi
Hi

multiply on lose going to the next bet on win
I know that what i have is not working but i need to know why?
Code:
chance=7.14
multiplier=1.1555
base=0.00000001
bethigh = false
function dobet()
if !win then
else
nextbet=previousbet*multiplier
else
----What to put there if i want tit to be this
chance=7.14
multiplier=1.1555
base=0.00000001
bethigh = false
if !win then
nextbet=previousbet*multiplier
else
chance=7.14
multiplier=1.1555
base=0.00000001
bethigh = false
if !win then
nextbet=previousbet*multiplier
else
chance=7.14
multiplier=1.1555
base=0.00000001
bethigh = true
if !win then
nextbet=previousbet*multiplier
else
chance=7.14
multiplier=1.1555
base=0.00000001
bethigh = true
if !win then
nextbet=previousbet*multiplier
chance=7.14
multiplier=1.1
base=0.00000001
bethigh = false
if !win then
nextbet=previousbet*multiplier
else
chance=7.14
multiplier=1.1555
base=0.00000001
bethigh = false
if !win then
nextbet=previousbet*multiplier
else
chance=7.14
multiplier=1.1555
base=0.00000001
bethigh = false
if !win then
nextbet=previousbet*multiplier
else
chance=7.14
multiplier=1.1555
base=0.00000001
bethigh = true
if !win then
nextbet=previousbet*multiplier chance=7.14
multiplier=1.1555
base=0.00000001
bethigh = true
if !win then
nextbet=previousbet*multiplier chance=7.14
multiplier=1.1555
base=0.00000001
bethigh = true
if !win then
nextbet=previousbet*multiplier
---- now i want it to go to bet 1
end
end

dobet runs after EVERY bet.  So if your first check for !win is true, it's true for all of your checks.  It doesn't do the first check and roll, then do the second and roll.

So your code just needs to check if !win. once.  You can then use other variables to keep track of where you are in your sequence.

Ok so i want it to be
Lo
Lo
Hi
Hi
Lo
Lo
Lo
Hi
Hi
Hi
Does this mean you want the bot to bet on the low side 2 times then the high side 2 times then low 3 then high 3, then back to the top?

You'll have to look this up.  But there is a way to create an array in LUA  it might be something like
betseq = {"Lo","Lo","Hi","Hi","Lo" etc......}

then make  rollcounter = 1
and
bethigh = false

These would go in the beginning before the dobet function.

then right after dobet
rollcounter += 1  //bump roll counter to point to the next place in the array.

if betseq[rollcounter] == "Lo" then
bethigh = false
else
bethigh = true
end
if rollcounter == 10 then  //reset roll counter when you hit the end of the array.
rollcounter = 0
end

 .Beyond The Void. ██▄████▄█████████████████████████████████████████████████████████████████  ██████████  ███████████████████████▄██████████████████████▄██████████████████████████████████████████████████████████████████████████████▀██████████████████████▀███▀ ██████████ ▀██████              ███ ..THE FIRST.BLOCKCHAIN RTS ✸ .FREE-TO-PLAY.MODEL. ✸ ..NEXIUM.GAME TOKEN ✸ .TRUE OWNERSHIP.CONCEPT.
AMONRA75
Full Member

Offline

Activity: 143

 April 29, 2017, 12:04:35 AM

hi guy!

i need to set chance from array like this:
chance =  {48,50,52,54}

and when win set chance random from the array

anyone help me?
Nicoletta
Newbie

Offline

Activity: 14

...just trying

 April 29, 2017, 12:51:56 AM

Ok so i want it to be
Lo
Lo
Hi
Hi
Lo
Lo
Lo
Hi
Hi
Hi

multiply on lose going to the next bet on win
I know that what i have is not working but i need to know why?
Code:
chance=7.14
multiplier=1.1555
base=0.00000001
bethigh = false
function dobet()
if !win then
else
nextbet=previousbet*multiplier
else
----What to put there if i want tit to be this
chance=7.14
multiplier=1.1555
base=0.00000001
bethigh = false
if !win then
nextbet=previousbet*multiplier
else
chance=7.14
multiplier=1.1555
base=0.00000001
bethigh = false
if !win then
nextbet=previousbet*multiplier
else
chance=7.14
multiplier=1.1555
base=0.00000001
bethigh = true
if !win then
nextbet=previousbet*multiplier
else
chance=7.14
multiplier=1.1555
base=0.00000001
bethigh = true
if !win then
nextbet=previousbet*multiplier
chance=7.14
multiplier=1.1
base=0.00000001
bethigh = false
if !win then
nextbet=previousbet*multiplier
else
chance=7.14
multiplier=1.1555
base=0.00000001
bethigh = false
if !win then
nextbet=previousbet*multiplier
else
chance=7.14
multiplier=1.1555
base=0.00000001
bethigh = false
if !win then
nextbet=previousbet*multiplier
else
chance=7.14
multiplier=1.1555
base=0.00000001
bethigh = true
if !win then
nextbet=previousbet*multiplier chance=7.14
multiplier=1.1555
base=0.00000001
bethigh = true
if !win then
nextbet=previousbet*multiplier chance=7.14
multiplier=1.1555
base=0.00000001
bethigh = true
if !win then
nextbet=previousbet*multiplier
---- now i want it to go to bet 1
end
end

dobet runs after EVERY bet.  So if your first check for !win is true, it's true for all of your checks.  It doesn't do the first check and roll, then do the second and roll.

So your code just needs to check if !win. once.  You can then use other variables to keep track of where you are in your sequence.

Ok so i want it to be
Lo
Lo
Hi
Hi
Lo
Lo
Lo
Hi
Hi
Hi
Does this mean you want the bot to bet on the low side 2 times then the high side 2 times then low 3 then high 3, then back to the top?

You'll have to look this up.  But there is a way to create an array in LUA  it might be something like
betseq = {"Lo","Lo","Hi","Hi","Lo" etc......}

then make  rollcounter = 1
and
bethigh = false

These would go in the beginning before the dobet function.

then right after dobet
rollcounter += 1  //bump roll counter to point to the next place in the array.

if betseq[rollcounter] == "Lo" then
bethigh = false
else
bethigh = true
end
if rollcounter == 10 then  //reset roll counter when you hit the end of the array.
rollcounter = 0
end

Thanks for some pointer but now it is way over my level.
I wonder if i will put the counter would it not count lost multiplied games to?

On my Way
chilly2k
Legendary

Offline

Activity: 920

 April 29, 2017, 01:51:17 AM

Thanks for some pointer but now it is way over my level.
I wonder if i will put the counter would it not count lost multiplied games to?

Yes as I showed it, it would just bet lo lo hi hi lo lo lo etc. it doesn't check if the bet won or lost.    Which is exactly what you asked for.  Notice I didn't say wanted.....    You need to be very explicit, when your asking for something to be programmed.

My idea and your often will not be the same...

If you just wanted to switch after a win you could move that code to the else path of your !win if statement.

If you think about it.  The initialization part of the script is almost like filling in the website getting ready to make your first bet.  The Dobet function is the thought process you go thought for every other bet.
So you roll the first time.

What are you going to do if you win,
And what are you going to do if you lose.

if win then
This is what I'm going to do if I win.
else
This is what I'm going to do if I lose
end

When the bot hits the last end statement (ending the function) it rolls again.
and dobet gets called again with the new results.

 .Beyond The Void. ██▄████▄█████████████████████████████████████████████████████████████████  ██████████  ███████████████████████▄██████████████████████▄██████████████████████████████████████████████████████████████████████████████▀██████████████████████▀███▀ ██████████ ▀██████              ███ ..THE FIRST.BLOCKCHAIN RTS ✸ .FREE-TO-PLAY.MODEL. ✸ ..NEXIUM.GAME TOKEN ✸ .TRUE OWNERSHIP.CONCEPT.
HCP
Sr. Member

Offline

Activity: 392

<insert witty quote here>

 April 29, 2017, 02:01:31 AM

You'll have to look this up.  But there is a way to create an array in LUA  it might be something like
betseq = {"Lo","Lo","Hi","Hi","Lo" etc......}
Yep, that is exactly how you create an "array" (in LUA they are "tables")...

And just a FYI, the convention in LUA is to index Arrays from 1... don't start counting at 0 like you would in C or Java etc

hi guy!

i need to set chance from array like this:
chance =  {48,50,52,54}

and when win set chance random from the array

anyone help me?
Firstly, don't call your array "chance"... that is a built in variable that the bot uses to send the chance value to the dicesite

Code:
chanceArray = {48,50,52,54}

if win then
chance = chanceArray[math.random(#chanceArray)]
end

This will pick a "random" value from the chanceArray... the #chanceArray value is the number of items in the Array... so you can add more values or take some out and the code will still run without generating an "Index Out of Bounds" type error

 ░░░░░▄▄██████▄▄░░▄████▀▀▀▀▀▀████▄░███▀░░░░░░░░░░▀█▀████░░░▄██████▄▄░░░██░░░░░█████████░░░░██▌░░░░█████████████████░░░░█████████████████░░░░░███████████████████▄░░▀██████▀░░░████▀█▄▄░░░░░░░░░░▄███░░▀████▄▄▄▄▄▄████▀░░░░░▀▀██████▀▀ .ChipMixer.{ MIXING REINVENTED FOR YOUR PRIVACY #.ChipMixer. ░░░░░▄▄██████▄▄░░▄████▀▀▀▀▀▀████▄░███▀░░░░░░░░░░▀█▀████░░░▄██████▄▄░░░██░░░░░█████████░░░░██▌░░░░█████████████████░░░░█████████████████░░░░░███████████████████▄░░▀██████▀░░░████▀█▄▄░░░░░░░░░░▄███░░▀████▄▄▄▄▄▄████▀░░░░░▀▀██████▀▀
xxrongden
Newbie

Offline

Activity: 15

 April 29, 2017, 02:33:06 AM

Using bot and you will lose all in the end. The site can generate the roll number to make you lose. . They can check your ip, your location,your multi account, your profit,...
BossMacko
Hero Member

Offline

Activity: 630

 April 29, 2017, 02:45:32 AM

Using bot and you will lose all in the end. The site can generate the roll number to make you lose. . They can check your ip, your location,your multi account, your profit,...

It is true that in the long run you will lose using DiceBot, But dicebot is being used by people who are busy in their daily life and want their account to still play even if they are busy. If you have a big bankroll and you used a bot betting small amount then you'll have the chance to win even if you run it 1 week as long as your bankroll can manage to recover from many losing streak.

 ████████████████                           ████████████████████████                    ████████                      ██████                   █████                █████       ███████               █████                 █████████            ███            ████   █████   ██████████████████████           ████           ████   █████████████████████████████████          ████         ███      ███████████         █████████████████         ████         ██       ███████████        ██████████     ████████████  ███       ███        ████████████████████       ██       ██████████   ███      ████      █████████       ██████       ████     ███████████   ██     ████     ████    ██     ███     ██████████████████████████     ███     ██       ████   ███     ████    ██████    ███    █████████      ███   ███      ████     ████████████████████████  ███      ████████      ███   ███   ███████████████     ███████████████████████   ███   ███      ███  ████ █████████████   ██   ██████████████████ ███████████   ████     ████  ████ ███████████     ███████████        ████████    ████   ████       ██  ████ ███████████     █████ ████          ███████    █████  ████       ██  ████   ██████████  ████████████          ████████████   ██████████    ██  ████    █████   ██████   ██████          ████  █████    ███████████   ██  ████     ████    █████   ███████       █████████████     ██████████ ████   ███     ████    ██████████ ███████████████████  ███    ███████████ ████   ███      ████   ██    ██████████████████  ██    ████████████████   ███   ████     █████████    ████████████████████████ ██████    █████     ███     ██     █████████      ██    ████████ ████████████     ████      ███      ███   ████████████████████████████  ████     ███    ███       ██      ████  ██████████████████████   ████████      ███ █████       ███       ████ ███████████      ███      █████████████████████      ████         ███████████████     ████    █████   ██████████████      ███          ████         ███████████████        ██████████████   ████           ████         ████████████████     ██████████████  ████              █████         ███████████████████       ██  █████               █████         █████████████              █████                   ██████       ██████             ███████                        ██████████████  ████████████                            ██████████████████████ Gaze Coin ▐ ▌▐ ▌▐ ▌ BLOCKCHAIN-VR/AR TOKEN  Gaze Coin Sale Starts at NOVEMBER 28! ▐ ▌▐ ▌▐ ▌ =  [Facebook][Twitter][Telegram]▐ ▌▐ ▌▐ ▌▐ ▌ [Reddit] [Steemit]
chilly2k
Legendary

Offline

Activity: 920

 April 29, 2017, 03:28:37 AM

Using bot and you will lose all in the end. The site can generate the roll number to make you lose. . They can check your ip, your location,your multi account, your profit,...

All true.  Except you can verify the rolls.  Legit sites wouldn't risk scamming you for 1 BTC when they can end up with thousand in legitimate profit.  It's not the sites causing you to lose, it's your luck, and the longer you try to beat the house, the more you'll lose.  I've run scripts and doubled my bankroll several times, but they always end up losing in the long run.

Enjoy the game, not the results.

 .Beyond The Void. ██▄████▄█████████████████████████████████████████████████████████████████  ██████████  ███████████████████████▄██████████████████████▄██████████████████████████████████████████████████████████████████████████████▀██████████████████████▀███▀ ██████████ ▀██████              ███ ..THE FIRST.BLOCKCHAIN RTS ✸ .FREE-TO-PLAY.MODEL. ✸ ..NEXIUM.GAME TOKEN ✸ .TRUE OWNERSHIP.CONCEPT.
AMONRA75
Full Member

Offline

Activity: 143

 April 29, 2017, 08:28:53 AM

You'll have to look this up.  But there is a way to create an array in LUA  it might be something like
betseq = {"Lo","Lo","Hi","Hi","Lo" etc......}
Yep, that is exactly how you create an "array" (in LUA they are "tables")...

And just a FYI, the convention in LUA is to index Arrays from 1... don't start counting at 0 like you would in C or Java etc

hi guy!

i need to set chance from array like this:
chance =  {48,50,52,54}

and when win set chance random from the array

anyone help me?
Firstly, don't call your array "chance"... that is a built in variable that the bot uses to send the chance value to the dicesite

Code:
chanceArray = {48,50,52,54}

if win then
chance = chanceArray[math.random(#chanceArray)]
end

This will pick a "random" value from the chanceArray... the #chanceArray value is the number of items in the Array... so you can add more values or take some out and the code will still run without generating an "Index Out of Bounds" type error

tnx a lot i try this!
psy112
Sr. Member

Offline

Activity: 366

psygambler

 April 29, 2017, 10:03:34 AM

Hi,

I use bots a lot for my gambling, but since I have zero experience in coding I need some help adding a feature to one of my scripts.

This is the code I want modified:

Code:
chance = 90
bethigh = true
basebet = 0.00000200
nextbet = basebet

-- SET PROFIT TARGET
profittarget= 1.0000000

function dobet()
if (win) then
chance = 90.00
nextbet = basebet
else
if chance == 19.80 then
nextbet = previousbet * 1.255
else
chance = 19.80
nextbet = 0.00000060
bethigh = !bethigh
end
end

if (balance) >= profittarget then

ching()
alarm()
print(" ")
print("TARGET ACHIEVED!!!")
print(" ")
print("You Won ") print(profit) print(" for this Session")
print(" ")
stop()
print(" ")
end

end

I want to add the feature invest on it, so that when I hit my profit target it auto invest the profit and the restarts. I'm using the script together with seuntjies bot on Just-dice. Where should i add the invest part and restart?

HCP
Sr. Member

Offline

Activity: 392

<insert witty quote here>

 April 29, 2017, 12:50:56 PM

You can't restart the bot once you call stop(), the only way for it to start up again is to enter start() in the console window like you do to initially start the script running...

So, instead of issuing the stop() command, just track your profit amount, when it reaches the target you're happy with, use the invest() command and then reset back to initial script settings and continue

NOTE: I'm not sure if this will work with any site... I've never used the invest() command, but there seems to be invest() code for just-dice in the dicebot code, so I'm assuming it works

Code:
...
startBalance = balance
runProfit = 0
profitTarget = 1.0 -- Set this to how much PROFIT you want to make before you invest, not the balance!
....

function dobet()

runProfit = balance - startBalance

if (win) then
--do win stuff
else
-- do loss stuff
end

if runProfit >= profitTarget then
ching()
alarm()
print("Your Balance is " .. balance)
print()
print("TARGET ACHIEVED!!!")
print()
print("You Won " .. runProfit .. " for this Session")
print()

print("Investing: " .. runProfit)
invest(runProfit) -- invest winnings

-- reset back to beginning and continue
startBalance = balance
runProfit = 0
chance = 90
bethigh = true
nextbet = basebet

print(" ")
end

end

 ░░░░░▄▄██████▄▄░░▄████▀▀▀▀▀▀████▄░███▀░░░░░░░░░░▀█▀████░░░▄██████▄▄░░░██░░░░░█████████░░░░██▌░░░░█████████████████░░░░█████████████████░░░░░███████████████████▄░░▀██████▀░░░████▀█▄▄░░░░░░░░░░▄███░░▀████▄▄▄▄▄▄████▀░░░░░▀▀██████▀▀ .ChipMixer.{ MIXING REINVENTED FOR YOUR PRIVACY #.ChipMixer. ░░░░░▄▄██████▄▄░░▄████▀▀▀▀▀▀████▄░███▀░░░░░░░░░░▀█▀████░░░▄██████▄▄░░░██░░░░░█████████░░░░██▌░░░░█████████████████░░░░█████████████████░░░░░███████████████████▄░░▀██████▀░░░████▀█▄▄░░░░░░░░░░▄███░░▀████▄▄▄▄▄▄████▀░░░░░▀▀██████▀▀
chilly2k
Legendary

Offline

Activity: 920

 April 29, 2017, 01:39:57 PM

You'll have to look this up.  But there is a way to create an array in LUA  it might be something like
betseq = {"Lo","Lo","Hi","Hi","Lo" etc......}
Yep, that is exactly how you create an "array" (in LUA they are "tables")...

And just a FYI, the convention in LUA is to index Arrays from 1... don't start counting at 0 like you would in C or Java etc

Good to know, I program in so many languages it's tough to keep track.  I actually did start that table with an index of 1.  I reset the index to 0 because it will be incremented before checking it.  Call it dumb luck...

hi guy!

i need to set chance from array like this:
chance =  {48,50,52,54}

and when win set chance random from the array

anyone help me?
Firstly, don't call your array "chance"... that is a built in variable that the bot uses to send the chance value to the dicesite

Code:
chanceArray = {48,50,52,54}

if win then
chance = chanceArray[math.random(#chanceArray)]
end

This will pick a "random" value from the chanceArray... the #chanceArray value is the number of items in the Array... so you can add more values or take some out and the code will still run without generating an "Index Out of Bounds" type error

That's slick.  I didn't know about the #, I'll have to keep this in mind.

Thanks for all of your tips and tricks...

 .Beyond The Void. ██▄████▄█████████████████████████████████████████████████████████████████  ██████████  ███████████████████████▄██████████████████████▄██████████████████████████████████████████████████████████████████████████████▀██████████████████████▀███▀ ██████████ ▀██████              ███ ..THE FIRST.BLOCKCHAIN RTS ✸ .FREE-TO-PLAY.MODEL. ✸ ..NEXIUM.GAME TOKEN ✸ .TRUE OWNERSHIP.CONCEPT.
psy112
Sr. Member

Offline

Activity: 366

psygambler

 April 29, 2017, 07:48:39 PM

You can't restart the bot once you call stop(), the only way for it to start up again is to enter start() in the console window like you do to initially start the script running...

So, instead of issuing the stop() command, just track your profit amount, when it reaches the target you're happy with, use the invest() command and then reset back to initial script settings and continue

NOTE: I'm not sure if this will work with any site... I've never used the invest() command, but there seems to be invest() code for just-dice in the dicebot code, so I'm assuming it works

Code:
...
startBalance = balance
runProfit = 0
profitTarget = 1.0 -- Set this to how much PROFIT you want to make before you invest, not the balance!
....

function dobet()

runProfit = balance - startBalance

if (win) then
--do win stuff
else
-- do loss stuff
end

if runProfit >= profitTarget then
ching()
alarm()
print("Your Balance is " .. balance)
print()
print("TARGET ACHIEVED!!!")
print()
print("You Won " .. runProfit .. " for this Session")
print()

print("Investing: " .. runProfit)
invest(runProfit) -- invest winnings

-- reset back to beginning and continue
startBalance = balance
runProfit = 0
chance = 90
bethigh = true
nextbet = basebet

print(" ")
end

end

Ok that probably why i got a lot of luna errors when i tried putting in the invest() and start() commando after stop(). I'll give yours a try to see if it works thanks for the help so far

Nicoletta
Newbie

Offline

Activity: 14

...just trying

 April 29, 2017, 08:52:40 PM

OK thanks so to bo more specific
i want the bot to do

bet1
1 satoshi high chances 49.5%
if lose it will bet previous  amount *2 until wins
if win it wait 2 seconds go to the bet2
bet2
1 satoshi high chances 49.5%
if lose it will bet previous  amount *2 until wins
if win it wait 2 seconds go to the bet2
bet3
1 satoshi low chances 49.5%
if lose it will bet previous  amount *2 until wins
if win it wait 2 seconds go to the bet4
bet4
1 satoshi low chances 49.5%
if lose it will bet previous  amount *2 until wins
if win it wait 2 seconds go to the bet5
bet5
1 satoshi high chances 49.5%
if lose it will bet previous  amount *2 until wins
if win it wait 2 seconds go to the bet6
bet6
1 satoshi high chances 49.5%
if lose it will bet previous  amount *2 until wins
if win it wait 2 seconds go to the bet7
bet7
1 satoshi high chances 49.5%
if lose it will bet previous  amount *2 until wins
if win it wait 2 seconds go to the bet8
bet8
1 satoshi low chances 49.5%
if lose it will bet previous  amount *2 until wins
if win it wait 2 seconds go to the bet9
bet9
1 satoshi low chances 49.5%
if lose it will bet previous  amount *2 until wins
if win it wait 2 seconds go to the bet10
bet10
1 satoshi high chances 49.5%
if lose it will bet previous  amount *2 until wins
if win
wait 10 seconds
check if the profit is higher than 0.001
if yes stop
if not go to bet 1

I am not even trying to put it into a code it sound so simple
hihi
hihi
hihihi
lololo
but now it is getting so complicated.

Anyone could write it so i could see how it should look like?

On my Way
ponchofcult
Newbie

Offline

Activity: 5

 April 29, 2017, 09:40:53 PM

yes sorry and i left some things, like base bet ok i will change some numbers that are wrong and put only the information if you understant better that i want

Base bet:0.00000001
on every L-L-L-W multiply the last bet and the losses count from the LAST WIN only (the last reset i think)
BUT if W-W return to base bet (0.00000001) and reset the streak count
in W-L-W-L-W return to base bet and reset the streak count too

shorter and i think is the same that i want, more logic thank you so much, if you can or you have a guide with every variable and their function could help me the next time, the website is a litle confussing an excel table could be great, thanks

This is that I have for now

chance=33.0 --sets your chance for placing a bet
switchcount=0
bethigh=true --bet high when true, bet low when false

enablezz=false --set to true to use high/low switching

enablesrc=false --set to true to use stop/reset conditions

function dobet()
if win then
nextbet=previousbet*losses
switchcount=0
end
end

its all for now i get LUA error if i set some "=" or "currentstreak" or "then"
on every losses i can multiply lasbet for losses but if WW the ressult will be 0, 0 losses * 0.00000001 will be 0 right?
and on WLWLW ?

thank you guys
seuntjie
Legendary

Offline

Activity: 1414

 April 29, 2017, 10:33:55 PM

You can't restart the bot once you call stop(), the only way for it to start up again is to enter start() in the console window like you do to initially start the script running...

So, instead of issuing the stop() command, just track your profit amount, when it reaches the target you're happy with, use the invest() command and then reset back to initial script settings and continue

NOTE: I'm not sure if this will work with any site... I've never used the invest() command, but there seems to be invest() code for just-dice in the dicebot code, so I'm assuming it works

Code:
...
startBalance = balance
runProfit = 0
profitTarget = 1.0 -- Set this to how much PROFIT you want to make before you invest, not the balance!
....

function dobet()

runProfit = balance - startBalance

if (win) then
--do win stuff
else
-- do loss stuff
end

if runProfit >= profitTarget then
ching()
alarm()
print("Your Balance is " .. balance)
print()
print("TARGET ACHIEVED!!!")
print()
print("You Won " .. runProfit .. " for this Session")
print()

print("Investing: " .. runProfit)
invest(runProfit) -- invest winnings

-- reset back to beginning and continue
startBalance = balance
runProfit = 0
chance = 90
bethigh = true
nextbet = basebet

print(" ")
end

end

Ok that probably why i got a lot of luna errors when i tried putting in the invest() and start() commando after stop(). I'll give yours a try to see if it works thanks for the help so far

Take a look at the tutorials linked on https://bot.seuntjie.com/programmermode.aspx, specifically https://steemit.com/dicebot/@seuntjie/dicebot-programmer-mode-tutorial-02-process
It will give you an overview of the process the bot follows every time a bet is placed.

Calling stop, then invest/withdraw/tip, the invest/withdraw/tip commands will still be executed/processed, as the whole dobet function is completed. But you cannot start the bot again after stopping it from within the script. It should never be necessary to do so as all of the functions that can be called from the programmer mode as synchronous and serial.

Edit: Also, see https://bot.seuntjie.com/features.aspx for a list of features that is enabled for the supported sites.

 Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 [29] 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
 « previous topic next topic »