Bitcoin Forum
October 21, 2017, 11:37:34 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 48453 times)
chilly2k
Legendary
*
Offline Offline

Activity: 920


View Profile
June 08, 2017, 01:17:59 AM
 #701

pls check my script .....
at the end i changed it from

if win then
 nextbet=baseBet
else
 nextbet=baseBet
end
 end
 
 TO

end

 nextbet=baseBet

end

THATS WHY IT STARTED WORKING BUT STILL NOT FOLOWING THEPROCESS IT SHOULD FOLLOW


hello thankx for ur effort sir,

my script as started working but its not performing some actions

1- it dosnt +the previous bet with the basebet
2- if the current streak is 10 it still wont change the bet to the nextbet it just continue to bet with the basebet on and on

Code:
wagered=0   
 wagered=wagered+previousbet
 chance=28.08
 chance1=90.4  --I hope this are the varies and value u asked me to set b4 dobet function
 chance2=94     --I hope this are the varies and value u asked me to set b4 dobet function
 chance3=95     --I hope this are the varies and value u asked me to set b4 dobet function
 bethigh=false
 baseBet=0.00000001 -- should the baseBet be up here?
 baseBet1=0.00000020   --I hope this are the varies and value u asked me to set b4 dobet function
 baseBet2=0.00000030   --I hope this are the varies and value u asked me to set b4 dobet function
 baseBet3=0.00000050   --I hope this are the varies and value u asked me to set b4 dobet function
 profitterget=0.00100000
 nextbet=baseBet

function dobet()

chance = 28.08

 baseBet=0.00000001

end

if win then

 nextbet=baseBet

else

 nextbet=previousbet+baseBet  -- it dse not perform this action

end

if currentstreak==-10 then  -- it dosnt perform this action too and any of the action below also.. but its just betting on with the base bet

chance = chance1
betlow = false

 nextbet=baseBet1

end
 
 if win then

  nextbet=baseBet

else
 
chance = chance2
bethigh = true

 nextbet=baseBet2

end

if win then

 nextbet=baseBet

else

chance = chance3
bethigh = false

 nextbet=baseBet3

end

 nextbet=baseBet

end
 
if (balance) >= profittarget then
stop();
print(balance)
print("TARGET ACHIEVED!!!")

 end

end


pls what should i do
  You really need to understand the logic of your script.  Lets say the bot rolled and you lost.  dobet() is entered
it does.
chance = 28.08

 baseBet=0.00000001

end

end is the end of the function, nothing after that matters.   It can get tricky because you have to also end an if/else group.   

Here is your code with better formatting so you can spot error's easier. 

Code:
wagered=0   
wagered=wagered+previousbet  <---  There is no previous bet at this point.  This doesn't do anything. 
chance=28.08
chance1=90.4 
chance2=94   
chance3=95   
bethigh=false
baseBet=0.00000001
baseBet1=0.00000020   
baseBet2=0.00000030 
baseBet3=0.00000050   
profitterget=0.00100000  <  This is misspelled... 
nextbet=baseBet

function dobet()

   chance = 28.08
   baseBet=0.00000001

end   < This ends the function dobet()  Nothing after this matters....   IE Get rid of this.......

   if win then
      nextbet=baseBet
   else
      nextbet=previousbet+baseBet  -- it dse not perform this action
   end

   if currentstreak==-10 then  -- it dosnt perform this action too and any of the action below also.. but its just betting on with the base bet
      chance = chance1
      betlow = false               --  betlow is not a valid name. 
      nextbet=baseBet1
   end
 
   if win then
      nextbet=baseBet
   else
      chance = chance2
      bethigh = true
      nextbet=baseBet2
   end

   if win then                        -- No matter what you did above this is the only block that will matter.
      nextbet=baseBet
   else
      chance = chance3
      bethigh = false
      nextbet=baseBet3
   end

   nextbet=baseBet               -- and now your just setting nextbet to always be equal to basebet   

end                                 -- Again not sure what this is for
 
if (balance) >= profittarget then
   stop();
   print(balance)
   print("TARGET ACHIEVED!!!")
end

end --This should be at the end of the

You can have nested if statement. 

if win then
else
   nextbet = previousbet * 2
   if currentstreak == -10 then
      do your 10 lose stuff
   end
   if currentstreak == -11 then
      11 lose
   end
   if currentstreak == -12 then
      12 lose
   end
   if currentstreak < -12 then
        reset everything
      nextbet = basebet
      chance = default
      bethigh = whatever you want it to be.
   end
end

   Then you could add the profit stuff.  But I would make sure the main code is working before adding stuff.  It makes it easier to catch any errors. 

]





bro hv done everything but still doing the same

If the code is at least running.  Start adding print statements to fix your logic. 
Like
print("Dobet entered")

and later in the win path

print("roll won")
print(nextbet)  to show you set nextbet. 

You can print text in quotes or the values of variables.  And .. concatenates the output.
so
print("Nextbet = "..nextbet)  should print Nextbet = 0.00000001

The pseudo-code example I gave at the end of my last update is the script your asking for without the values filled in.  Look that over carefully and try to understand what it's doing. 

Also the programming language used is called LUA.  You can search for LUA tutorials. 



1508629054
Hero Member
*
Offline Offline

Posts: 1508629054

View Profile Personal Message (Offline)

Ignore
1508629054
Reply with quote  #2

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

Posts: 1508629054

View Profile Personal Message (Offline)

Ignore
1508629054
Reply with quote  #2

1508629054
Report to moderator
1508629054
Hero Member
*
Offline Offline

Posts: 1508629054

View Profile Personal Message (Offline)

Ignore
1508629054
Reply with quote  #2

1508629054
Report to moderator
1508629054
Hero Member
*
Offline Offline

Posts: 1508629054

View Profile Personal Message (Offline)

Ignore
1508629054
Reply with quote  #2

1508629054
Report to moderator
B4RF
Hero Member
*****
Offline Offline

Activity: 726


View Profile
June 08, 2017, 06:27:00 AM
 #702

-snip-

bro hv done everything but still doing the same

I can write you the code when I am back at home from work but is this still the behaviour you are looking for?

here is the full explaination sir (thank u in advanced)

let say i bet
0.00000002 and i win,  i want it to go back to the basebet and bet 0.00000002
But if i bet 0.00000002 and loss, then i want it to multiply *2 of my loss so my next bet will be 0.00000004
then if i loss again i want it to still double up the nextbet to 0.00000008 till i win then i want it to go back to the basebet thats if i win (i only want 10 loss in a row b4 changing to the 90% chance)

EXAMPLE

it will look like this when the lossing occurs
0.00000002
0.00000004
0.00000008
0.00000016
0.00000032
0.00000064
0.00000128
0.00000256
0.00000512
0.00001024
 till it reach 10losses but now lets assum its has reach 10losses

so when i get 10 losses i want the bet to change to 0.0003 with a 90%chance so if i dont win it i want it to change to 0.0006bet with 94%chance so if i dont win again i want the third bet to change to 0.001btc with a 95%chance
so if i in anycase win or loss THIS 90% 94% 95% CHANCES  i want it to go back to base bet and restart again


I think there might be just a missing variable change in your code. might be helpfull if you can post your current state.

HCP
Sr. Member
****
Offline Offline

Activity: 392

<insert witty quote here>


View Profile
June 08, 2017, 07:06:24 AM
 #703

List of issues he is experiencing:

1. He has mispelled variables
2. his dobet() function is:
Code:
function dobet()
  basebet = 0.00000001
end
So basically all his script will ever do after each roll is set the basebet to 0.00000001 and then do the next roll with whatever chance, and bethigh values were set at start.
3. He has pretty much zero knowledge of programming (despite having read Seuntjies tutorials 30 times)
4. He still hasn't figured out that the programming language is called LUA after being told at least 3 times from memory
5. He doesn't understand the logical flow of the script (fairly common mistake of people new to programming)

I applaud chilly2k and Seuntjie for their initial patience in trying to help... but there is a reason there is a "simple" (and "advanced") mode...

Phyzyprogrammer... if you are serious about wanting to learn to use the programmer mode and no just run other peoples scripts, read this: https://www.lua.org/pil/contents.html

sree6020
Jr. Member
*
Offline Offline

Activity: 30


View Profile
June 08, 2017, 10:13:14 AM
 #704

I wanna make a program which makes bets like this:
                     There is a basebet equal to 0.00000001. This basebet is placed with chance of 90% and bethigh=true.It is rolled till a number less than 9.99 is rolled.When the number less than 9.99 is rolled ,then the next bet is placed with same chance and same condition at an  amount equal to (1/8) th of balance.If that bet is a win then the bet is back to base bet and continue the cycle and if the bet was a loss ,then the nextbet is placed with an amount equal to remaining balance and chance 98% with bethigh=true.This bet is placed consecutively till the balance reaches an amount greater than or equal to initial balance.
Phyzyprogrammer
Member
**
Offline Offline

Activity: 70

Visit www.btcscriptbot.wordpress.com to get latest


View Profile WWW
June 08, 2017, 10:42:41 AM
 #705

bro thanks alot GOD bless u alot for ur efforts ,, i just saw the (pseudo-code example) u gave me and am trying to work on it i will post an update on it very soon.. once am done

pls check my script .....
at the end i changed it from

if win then
 nextbet=baseBet
else
 nextbet=baseBet
end
 end
 
 TO

end

 nextbet=baseBet

end

THATS WHY IT STARTED WORKING BUT STILL NOT FOLOWING THEPROCESS IT SHOULD FOLLOW


hello thankx for ur effort sir,

my script as started working but its not performing some actions

1- it dosnt +the previous bet with the basebet
2- if the current streak is 10 it still wont change the bet to the nextbet it just continue to bet with the basebet on and on

Code:
wagered=0   
 wagered=wagered+previousbet
 chance=28.08
 chance1=90.4  --I hope this are the varies and value u asked me to set b4 dobet function
 chance2=94     --I hope this are the varies and value u asked me to set b4 dobet function
 chance3=95     --I hope this are the varies and value u asked me to set b4 dobet function
 bethigh=false
 baseBet=0.00000001 -- should the baseBet be up here?
 baseBet1=0.00000020   --I hope this are the varies and value u asked me to set b4 dobet function
 baseBet2=0.00000030   --I hope this are the varies and value u asked me to set b4 dobet function
 baseBet3=0.00000050   --I hope this are the varies and value u asked me to set b4 dobet function
 profitterget=0.00100000
 nextbet=baseBet

function dobet()

chance = 28.08

 baseBet=0.00000001

end

if win then

 nextbet=baseBet

else

 nextbet=previousbet+baseBet  -- it dse not perform this action

end

if currentstreak==-10 then  -- it dosnt perform this action too and any of the action below also.. but its just betting on with the base bet

chance = chance1
betlow = false

 nextbet=baseBet1

end
 
 if win then

  nextbet=baseBet

else
 
chance = chance2
bethigh = true

 nextbet=baseBet2

end

if win then

 nextbet=baseBet

else

chance = chance3
bethigh = false

 nextbet=baseBet3

end

 nextbet=baseBet

end
 
if (balance) >= profittarget then
stop();
print(balance)
print("TARGET ACHIEVED!!!")

 end

end


pls what should i do
  You really need to understand the logic of your script.  Lets say the bot rolled and you lost.  dobet() is entered
it does.
chance = 28.08

 baseBet=0.00000001

end

end is the end of the function, nothing after that matters.   It can get tricky because you have to also end an if/else group.   

Here is your code with better formatting so you can spot error's easier. 

Code:
wagered=0   
wagered=wagered+previousbet  <---  There is no previous bet at this point.  This doesn't do anything. 
chance=28.08
chance1=90.4 
chance2=94   
chance3=95   
bethigh=false
baseBet=0.00000001
baseBet1=0.00000020   
baseBet2=0.00000030 
baseBet3=0.00000050   
profitterget=0.00100000  <  This is misspelled... 
nextbet=baseBet

function dobet()

   chance = 28.08
   baseBet=0.00000001

end   < This ends the function dobet()  Nothing after this matters....   IE Get rid of this.......

   if win then
      nextbet=baseBet
   else
      nextbet=previousbet+baseBet  -- it dse not perform this action
   end

   if currentstreak==-10 then  -- it dosnt perform this action too and any of the action below also.. but its just betting on with the base bet
      chance = chance1
      betlow = false               --  betlow is not a valid name. 
      nextbet=baseBet1
   end
 
   if win then
      nextbet=baseBet
   else
      chance = chance2
      bethigh = true
      nextbet=baseBet2
   end

   if win then                        -- No matter what you did above this is the only block that will matter.
      nextbet=baseBet
   else
      chance = chance3
      bethigh = false
      nextbet=baseBet3
   end

   nextbet=baseBet               -- and now your just setting nextbet to always be equal to basebet   

end                                 -- Again not sure what this is for
 
if (balance) >= profittarget then
   stop();
   print(balance)
   print("TARGET ACHIEVED!!!")
end

end --This should be at the end of the

You can have nested if statement. 

if win then
else
   nextbet = previousbet * 2
   if currentstreak == -10 then
      do your 10 lose stuff
   end
   if currentstreak == -11 then
      11 lose
   end
   if currentstreak == -12 then
      12 lose
   end
   if currentstreak < -12 then
        reset everything
      nextbet = basebet
      chance = default
      bethigh = whatever you want it to be.
   end
end

   Then you could add the profit stuff.  But I would make sure the main code is working before adding stuff.  It makes it easier to catch any errors. 

]





bro hv done everything but still doing the same

If the code is at least running.  Start adding print statements to fix your logic. 
Like
print("Dobet entered")

and later in the win path

print("roll won")
print(nextbet)  to show you set nextbet. 

You can print text in quotes or the values of variables.  And .. concatenates the output.
so
print("Nextbet = "..nextbet)  should print Nextbet = 0.00000001

The pseudo-code example I gave at the end of my last update is the script your asking for without the values filled in.  Look that over carefully and try to understand what it's doing. 

Also the programming language used is called LUA.  You can search for LUA tutorials. 




visit (www.btcscriptbot.wordpress.com) we offer latest scripts and bots to earn bitcoins and other altcoins for free and paid! Earn Bitcoins with bots
Phyzyprogrammer
Member
**
Offline Offline

Activity: 70

Visit www.btcscriptbot.wordpress.com to get latest


View Profile WWW
June 08, 2017, 10:52:21 AM
 #706

WOW! bro u are such a kinded hearth and generous person i will really appricaiate it sir ,,,, here is my currrent status of my script below  (and yes i still want it to perform the same process i said b4)


Code:
wagered=0   
 wagered=wagered+previousbet
 chance=28.08
 chance1=90.4  --I hope this are the varies and value u asked me to set b4 dobet function
 chance2=94     --I hope this are the varies and value u asked me to set b4 dobet function
 chance3=95     --I hope this are the varies and value u asked me to set b4 dobet function
 bethigh=false
 baseBet=0.00000001 -- should the baseBet be up here?
 baseBet1=0.00000020   --I hope this are the varies and value u asked me to set b4 dobet function
 baseBet2=0.00000030   --I hope this are the varies and value u asked me to set b4 dobet function
 baseBet3=0.00000050   --I hope this are the varies and value u asked me to set b4 dobet function
 profitterget=0.00100000
 nextbet=baseBet

function dobet()
chance = 28.08

 baseBet=0.00000001

end

if win then

 nextbet=baseBet

else

 nextbet=previousbet+baseBet

end

if currentstreak==-10 then

chance = chance1
betlow = false

 nextbet=baseBet1

else
 
 if win then

  nextbet=baseBet

else
 
chance = chance2
bethigh = true

 nextbet=baseBet2

else

if win then

 nextbet=baseBet

else

chance = chance3
bethigh = false

 nextbet=baseBet3

end

if win then

 nextbet=baseBet

 end

 
if (balance) >= profittarget then
stop();
print(balance)
print("TARGET ACHIEVED!!!")

 end

end

its working but not following the process sir

-snip-

bro hv done everything but still doing the same

I can write you the code when I am back at home from work but is this still the behaviour you are looking for?

here is the full explaination sir (thank u in advanced)

let say i bet
0.00000002 and i win,  i want it to go back to the basebet and bet 0.00000002
But if i bet 0.00000002 and loss, then i want it to multiply *2 of my loss so my next bet will be 0.00000004
then if i loss again i want it to still double up the nextbet to 0.00000008 till i win then i want it to go back to the basebet thats if i win (i only want 10 loss in a row b4 changing to the 90% chance)

EXAMPLE

it will look like this when the lossing occurs
0.00000002
0.00000004
0.00000008
0.00000016
0.00000032
0.00000064
0.00000128
0.00000256
0.00000512
0.00001024
 till it reach 10losses but now lets assum its has reach 10losses

so when i get 10 losses i want the bet to change to 0.0003 with a 90%chance so if i dont win it i want it to change to 0.0006bet with 94%chance so if i dont win again i want the third bet to change to 0.001btc with a 95%chance
so if i in anycase win or loss THIS 90% 94% 95% CHANCES  i want it to go back to base bet and restart again


I think there might be just a missing variable change in your code. might be helpfull if you can post your current state.

visit (www.btcscriptbot.wordpress.com) we offer latest scripts and bots to earn bitcoins and other altcoins for free and paid! Earn Bitcoins with bots
Phyzyprogrammer
Member
**
Offline Offline

Activity: 70

Visit www.btcscriptbot.wordpress.com to get latest


View Profile WWW
June 08, 2017, 11:00:35 AM
 #707

thankx alot bro, am checking out the link right now,, and jh bless u

List of issues he is experiencing:

1. He has mispelled variables
2. his dobet() function is:
Code:
function dobet()
  basebet = 0.00000001
end
So basically all his script will ever do after each roll is set the basebet to 0.00000001 and then do the next roll with whatever chance, and bethigh values were set at start.
3. He has pretty much zero knowledge of programming (despite having read Seuntjies tutorials 30 times)
4. He still hasn't figured out that the programming language is called LUA after being told at least 3 times from memory
5. He doesn't understand the logical flow of the script (fairly common mistake of people new to programming)

I applaud chilly2k and Seuntjie for their initial patience in trying to help... but there is a reason there is a "simple" (and "advanced") mode...

Phyzyprogrammer... if you are serious about wanting to learn to use the programmer mode and no just run other peoples scripts, read this: https://www.lua.org/pil/contents.html


visit (www.btcscriptbot.wordpress.com) we offer latest scripts and bots to earn bitcoins and other altcoins for free and paid! Earn Bitcoins with bots
chilly2k
Legendary
*
Offline Offline

Activity: 920


View Profile
June 08, 2017, 11:01:31 AM
 #708

WOW! bro u are such a kinded hearth and generous person i will really appricaiate it sir ,,,, here is my currrent status of my script below  (and yes i still want it to perform the same process i said b4)


Code:
wagered=0   
 wagered=wagered+previousbet
 chance=28.08
 chance1=90.4  --I hope this are the varies and value u asked me to set b4 dobet function
 chance2=94     --I hope this are the varies and value u asked me to set b4 dobet function
 chance3=95     --I hope this are the varies and value u asked me to set b4 dobet function
 bethigh=false
 baseBet=0.00000001 -- should the baseBet be up here?
 baseBet1=0.00000020   --I hope this are the varies and value u asked me to set b4 dobet function
 baseBet2=0.00000030   --I hope this are the varies and value u asked me to set b4 dobet function
 baseBet3=0.00000050   --I hope this are the varies and value u asked me to set b4 dobet function
 profitterget=0.00100000
 nextbet=baseBet

function dobet()
chance = 28.08

 baseBet=0.00000001

end

if win then

 nextbet=baseBet

else

 nextbet=previousbet+baseBet

end

if currentstreak==-10 then

chance = chance1
betlow = false

 nextbet=baseBet1

else
 
 if win then

  nextbet=baseBet

else
 
chance = chance2
bethigh = true

 nextbet=baseBet2

else

if win then

 nextbet=baseBet

else

chance = chance3
bethigh = false

 nextbet=baseBet3

end

if win then

 nextbet=baseBet

 end

 
if (balance) >= profittarget then
stop();
print(balance)
print("TARGET ACHIEVED!!!")

 end

end

its working but not following the process sir



  Your code is not even close to the pseudo-code.
Code:
if win then
else
   nextbet = previousbet * 2
   if currentstreak == -10 then
      do your 10 lose stuff
   end
   if currentstreak == -11 then
      11 lose
   end
   if currentstreak == -12 then
      12 lose
   end
   if currentstreak < -12 then
        reset everything
      nextbet = basebet
      chance = default
      bethigh = whatever you want it to be.
   end
end

   Then you could add the profit stuff.  But I would make sure the main code is working before adding stuff.  It makes it easier to catch any errors.

   Try again.  I've already explained why that script above doesn't work.  If you don't understand then try reading the reply by HCP.  and if you still don't understand then I'm sorry but I can't help.

Phyzyprogrammer
Member
**
Offline Offline

Activity: 70

Visit www.btcscriptbot.wordpress.com to get latest


View Profile WWW
June 08, 2017, 11:36:20 AM
 #709

thankx bro for ur reply,
okay, hv just created new script and i think am 1% far away for it to start working so when ever i start it it brings  this msg i dont think its error tho,(Please set starting bet using nextbet = x.xxxxxxxx) so what should i do here, there is the new script below
Code:
wagered=0   
 wagered=wagered+previousbet
 chance=28.08
 chance1=90.4  --I hope this are the varies and value u asked me to set b4 dobet function
 chance2=94     --I hope this are the varies and value u asked me to set b4 dobet function
 chance3=95     --I hope this are the varies and value u asked me to set b4 dobet function
 bethigh=false
 baseBet=0.00000001 -- should the baseBet be up here?
 baseBet1=0.00000004   --I hope this are the varies and value u asked me to set b4 dobet function
 baseBet2=0.00000007   --I hope this are the varies and value u asked me to set b4 dobet function
 baseBet3=0.00000009   --I hope this are the varies and value u asked me to set b4 dobet function
 nextbet=baseBet

function dobet()
chance=28.08
baseBet=0.00000001
end

if win then

 nextbet=baseBet

else

 nextbet=previousbet*baseBet

if currentstreak== -10 then

chance = chance1
nextbet=baseBet1
bethigh = false

end
 
 if currentstreak == -11 then
 
chance = chance2
 nextbet=baseBet2
bethigh = true

end

 if currentstreak == -12 then

chance = chance3
nextbet=baseBet3
bethigh = false

end

   if currentstreak < -12 then
       
      nextbet = basebet
      chance = default
      bethigh = false
   end
end

WOW! bro u are such a kinded hearth and generous person i will really appricaiate it sir ,,,, here is my currrent status of my script below  (and yes i still want it to perform the same process i said b4)


Code:
wagered=0   
 wagered=wagered+previousbet
 chance=28.08
 chance1=90.4  --I hope this are the varies and value u asked me to set b4 dobet function
 chance2=94     --I hope this are the varies and value u asked me to set b4 dobet function
 chance3=95     --I hope this are the varies and value u asked me to set b4 dobet function
 bethigh=false
 baseBet=0.00000001 -- should the baseBet be up here?
 baseBet1=0.00000020   --I hope this are the varies and value u asked me to set b4 dobet function
 baseBet2=0.00000030   --I hope this are the varies and value u asked me to set b4 dobet function
 baseBet3=0.00000050   --I hope this are the varies and value u asked me to set b4 dobet function
 profitterget=0.00100000
 nextbet=baseBet

function dobet()
chance = 28.08

 baseBet=0.00000001

end

if win then

 nextbet=baseBet

else

 nextbet=previousbet+baseBet

end

if currentstreak==-10 then

chance = chance1
betlow = false

 nextbet=baseBet1

else
 
 if win then

  nextbet=baseBet

else
 
chance = chance2
bethigh = true

 nextbet=baseBet2

else

if win then

 nextbet=baseBet

else

chance = chance3
bethigh = false

 nextbet=baseBet3

end

if win then

 nextbet=baseBet

 end

 
if (balance) >= profittarget then
stop();
print(balance)
print("TARGET ACHIEVED!!!")

 end

end

its working but not following the process sir



  Your code is not even close to the pseudo-code.
Code:
if win then
else
   nextbet = previousbet * 2
   if currentstreak == -10 then
      do your 10 lose stuff
   end
   if currentstreak == -11 then
      11 lose
   end
   if currentstreak == -12 then
      12 lose
   end
   if currentstreak < -12 then
        reset everything
      nextbet = basebet
      chance = default
      bethigh = whatever you want it to be.
   end
end

   Then you could add the profit stuff.  But I would make sure the main code is working before adding stuff.  It makes it easier to catch any errors.

   Try again.  I've already explained why that script above doesn't work.  If you don't understand then try reading the reply by HCP.  and if you still don't understand then I'm sorry but I can't help.

visit (www.btcscriptbot.wordpress.com) we offer latest scripts and bots to earn bitcoins and other altcoins for free and paid! Earn Bitcoins with bots
Phyzyprogrammer
Member
**
Offline Offline

Activity: 70

Visit www.btcscriptbot.wordpress.com to get latest


View Profile WWW
June 08, 2017, 11:37:47 AM
 #710

it still the same script tho i just modified some stuffs in it the way u told me to

visit (www.btcscriptbot.wordpress.com) we offer latest scripts and bots to earn bitcoins and other altcoins for free and paid! Earn Bitcoins with bots
B4RF
Hero Member
*****
Offline Offline

Activity: 726


View Profile
June 08, 2017, 09:13:52 PM
 #711

WOW! bro u are such a kinded hearth and generous person i will really appricaiate it sir ,,,, here is my currrent status of my script below  (and yes i still want it to perform the same process i said b4)


-snip-

Code:
wagered=0
chance0=28.08
chance1=90.4  --I hope this are the varies and value u asked me to set b4 dobet function
chance2=94     --I hope this are the varies and value u asked me to set b4 dobet function
chance3=95     --I hope this are the varies and value u asked me to set b4 dobet function
baseBet=0.00000001 -- should the baseBet be up here?
baseBet1=0.00030000   --I hope this are the varies and value u asked me to set b4 dobet function
baseBet2=0.00060000   --I hope this are the varies and value u asked me to set b4 dobet function
baseBet3=0.00100000   --I hope this are the varies and value u asked me to set b4 dobet function
profitterget=0.00100000

nextbet=baseBet

function dobet()
wagered=wagered+previousbet
chance = chance0

if win then
nextbet=baseBet
else
nextbet=previousbet*2
end

if currentstreak==-10 then
chance=chance1
nextbet=baseBet1
end
if currentstreak==-11 then
chance=chance2
nextbet=baseBet2
end
if currentstreak==-12 then
chance=chance3
nextbet=baseBet3
end
if currentstreak<-12 then
chance=chance0
nextbet=baseBet
end

if (balance) >= profittarget then
print(balance)
print("TARGET ACHIEVED!!!")
stop();
end
end

Sry for the late reply...I didnt test it since I had not much time and I removed the betHigh/betLow bs since that makes no sense Cheesy

@HCP you are actually right ... but I already sayd I will look into it and maybe it will help him to have one functioning code in his hands xD

Phyzyprogrammer
Member
**
Offline Offline

Activity: 70

Visit www.btcscriptbot.wordpress.com to get latest


View Profile WWW
June 08, 2017, 10:14:42 PM
 #712

thankx alot bro for ur efforts the script worked, BUT (worked upside down, the first bet is 28.08 chance but it went to bet at 94% chance , and again it stops after only one bet
i get this error after the 1bet (Betting Stopped!
[string "chunk"]:36: attempt to compare nil with number)
pls what could be the error

WOW! bro u are such a kinded hearth and generous person i will really appricaiate it sir ,,,, here is my currrent status of my script below  (and yes i still want it to perform the same process i said b4)


-snip-

Code:
wagered=0
chance0=28.08
chance1=90.4  --I hope this are the varies and value u asked me to set b4 dobet function
chance2=94     --I hope this are the varies and value u asked me to set b4 dobet function
chance3=95     --I hope this are the varies and value u asked me to set b4 dobet function
baseBet=0.00000001 -- should the baseBet be up here?
baseBet1=0.00030000   --I hope this are the varies and value u asked me to set b4 dobet function
baseBet2=0.00060000   --I hope this are the varies and value u asked me to set b4 dobet function
baseBet3=0.00100000   --I hope this are the varies and value u asked me to set b4 dobet function
profitterget=0.00100000

nextbet=baseBet

function dobet()
wagered=wagered+previousbet
chance = chance0

if win then
nextbet=baseBet
else
nextbet=previousbet*2
end

if currentstreak==-10 then
chance=chance1
nextbet=baseBet1
end
if currentstreak==-11 then
chance=chance2
nextbet=baseBet2
end
if currentstreak==-12 then
chance=chance3
nextbet=baseBet3
end
if currentstreak<-12 then
chance=chance0
nextbet=baseBet
end

if (balance) >= profittarget then
print(balance)
print("TARGET ACHIEVED!!!")
stop();
end
end

Sry for the late reply...I didnt test it since I had not much time and I removed the betHigh/betLow bs since that makes no sense Cheesy

@HCP you are actually right ... but I already sayd I will look into it and maybe it will help him to have one functioning code in his hands xD

visit (www.btcscriptbot.wordpress.com) we offer latest scripts and bots to earn bitcoins and other altcoins for free and paid! Earn Bitcoins with bots
Phyzyprogrammer
Member
**
Offline Offline

Activity: 70

Visit www.btcscriptbot.wordpress.com to get latest


View Profile WWW
June 08, 2017, 10:31:46 PM
 #713

UPDATES , bro i fixed the error  (i just remove the profit targets and refix it and other un_used codes)
GOD BLESS U BRO, I CANT THANK U ENOGH
MY SCRIPT NOW WORKS EXACTLY THE WAY I WANT IT TO..............

(do u know?  it becomes a jackport hitter when u change ur basebet to 2satoshis) Wink

THATS IT FOR ANYONE INTRESTED ..........

Code:
wagered=0
chance0=28.08
chance1=90.4
chance2=94    
chance3=95  
baseBet=0.00000001
baseBet1=0.00000003  
baseBet2=0.00000004  
baseBet3=0.00000005  
nextbet=baseBet
profittarget=0.00900000
function dobet()
wagered=wagered+previousbet
chance = chance0

if win then
nextbet=baseBet
else
nextbet=previousbet*2
end

if currentstreak==-2 then
chance=chance1
nextbet=baseBet1
end
if currentstreak==-3 then
chance=chance2
nextbet=baseBet2
end
if currentstreak==-4 then
chance=chance3
nextbet=baseBet3
end
if currentstreak<-4 then
chance=chance0
nextbet=baseBet
end
if (balance) >= profittarget then
print(balance)
print("TARGET ACHIEVED!!!")
stop();
end

end



THANKX TO U ALL FOR UR SUPPORT ON THIS SCRIPT
(CREDIT: SEUNTIJ -BOT OWNER) (CREDIT: HCP - PROGRAMMER) (CREDIT : CHILLY2K - SCRIPT TIP CODER)
(MOST THANKFULL CREDIT: B4RF - SCRIPT FULLY SUPPORTER)

JAH BLESS U ALL

WILL POST MY PAYMENT PROFS SOON I JUST MADE 0.005BTC WITH IT WITH A BANKROLL OF 0.003BTC

visit (www.btcscriptbot.wordpress.com) we offer latest scripts and bots to earn bitcoins and other altcoins for free and paid! Earn Bitcoins with bots
Phyzyprogrammer
Member
**
Offline Offline

Activity: 70

Visit www.btcscriptbot.wordpress.com to get latest


View Profile WWW
June 08, 2017, 10:54:39 PM
 #714

NOW one more last thing pls how can i put a stop button in the script if i loss more than 0.003btc...
i want the script to automatically stop after i loss 0.003btc.......
and also i really want the script bet high or low cus its really impotant infact its the main key to earn so pls how and where do i put the
winhigh and winlow button (i want te 28.08% to bet high while the others which is 90%,94%and95% to bet low-------------- here is what i have tried in the script but it only use any one of it that i set to true)

Code:
wagered=0
chance0=28.08
chance1=90.4
chance2=94   
chance3=95   
baseBet=0.00000001
baseBet1=0.00000003 
baseBet2=0.00000004 
baseBet3=0.00000005 
nextbet=baseBet
bethigh=true
betlow=true
profittarget=0.00900000
function dobet()
wagered=wagered+previousbet
chance = chance0

if win then
                 bethigh=true
nextbet=baseBet
else
nextbet=previousbet*2
end

if currentstreak==-2 then
chance=chance1
                betlow=true
nextbet=baseBet1
end
if currentstreak==-3 then
chance=chance2
nextbet=baseBet2
end
if currentstreak==-4 then
chance=chance3
nextbet=baseBet3
end
if currentstreak<-4 then
chance=chance0
nextbet=baseBet
end
if (balance) >= profittarget then
print(balance)
print("TARGET ACHIEVED!!!")
stop();
end

end

visit (www.btcscriptbot.wordpress.com) we offer latest scripts and bots to earn bitcoins and other altcoins for free and paid! Earn Bitcoins with bots
HCP
Sr. Member
****
Offline Offline

Activity: 392

<insert witty quote here>


View Profile
June 09, 2017, 01:24:27 AM
 #715

bethigh = true -- does what it says, it bets "high"
bethigh = false -- does the opposite, it will bet "low"

there is no such thing as "betlow" Wink

To stop after loss, you need to track the "profit"...

Code:
...
startBalance = balance
runprofit = 0
...
function dobet()
  ...
  runprofit = balance - startBalance
  if runProfit <= -0.003 then  -- 0.003 BTC loss
    nextbet = 0
    stop()
  end

end

Phyzyprogrammer
Member
**
Offline Offline

Activity: 70

Visit www.btcscriptbot.wordpress.com to get latest


View Profile WWW
June 09, 2017, 04:11:45 AM
 #716

bethigh = true -- does what it says, it bets "high"
bethigh = false -- does the opposite, it will bet "low"

there is no such thing as "betlow" Wink

To stop after loss, you need to track the "profit"...

Code:
...
startBalance = balance
runprofit = 0
...
function dobet()
  ...
  runprofit = balance - startBalance
  if runProfit <= -0.003 then  -- 0.003 BTC loss
    nextbet = 0
    stop()
  end

end


okay bro thankx alot, but am i gonna input it this way?
Code:
...
startBalance = balance --should i change this to my starting bet or starting balance?
runprofit = 0 -- shopuld i input the number i want it to stop at here? e.g runprofit=0.00300000
...
function dobet()
  ...
  runprofit = balance - startBalance
  if runProfit <= -0.003 then  -- 0.003 BTC loss
    nextbet = 0
    stop()
  end

end

visit (www.btcscriptbot.wordpress.com) we offer latest scripts and bots to earn bitcoins and other altcoins for free and paid! Earn Bitcoins with bots
sree6020
Jr. Member
*
Offline Offline

Activity: 30


View Profile
June 09, 2017, 06:04:51 AM
 #717

I wanna make a program which makes bets like this:
                     There is a basebet equal to 0.00000001. This basebet is placed with chance of 90% and bethigh=true.It is rolled till a number less than 9.99 is rolled.When the number less than 9.99 is rolled ,then the next bet is placed with same chance and same condition at an  amount equal to (1/8) th of balance.If that bet is a win then the bet is back to base bet and continue the cycle and if the bet was a loss ,then the nextbet is placed with an amount equal to remaining balance and chance 98% with bethigh=true.This bet is placed consecutively till the balance reaches an amount greater than or equal to initial balance.



I have wrote part of the code myself and it is pretty well working:

chance = 90
bethigh = true
basebet =0.00000001
nextbet = basebet

function dobet()
   if (win) then
      chance = 90
         nextbet = basebet
                                 
                               
        else if currentstreak==-2 then
                chance=98
                nextbet=balance
               

        else if (!win) then
                chance =90 
              nextbet = balance/2
                                           
         
        else    chance=90
                nextbet=basebet
            end
                                                   
        end
                       
     end
end





BUT IN THIS CODE THE 98% chance bet is placed only once ,but I want to place the 98 % chance bets consecutively until the current balance becomes greater than or equal to the balance at each stages i.e,balance covering  the losses.CAn you help me with that..........
               
B4RF
Hero Member
*****
Offline Offline

Activity: 726


View Profile
June 09, 2017, 06:41:12 AM
 #718

I wanna make a program which makes bets like this:
                     There is a basebet equal to 0.00000001. This basebet is placed with chance of 90% and bethigh=true.It is rolled till a number less than 9.99 is rolled.When the number less than 9.99 is rolled ,then the next bet is placed with same chance and same condition at an  amount equal to (1/8) th of balance.If that bet is a win then the bet is back to base bet and continue the cycle and if the bet was a loss ,then the nextbet is placed with an amount equal to remaining balance and chance 98% with bethigh=true.This bet is placed consecutively till the balance reaches an amount greater than or equal to initial balance.



I have wrote part of the code myself and it is pretty well working:

chance = 90
bethigh = true
basebet =0.00000001
nextbet = basebet

function dobet()
   if (win) then
      chance = 90
      nextbet = basebet

   else
      if currentstreak==-2 then
         chance=98
         nextbet=balance

      else
         if (!win) then
            chance =90                                          <- dead code: else statement from if(win) see above and then if(!win) - both can never be the case
            nextbet = balance/2

         else
            chance=90
            nextbet=basebet
         end
      end
   end
end





BUT IN THIS CODE THE 98% chance bet is placed only once ,but I want to place the 98 % chance bets consecutively until the current balance becomes greater than or equal to the balance at each stages i.e,balance covering  the losses.CAn you help me with that..........
                


try formatting your code the right way (I edited your code in your post) this might help reading your own code.

I this the following programm is what you are looking for

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

startBalance = balance
lowRoll = false
recovering = false

function dobet()
if (win) then
if (!recovering || (balance >= startBalance)) then
chance = 90
nextbet = basebet

recovering = false
end
else
if (recovering) then
chance=98
nextbet=balance
else
chance = 90
nextbet = balance/8

recovering = true
end
end
end

u need a variable to save the state for your consecutive 98% bets, I used the bool recovering.
and u might wanne rebase your startBalance if you are winning (so maybe after the statement 'recovering = false'

Phyzyprogrammer
Member
**
Offline Offline

Activity: 70

Visit www.btcscriptbot.wordpress.com to get latest


View Profile WWW
June 09, 2017, 06:59:12 AM
 #719

all done now its complete and earning like really much than i expected

bethigh = true -- does what it says, it bets "high"
bethigh = false -- does the opposite, it will bet "low"

there is no such thing as "betlow" Wink

To stop after loss, you need to track the "profit"...

Code:
...
startBalance = balance
runprofit = 0
...
function dobet()
  ...
  runprofit = balance - startBalance
  if runProfit <= -0.003 then  -- 0.003 BTC loss
    nextbet = 0
    stop()
  end

end


okay bro thankx alot, but am i gonna input it this way?
Code:
...
startBalance = balance --should i change this to my starting bet or starting balance?
runprofit = 0 -- shopuld i input the number i want it to stop at here? e.g runprofit=0.00300000
...
function dobet()
  ...
  runprofit = balance - startBalance
  if runProfit <= -0.003 then  -- 0.003 BTC loss
    nextbet = 0
    stop()
  end

end

visit (www.btcscriptbot.wordpress.com) we offer latest scripts and bots to earn bitcoins and other altcoins for free and paid! Earn Bitcoins with bots
sree6020
Jr. Member
*
Offline Offline

Activity: 30


View Profile
June 09, 2017, 07:08:31 AM
 #720

I wanna make a program which makes bets like this:
                     There is a basebet equal to 0.00000001. This basebet is placed with chance of 90% and bethigh=true.It is rolled till a number less than 9.99 is rolled.When the number less than 9.99 is rolled ,then the next bet is placed with same chance and same condition at an  amount equal to (1/8) th of balance.If that bet is a win then the bet is back to base bet and continue the cycle and if the bet was a loss ,then the nextbet is placed with an amount equal to remaining balance and chance 98% with bethigh=true.This bet is placed consecutively till the balance reaches an amount greater than or equal to initial balance.



I have wrote part of the code myself and it is pretty well working:

chance = 90
bethigh = true
basebet =0.00000001
nextbet = basebet

function dobet()
   if (win) then
      chance = 90
      nextbet = basebet

   else
      if currentstreak==-2 then
         chance=98
         nextbet=balance

      else
         if (!win) then
            chance =90                                          <- dead code: else statement from if(win) see above and then if(!win) - both can never be the case
            nextbet = balance/2

         else
            chance=90
            nextbet=basebet
         end
      end
   end
end





BUT IN THIS CODE THE 98% chance bet is placed only once ,but I want to place the 98 % chance bets consecutively until the current balance becomes greater than or equal to the balance at each stages i.e,balance covering  the losses.CAn you help me with that..........
               


try formatting your code the right way (I edited your code in your post) this might help reading your own code.

I this the following programm is what you are looking for

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

startBalance = balance
lowRoll = false
recovering = false

function dobet()
if (win) then
if (!recovering || (balance >= startBalance)) then               ----------------------------------here I replaced '||' with 'or'
chance = 90
nextbet = basebet

recovering = false
end
else
if (recovering) then
chance=98
nextbet=balance
else
chance = 90
nextbet = balance/8

recovering = true
end
end
end

u need a variable to save the state for your consecutive 98% bets, I used the bool recovering.
and u might wanne rebase your startBalance if you are winning (so maybe after the statement 'recovering = false'

Okay I got the code working but there was an error which I have shown on the code .But the problem is I wanted the 98% bet to be placed with an amount equal to updated balance after each of the 98% bets.

for eg: if the balance after first 98% bet is 0.0001 then next 98% bet is placed with 0.0001 and the next bet with the updated balance and so on till loss is recovered
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!