Bitcoin Forum
October 20, 2017, 08:01:37 PM *
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 »
  Print  
Author Topic: Seuntjie' Dice bot programmers mode discussion.  (Read 48385 times)
HCP
Sr. Member
****
Offline Offline

Activity: 392

<insert witty quote here>


View Profile
September 17, 2016, 05:24:29 AM
 #321

That's exactly how the stop on win button works and that's exactly how a built in stop on win function would work if I ever implemented it. It's so simple that I likely won't implement it though. You can even set stopOnWin =true from the console to force it to stop on the next win.
Which is pretty much what I do... good to know that my "hack" is more or less how the builtin stuff works... maybe my coding skills aren't as rusty as I thought they might be Wink

Hopefully this code sample my be of some assistance to others... Although a lot of players I've come across tend to just let the bot run until they hit some profit level or bust out Tongue

1508529697
Hero Member
*
Offline Offline

Posts: 1508529697

View Profile Personal Message (Offline)

Ignore
1508529697
Reply with quote  #2

1508529697
Report to moderator
1508529697
Hero Member
*
Offline Offline

Posts: 1508529697

View Profile Personal Message (Offline)

Ignore
1508529697
Reply with quote  #2

1508529697
Report to moderator
I HATE TABLES I HATE TABLES I HA(╯°□°)╯︵ ┻━┻ TABLES I HATE TABLES I HATE TABLES
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1508529697
Hero Member
*
Offline Offline

Posts: 1508529697

View Profile Personal Message (Offline)

Ignore
1508529697
Reply with quote  #2

1508529697
Report to moderator
shintosai
Hero Member
*****
Offline Offline

Activity: 644



View Profile
September 17, 2016, 03:27:37 PM
 #322

That's exactly how the stop on win button works and that's exactly how a built in stop on win function would work if I ever implemented it. It's so simple that I likely won't implement it though. You can even set stopOnWin =true from the console to force it to stop on the next win.
Which is pretty much what I do... good to know that my "hack" is more or less how the builtin stuff works... maybe my coding skills aren't as rusty as I thought they might be Wink

Hopefully this code sample my be of some assistance to others... Although a lot of players I've come across tend to just let the bot run until they hit some profit level or bust out Tongue
i hope i can learn this mate as all we are here wanted to earn even a little just by using a bot like this if you dont mind if you can pm me how this will works for me and what specific game and timing should i use it i will try it and make a good profits hope you can give me some insight with this bot that you are working with, good luck mate.

HCP
Sr. Member
****
Offline Offline

Activity: 392

<insert witty quote here>


View Profile
September 17, 2016, 09:30:27 PM
 #323

i hope i can learn this mate as all we are here wanted to earn even a little just by using a bot like this if you dont mind if you can pm me how this will works for me and what specific game and timing should i use it i will try it and make a good profits hope you can give me some insight with this bot that you are working with, good luck mate.
I doubt you will make much profit at all... I only did it as an exercise/investigation into how long it would take for variance to catch up with my betting strategy... Attempting to gamble for profit is, in my opinion, a fool's errand.

I treat gambling as a source of entertainment, so I like to try new things... and trying out the dicebot and the programming mode was a fun little project.

Basically, all I did was add a little feature to a basic "martingale" script that allows me to stop the betting on the next win... so I can set it going to bet for 100 bets (or until a certain balance is achieved or whatever) and then it will stop on next win, rather than ending on a loss at exactly 100 bets... sometimes it goes to 103 or 104 bets depending on strategy and odds being played.

strunberg
Sr. Member
****
Offline Offline

Activity: 406


Autonio token sale starts September 22


View Profile
September 26, 2016, 03:52:03 PM
 #324

What programing language did you use to create this program?

|
   
 
░░░░░░░░░░░░░░░░░░░░░░░░░░
░░░░░░░░░░░░░░░░░░░░░░░░
░░░░░░░░░░░███░░░░░░░░░░░
░░░░░░░░░░█████░░░░░░░░░░
░░░░░░░░░███████░░░░░░░░░
░░░░░░░░█████████░░░░░░░░
░░░░░░░███████████░░░░░░░
░░░░░░█▀▀▀▀▀▀▀▀▀▀▀▀▀█░░░░░░
░░░░░░░░░░░░░░░░░░░░░
░░░░███░░░░░░░░░███░░░░
░░░█████░░░░░░░█████░░░
░░███████░░░░░███████░░
█████████░░░█████████
██████████████████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
AUTONIO
   
   
 
   
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀

WEBSITE / WHITEPAPER
TWITTER / FACEBOOK / ANN

▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀

|
seuntjie
Legendary
*
Offline Offline

Activity: 1414



View Profile WWW
September 26, 2016, 08:18:04 PM
 #325

What programing language did you use to create this program?

I used c#. You can find the source code here if you want to look at it.

strunberg
Sr. Member
****
Offline Offline

Activity: 406


Autonio token sale starts September 22


View Profile
September 26, 2016, 11:04:38 PM
 #326

What programing language did you use to create this program?

I used c#. You can find the source code here if you want to look at it.

Thank you.

|
   
 
░░░░░░░░░░░░░░░░░░░░░░░░░░
░░░░░░░░░░░░░░░░░░░░░░░░
░░░░░░░░░░░███░░░░░░░░░░░
░░░░░░░░░░█████░░░░░░░░░░
░░░░░░░░░███████░░░░░░░░░
░░░░░░░░█████████░░░░░░░░
░░░░░░░███████████░░░░░░░
░░░░░░█▀▀▀▀▀▀▀▀▀▀▀▀▀█░░░░░░
░░░░░░░░░░░░░░░░░░░░░
░░░░███░░░░░░░░░███░░░░
░░░█████░░░░░░░█████░░░
░░███████░░░░░███████░░
█████████░░░█████████
██████████████████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
AUTONIO
   
   
 
   
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀

WEBSITE / WHITEPAPER
TWITTER / FACEBOOK / ANN

▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀

|
whipz
Newbie
*
Offline Offline

Activity: 9


View Profile
September 30, 2016, 06:23:37 AM
 #327

Hey guys, This is an edit of one of the scripts I have seen on here;

Would love some feedback on how to make it work better; I have ideas I want to add to but have know Idea or now to do it;
if you would like to help dont hesitate to offer xD

anyways here it is

Code:
chance = 66.66
multiplier=1.5
multiplier2=0.92
base=0.0000150
nextbet = base

target =.005
investtarget = .1
tmpprofit = 0
investprofit = 0
wincount = 10
startbalance = balance

function dobet()

tmpprofit += currentprofit
investprofit+= currentprofit

if win then
if(tmpprofit > target) then
print("TMPPROFIT is greater than our target Resessting to Base")
tmpprofit = 0
nextbet = base
sleep(1000);
if(investprofit > investtarget) then
investprofit = 0
invest(balance - startbalance)
end
else
print("Since we havent reached our target times last bet by multiplier2")
nextbet = previousbet*multiplier2
if(nextbet < base) then
sleep(1000)
print("nextbet is less than base bet so its now base bet")
nextbet = base
end
end
else
sleep(1000)
print("We have lost so we are timzing by multiplier1")
nextbet = previousbet*multiplier
if(nextbet < base) then
print("Lower than base bet so now basebet")
nextbet = base
end
end
end
whipz
Newbie
*
Offline Offline

Activity: 9


View Profile
September 30, 2016, 09:06:58 PM
 #328

Would someone be able to help me with a script; I have an idea but whenever i code it, it seems to go miles of path sometimes,

it would go along as such
0.00057564 etc
0.0006781 etc
then it would lose  and be fine
0.00075851 etc < -- loss
0.00164845 etc win
0.0018421 etc win
0.0020323 < -- loss
44.412312 is then bet
yet I have no multiplier to get it that high that quick
chilly2k
Legendary
*
Offline Offline

Activity: 920


View Profile
September 30, 2016, 09:34:21 PM
 #329

Would someone be able to help me with a script; I have an idea but whenever i code it, it seems to go miles of path sometimes,

it would go along as such
0.00057564 etc
0.0006781 etc
then it would lose  and be fine
0.00075851 etc < -- loss
0.00164845 etc win
0.0018421 etc win
0.0020323 < -- loss
44.412312 is then bet
yet I have no multiplier to get it that high that quick

Post the script.  With a little explanation of what your trying to do. 

whipz
Newbie
*
Offline Offline

Activity: 9


View Profile
September 30, 2016, 10:47:32 PM
 #330

Code:
chance = 90
basebet = balance*.0001
startbalance = balance
nextbet = 0
tartget = .01
bethigh = true
low = 0
high = 0
losecount = 0
stopnow = false
totallose = 0
wincount = 0
nextwinbet = basebet*1.5
boombet = balance*.1
bet1lose = previousbet*2
bet2lose = previousbet*5
bet3lose = previousbet*20
profitamount = 0
sessionprofit = 0
profittarget = 0.001
profitlimit = .005
won = 0
lost = 0

function dobet()

if (lastBet.roll < chance) then
low += 1
end
if (lastBet.roll > (100 - chance)) then
high += 100
end

profitamount=profitamount+currentprofit

if (win) then
if (high > low) then
bethigh = true
else
bethigh = false
end
won = won+1
lost = 0
if (profitamount >= profittarget) then
profitamount = 0
nextbet = basebet
end
if (sessionprofit >= profitlimit) then
print("Profit Limit reached. Stopping now...")z
print("Session Profit: " .. sessionprofit)
sessionprofit = 0
nextbet = basebet
end
if (won >= 1) then
nextbet = previousbet*2
won += 1
lost += 0
end
if (won == 2) then
nextbet = boombet
won += 1
lost += 0
end
if (won == 3) then
nextbet = boombet*1.5
won += 1
lost += 0
end
if (won <= 5) then
nextbet = boombet/3
won += 1
lost += 0
end
else
lost = lost+1
won = 0
if (lost == 1) then
nextbet = bet1lose
end
if (lost == 2) then
nextbet = bet2lose
end
if (lost == 3) then
nextbet = bet3lose
end
if (lost >= 4) then
chance = 49.5
nextbet = previousbet*2
end
if (lost >= 6) then
nextbet = basebet
end
end
end

at first i was just wanting to just mess around and see what works;

But now I want to turn it into 95 or 90 chance;
on first win do a massive bet almost full balance; then slowly decrease to a limit you set;
then i would like it to save some of that money aside for the next win for an even bigger second bet etc
on loss, i want it to do big multipler to almost regain all of whats lost, but the second bet should cover the last lost as the second win should be a big bet anyways, but if thats a loss I want a smaller multiplier till a win and on a win do a bigger than before to regain previous loss,

all based on basebet balance;

is something like that possible ?

Code:
chance=77.7
multiplier=1.5
multiplier2=1.09
base=0.0000250
nextbet = base 
bethigh = false
target = .0005
investtarget = .01
tmpprofit = 0
investprofit = 0
wincount = 10
stopnow = false

function dobet()

tmpprofit += currentprofit
investprofit += currentprofit

   if win then
   print("We Won")
      if (tmpprofit > target) then
         tmpprofit = 0
         nextbet = base
         if(stopnow) then stop() end
         if(investprofit  > investtarget ) then
             investprofit = 0
             invest(investtarget)
         end     
      else
  print("Since we Won we are now times our last bet by multiplier 2")
         nextbet=previousbet*multiplier2
         if(nextbet < base) then
nextbet = base end
      end
   else
   print("we lost so we are timzing by multiplier 1")
      nextbet=previousbet*multiplier
      if(nextbet < base) then
  print("if next bet is less than base bet next bet = base bet")nextbet = base end
   end
end

Something like this but 90 percent, but with a chance to win quicker this seems to take 2 - 3 wins to gain id like 1 - 2 if possible and since its based on balance, it shouldnt really need to worry about to many losses also being 90% in a row anyways


This would be the ultimate tho i think;

Code:
win 1
win 1.5
win 2.25
win 1.8
win 1.44
win 1.152
win 1 etc
for all wins

on a lose tho something like this

win 1
win 1.5
loss 2.25 < remebers this
wins 1
wins 1.5 + work out how to make loss even on second bet so it would be on 90% the pay out is 1.1  so we lost 2.25 we would need 22.5+ 1 to make it all back second bet i think
or is that way to risky even in the lower numbers like 0.0005 etc ?


and if it was to lose like this
win 1
lose 1.5
win 1.5 + 15
win 1
lose 1.5 <-- remeber 1
lose 16.5  < -- remember 2
then go back to normal
lose 1
lose 1
win 1
win 16.5
win 1
win 1.5
lose 2.25
win 2.25 + 165 from remember 2


then if it was to go like this

win 1
lose 1.5
win 16.5
lose 1
win 16.5
lose 1
win 16.5
win 1
win 1.5

doesnt have to be those calculations but I have a feeling it could work ?what do you guys think ?

whipz
Newbie
*
Offline Offline

Activity: 9


View Profile
October 01, 2016, 10:34:25 AM
 #331

how and where would i put a safety to stop at a max bet, whilst remembering what it was up to for the next win streak ?
whipz
Newbie
*
Offline Offline

Activity: 9


View Profile
October 02, 2016, 06:22:55 AM
 #332

how come when i run this script

Code:
chance=90
multiplier=1.92
multiplier2=1.25
base=0.00125
nextbet = base 
target = .0000125
investtarget = .1
tmpprofit = 0
investprofit = 0
wincount = 10
stopnow = false
startbalance = balance
tipamount = 0.001

function dobet()

tmpprofit += currentprofit
investprofit += currentprofit

   if win then
      if (tmpprofit > target) then
         tmpprofit = 0
         nextbet = base
         if(stopnow) then stop() end
         if(investprofit  > investtarget ) then
             investprofit = 0
             invest(balance - startbalance - tipamount)
tip("1562881", tipamount)
         end     
      else
         nextbet=previousbet*multiplier2
         if(nextbet < base) then nextbet = base end
      end
   else
      nextbet=previousbet*multiplier
      if(nextbet < base) then nextbet = base end
   end
end


I want to make it after it reaches its tmp goal that it goes to base and then starts the multiply again; could someone help i cannot figure it out

as it wastes a hell of a lot of wins, so if it kept multiplying to tmpproffit amount  you would make more faster but it runs like 15 wins in a row at basebet

whipz
Newbie
*
Offline Offline

Activity: 9


View Profile
October 02, 2016, 10:52:10 PM
 #333

Would someone be able to help me with a script; I have an idea but whenever i code it, it seems to go miles of path sometimes,

it would go along as such
0.00057564 etc
0.0006781 etc
then it would lose  and be fine
0.00075851 etc < -- loss
0.00164845 etc win
0.0018421 etc win
0.0020323 < -- loss
44.412312 is then bet
yet I have no multiplier to get it that high that quick

Post the script.  With a little explanation of what your trying to do. 

@chilly2k you seem to be the one with the most script know how;

anychance you chould help me with this this one ?

Code:
chance=90
multiplier=.25
multiplier2=2
base=0.00125
nextbet = base 
target = .00000125
investtarget = 1
tmpprofit = 0
investprofit = 0
wincount = 10
stopnow = false
startbalance = balance
tipamount = 0.5
rollcount = 0

function dobet()

rollcount += 1
tmpprofit += currentprofit
investprofit += currentprofit

   if win then
   --We Won, Now to see if tmp profit is equal to target profit
        if (tmpprofit > target) then
         tmpprofit = 0
         nextbet = base
--Also checking if we have made a 1000+ rolls on the same seed; if we have and in positive, we resetseed
         if(rollcount >= 1000) then resetseed();
end
--Investing if invest profit is bigger than investtarget if it is we invest
         if(investprofit  > investtarget ) then
             investprofit = 0
             invest(balance - startbalance - tipamount)
-- this is a tip amount to my other account
tip("1562881", tipamount)
         end     
      else
  --this is for when we win and we havent reached the target profit
         nextbet=previousbet*multiplier2
      end
   else
      nextbet=previousbet*multiplier
      if(nextbet > base) then nextbet = base
  end
  if(nextbet > (balance/1.5)) then
nextbet = base
resetstats();
end
  end


end
[code]


When its already made it to its tmp profit and its still winning, I would like it to slowly climb via another multiplier thats alot smaller eg instead of 2 maybe 1.5 till its reached tmpprofit again and starts over, as i seem to waste around 10 - 15 wins
[/code]
Bitcoin_Delivery
Hero Member
*****
Offline Offline

Activity: 602



View Profile
October 10, 2016, 10:11:11 AM
 #334

I'm really amazed with new features of SDB!! I've found my perfect setting and starting with 0,02 BTC i was able now to reach my frist BTC after around 15 days of slow-action Cheesy
Now looking to see if winnings flow on stable basis, then i will share my preset with you Wink
Thanks Seuntjie boss!  Grin

| 
 
50
| 




                       ▄
           ▄▄▄▄▄▄███████
▄▄▄▄█████  █████████████
█████████  █████████████
█████████  █████████████
█████████  █████████████
█████████  █████████████
█████████  █████████████

█████████  █████████████
█████████  █████████████
█████████  █████████████
█████████  █████████████
█████████  █████████████
▀▀▀▀█████  █████████████
           ▀▀▀▀▀▀███████
                       ▀
| 
 
$1,5 M
|


        ▄▄▄█████████▄▄▄
      ▄█████▀▀███▀▀█████▄
    ▄███▀     ███     ▀███▄
   ████       ███       ████
  ███▀                   ▀███
 ███▀                     ▀███
▄██▀       █████████       ▀██▄
███                         ███
███        █████████        ███
███                         ███
▀██▄       █████████       ▄██▀
 ███▄                     ▄███
  ███▄                   ▄███
   ████       ███       ████
    ▀███▄     ███     ▄███▀
      ▀█████▄▄███▄▄█████▀
        ▀▀▀█████████▀▀▀
 
|
 
<>
<>
<>
<>
 
GITHUB
TWITTER
YOUTUBE
FACEBOOK
xxrongden
Newbie
*
Offline Offline

Activity: 15


View Profile
October 20, 2016, 02:16:02 PM
 #335

I'm really amazed with new features of SDB!! I've found my perfect setting and starting with 0,02 BTC i was able now to reach my frist BTC after around 15 days of slow-action Cheesy
Now looking to see if winnings flow on stable basis, then i will share my preset with you Wink
Thanks Seuntjie boss!  Grin

Can you share your script  Grin Grin
chilly2k
Legendary
*
Offline Offline

Activity: 920


View Profile
October 22, 2016, 01:18:41 PM
 #336

Hi there,

I am running a script for a while now and it seems like that somethings going crappy, and things happening that is not written in the script. Maybe it has something to do with the computer it is running on. Okay, it does not matter because with a little help i can prevent this error if the following question is possible, maybe it is also useful for others:

Is there a way to track like last 4 bets, and if they all have the High = true or high = false then stop the script.
What i'm looking for when the script is going to live by itself due errors, then this tracking function is going to stop the script when condition is met what is written in the function.

See screenshot for the high/low i mean.


Hope somebody can help me out how to do this.
Thanks!

   This is pretty easy.  Setup 2 counters bethighcount and betlowcount.  set both to 0 in the init section (Before the dobet function)  Then at the begining of your dobet function add,

Code:

if (bethigh) then         // if bethigh is true
   bethighcount += 1
   betlowcount = 0
else                         // bethigh is false
   betlowcount += 1
   bethighcount = 0
end

if (bethighcount == 4 or betlowcount == 4) then
   stop()
end


    That just keeps a count of how many high or low bets you've made in a row and stops on 4 in a row. 

AXCESS
Newbie
*
Offline Offline

Activity: 15


View Profile
October 22, 2016, 02:21:15 PM
 #337

Hi there,

I am running a script for a while now and it seems like that somethings going crappy, and things happening that is not written in the script. Maybe it has something to do with the computer it is running on. Okay, it does not matter because with a little help i can prevent this error if the following question is possible, maybe it is also useful for others:

Is there a way to track like last 4 bets, and if they all have the High = true or high = false then stop the script.
What i'm looking for when the script is going to live by itself due errors, then this tracking function is going to stop the script when condition is met what is written in the function.

See screenshot for the high/low i mean.
http://i64.tinypic.com/s3ekit.jpg

Hope somebody can help me out how to do this.
Thanks!

   This is pretty easy.  Setup 2 counters bethighcount and betlowcount.  set both to 0 in the init section (Before the dobet function)  Then at the begining of your dobet function add,

Code:

if (bethigh) then         // if bethigh is true
   bethighcount += 1
   betlowcount = 0
else                         // bethigh is false
   betlowcount += 1
   bethighcount = 0
end

if (bethighcount == 4 or betlowcount == 4) then
   stop()
end


    That just keeps a count of how many high or low bets you've made in a row and stops on 4 in a row.  


Wow haha that is easy, yes  Shocked. And this is exactly what i am looking for, but i did not get it by myself, my head was thinking to difficult Smiley
Thanks man.
chilly2k
Legendary
*
Offline Offline

Activity: 920


View Profile
October 26, 2016, 03:45:12 AM
 #338


hi everyone!  Cheesy
i m new and i try to learn something but without your is impossible for me

i want to do this but i dont understand how   IT S HORRIBLE  Grin

function dobet()

if win then
nextbet = previousbet * 2
AND
nextbet=base
end
else
nextbet = previousbet*multi
end
end


i want to do this

1°bet- for example(loose) so
2°bet= previous*multi (if i loose)
3°bet= previous*multi (if i loose) 
4°bet= previous*multi (if i WIN)
5°bet= previous *2 ( if i loose or win is not important for me
                    but i would that the next bet return to base
)
6- basebet (and if i loose next bet is * multi)
ecc..

please help me!! i m going crazy   Huh

i wrote this

if not win then
nextbet = previousbet * multi
else
nextbet = previousbet * 2
resetbuiltin()
nextbet=basebet
end
end

 but when i win it don't double the bet but restart to basebet why?? Undecided

   First you need to understand the LUA syntax.  Google LUA and there are a lot of reference sites. 

Your first example is easiest to understand.  First the syntax is...

if (xyz) then

    do a bunch of stuff    this is not real code.....

else
 
    it's not XYZ so do what you want to do in that case

end


you have

if win then                          <----   This line is good
nextbet = previousbet * 2     <-----  This is good too, your setting next bet
AND                                   <-----  if you really have this in your script  I have no idea what LUA will do. 
nextbet=base                      <-----  Another good statement
end                                    <------ This ends your if statement, you have no else coded before this. 
else                                    <------  Lua will choke on this because there are no open if statements to process. 
nextbet = previousbet*multi    <-----  This is OK, but LUA doesn't know when to do this. 
end                                     <------ This is the end of the dobet function...   
end                                     <-----   This is just extra stuff after the script. 

You wanted this
if win then                          <----   This line is good
nextbet = previousbet * 2     <-----  This is good too, your setting next bet
nextbet=base                      <-----  Another good statement
else                                    <------  Now the above if is still open (no end yet)  so this else goes to that if.
nextbet = previousbet*multi    <-----  This is OK, but LUA doesn't know when to do this. 
end                                     <------ This is the end of the if/then/else. 
end                                     < ----  This is the end of the dobet function. 

Before the dobet function line you need to define/initialize multi. 

Your second example is better except the first line "if not win then"  I know "if !win then" works.  I think if you looked up the syntax, "if not win then" means if the variable not is true and the variable win is true then do the following code.  Since you probably do not have a variable not defined Lua does some weird stuff and doesn't complain.  ! means the opposite, so !win means win == false. 

another gotcha.  == means compare the 2 values.  = means assign the value of the right variable to the left variable. 

I'm not really understanding your requirements, but if you want to run this sequence 5 times, then reset to base. Here is how to do it. 

betcount = 0
base =
chance =
bethigh = true

dobet function

betcount += 1

if betcount == 5 then
   nextbet = base   
   betcount  = 0
else
   if win then                   
      nextbet = previousbet * 2     
   else         
      nextbet = previousbet*multi   
   end                                   
end
end                             




ili
Newbie
*
Offline Offline

Activity: 3


View Profile
October 26, 2016, 04:51:35 PM
 #339

ty!!! Wink
Dyatrev
Sr. Member
****
Offline Offline

Activity: 263



View Profile
October 26, 2016, 05:45:51 PM
 #340

i am not sure if this right place to say it but i think there is a little problem with dice bot

when playing with bot if you dont hit green and dont click stop then went to site and hit green dicebot will close itself

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 »
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!