Bitcoin Forum
December 12, 2017, 08:41:49 PM *
News: Latest stable version of Bitcoin Core: 0.15.1  [Torrent].
 
   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 48 49 50 »
  Print  
Author Topic: Seuntjie' Dice bot programmers mode discussion.  (Read 52232 times)
B4RF
Hero Member
*****
Offline Offline

Activity: 743


View Profile
June 09, 2017, 08:36:22 AM
 #721

-snip-

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 (balance >= startBalance) then         -------------------------------edit starts here
chance = 90
nextbet = basebet

recovering = false
else
if (recovering)
nextbet = balance
else
chance = 90
nextbet = basebet
end
end                                                ------------------------------end of edit
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 with red line.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


I edited the code in my reply. You simply need to adjust the nextbet to the balance in case u won and u still need to recover.

And sorry for the || (or) Cheesy I am mainly implementing in java and didnt run any of these codes for testing.

1513111309
Hero Member
*
Offline Offline

Posts: 1513111309

View Profile Personal Message (Offline)

Ignore
1513111309
Reply with quote  #2

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

Posts: 1513111309

View Profile Personal Message (Offline)

Ignore
1513111309
Reply with quote  #2

1513111309
Report to moderator
1513111309
Hero Member
*
Offline Offline

Posts: 1513111309

View Profile Personal Message (Offline)

Ignore
1513111309
Reply with quote  #2

1513111309
Report to moderator
1513111309
Hero Member
*
Offline Offline

Posts: 1513111309

View Profile Personal Message (Offline)

Ignore
1513111309
Reply with quote  #2

1513111309
Report to moderator
kwong1983
Newbie
*
Offline Offline

Activity: 24


View Profile
June 09, 2017, 09:02:14 AM
 #722

How do i code to reset base bet base on a total bet number that i desire.

For example: I put 18 bet and on x2 payout (49.50) - it does not matter if i win or lose it will reset every time it reach 18 bet.

I know this can be done in advance but there is some other feature that is limit in advance.

Thanks
kwong

*Update i have firgure how to reset it after some code testing. Thanks
sree6020
Jr. Member
*
Offline Offline

Activity: 33


View Profile
June 09, 2017, 11:33:26 AM
 #723

-snip-

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 (balance >= startBalance) then         -------------------------------edit starts here
chance = 90
nextbet = basebet

recovering = false
else
if (recovering)                  --------------------------------------------------then????
nextbet = balance
else
chance = 90
nextbet = basebet
end
end                                                ------------------------------end of edit
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 with red line.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


I edited the code in my reply. You simply need to adjust the nextbet to the balance in case u won and u still need to recover.

And sorry for the || (or) Cheesy I am mainly implementing in java and didnt run any of these codes for testing.




Th@nk you B4RF Your code works as it should.Anyway I still had an issue with the code since you forgot a 'then' statement in the editted section(I have marked it in the code above) .But thats OK..

But I still have a problem the 98% chance bet is placed consecutively only till the balance is greater than the initial balance when starting a session and not takes account of the profits made in between.I want  the 98% bet to stop only when the balance is greater than the maxbalance(balance with intermediate profits also included).


for eg: if I start from faucet of 750 sats and  I make profits and reaches a balance 770 sats.Suppose I haven't had a situation to place 98% chance bets till balance is 770.Then lately I have reaches a stage to put 98% chance bets.At this time the bets are placed consecutively till the balance>750 and not 770. I want the 98% bet to stop when balance is greater than 770.
B4RF
Hero Member
*****
Offline Offline

Activity: 743


View Profile
June 09, 2017, 05:25:40 PM
 #724

-snip-

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 (balance >= startBalance) then
chance = 90
nextbet = basebet

startBalance = balance
recovering = false
else
if (recovering) then
nextbet = balance
else
chance = 90
nextbet = basebet
end
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 with red line.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


I edited the code in my reply. You simply need to adjust the nextbet to the balance in case u won and u still need to recover.

And sorry for the || (or) Cheesy I am mainly implementing in java and didnt run any of these codes for testing.




Th@nk you B4RF Your code works as it should.Anyway I still had an issue with the code since you forgot a 'then' statement in the editted section(I have marked it in the code above) .But thats OK..

But I still have a problem the 98% chance bet is placed consecutively only till the balance is greater than the initial balance when starting a session and not takes account of the profits made in between.I want  the 98% bet to stop only when the balance is greater than the maxbalance(balance with intermediate profits also included).


for eg: if I start from faucet of 750 sats and  I make profits and reaches a balance 770 sats.Suppose I haven't had a situation to place 98% chance bets till balance is 770.Then lately I have reaches a stage to put 98% chance bets.At this time the bets are placed consecutively till the balance>750 and not 770. I want the 98% bet to stop when balance is greater than 770.

Ye I didnt run the code myself so mistakes are common but nice that u have no problems finding my mistakes Smiley

But in addition I have already mentioned how u can add that behaviour u asked for:


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'

I changed the code above once again :S

sree6020
Jr. Member
*
Offline Offline

Activity: 33


View Profile
June 09, 2017, 06:14:17 PM
 #725

Ok B4RF
           Now it is exactly working as I need it.........Thanks again for your help Smiley
Phyzyprogrammer
Member
**
Offline Offline

Activity: 83

Visit www.btcscriptbot.wordpress.com to get latest


View Profile WWW
June 09, 2017, 08:15:28 PM
 #726

hello am back again guys,,

pls how do i put a stop button in my script,,
i mean i want it to stop after 0.003btc loss....
but the code hcp gave me only let it stop after 1 bet
Code:
--Its a script with embaded jackport hitter
--so recommended bankroll is (0.002btc) if u are looking farward to hit a jackport, and u have to edit and change the winstreacks accordingling from (17,18,19and19) and change the baseBet to 0.00000002 thats if u wanna hit the jackport!!!
--but if u just wanna keep winning (then leave everything and dont change anything) and the recomended bankroll u should have is (0.009 upward)


wagered=0
chance0=28.08
chance1=90.4
chance2=94   
chance3=95   
baseBet=0.00000001         --You must change the basebet to 0.00000002 if u wanna hit the jackport
baseBet1=0.00000500 
baseBet2=0.00002500 
baseBet3=0.00009500 
nextbet=baseBet
bethigh=true
bethigh=false
startBalance = balance
runprofit = 0
profittarget=0.00900000
function dobet()
wagered=wagered+previousbet
chance = chance0

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

if currentstreak==-5 then -->you can edit and change the number
chance=chance1
                bethigh=false
nextbet=baseBet1
print(nextbet)
print("Yea,Thats the PhyzyWin!!!")

end
if currentstreak==-6 then -->you can edit and change the number
chance=chance2
                bethigh=false
nextbet=baseBet2
print(nextbet)
print("Yea,Thats the PhyzyGain!!!")
end
if currentstreak==-7 then -->you can edit and change the number
chance=chance3
                bethigh=true
nextbet=baseBet3
end
if currentstreak<-7 then -->you can edit and change the number
chance=chance0
nextbet=baseBet
print(nextbet)
print("Yea,Thats the Phyzyrecovery!!!")
end
  runprofit = balance - startBalance
  if runProfit <= -0.001 then  -- 0.001 BTC loss
     nextbet = 0
    stop()
end
if (balance) >= profittarget then
print(balance)
print("TARGET ACHIEVED!!!")
stop();
end


end

-snip-

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 (balance >= startBalance) then
chance = 90
nextbet = basebet

startBalance = balance
recovering = false
else
if (recovering) then
nextbet = balance
else
chance = 90
nextbet = basebet
end
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 with red line.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


I edited the code in my reply. You simply need to adjust the nextbet to the balance in case u won and u still need to recover.

And sorry for the || (or) Cheesy I am mainly implementing in java and didnt run any of these codes for testing.




Th@nk you B4RF Your code works as it should.Anyway I still had an issue with the code since you forgot a 'then' statement in the editted section(I have marked it in the code above) .But thats OK..

But I still have a problem the 98% chance bet is placed consecutively only till the balance is greater than the initial balance when starting a session and not takes account of the profits made in between.I want  the 98% bet to stop only when the balance is greater than the maxbalance(balance with intermediate profits also included).


for eg: if I start from faucet of 750 sats and  I make profits and reaches a balance 770 sats.Suppose I haven't had a situation to place 98% chance bets till balance is 770.Then lately I have reaches a stage to put 98% chance bets.At this time the bets are placed consecutively till the balance>750 and not 770. I want the 98% bet to stop when balance is greater than 770.

Ye I didnt run the code myself so mistakes are common but nice that u have no problems finding my mistakes Smiley

But in addition I have already mentioned how u can add that behaviour u asked for:


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'

I changed the code above once again :S

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
*
Online Online

Activity: 958


View Profile
June 09, 2017, 08:33:49 PM
 #727

hello am back again guys,,

pls how do i put a stop button in my script,,
i mean i want it to stop after 0.003btc loss....
but the code hcp gave me only let it stop after 1 bet
Code:
--Its a script with embaded jackport hitter
--so recommended bankroll is (0.002btc) if u are looking farward to hit a jackport, and u have to edit and change the winstreacks accordingling from (17,18,19and19) and change the baseBet to 0.00000002 thats if u wanna hit the jackport!!!
--but if u just wanna keep winning (then leave everything and dont change anything) and the recomended bankroll u should have is (0.009 upward)


wagered=0
chance0=28.08
chance1=90.4
chance2=94   
chance3=95   
baseBet=0.00000001         --You must change the basebet to 0.00000002 if u wanna hit the jackport
baseBet1=0.00000500 
baseBet2=0.00002500 
baseBet3=0.00009500 
nextbet=baseBet
bethigh=true
bethigh=false
startBalance = balance
runprofit = 0
profittarget=0.00900000
function dobet()
wagered=wagered+previousbet
chance = chance0

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

if currentstreak==-5 then -->you can edit and change the number
chance=chance1
                bethigh=false
nextbet=baseBet1
print(nextbet)
print("Yea,Thats the PhyzyWin!!!")

end
if currentstreak==-6 then -->you can edit and change the number
chance=chance2
                bethigh=false
nextbet=baseBet2
print(nextbet)
print("Yea,Thats the PhyzyGain!!!")
end
if currentstreak==-7 then -->you can edit and change the number
chance=chance3
                bethigh=true
nextbet=baseBet3
end
if currentstreak<-7 then -->you can edit and change the number
chance=chance0
nextbet=baseBet
print(nextbet)
print("Yea,Thats the Phyzyrecovery!!!")
end
  runprofit = balance - startBalance
  if runProfit <= -0.001 then  -- 0.001 BTC loss
     nextbet = 0
    stop()
end
if (balance) >= profittarget then
print(balance)
print("TARGET ACHIEVED!!!")
stop();
end


end

-snip-

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 (balance >= startBalance) then
chance = 90
nextbet = basebet

startBalance = balance
recovering = false
else
if (recovering) then
nextbet = balance
else
chance = 90
nextbet = basebet
end
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 with red line.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


I edited the code in my reply. You simply need to adjust the nextbet to the balance in case u won and u still need to recover.

And sorry for the || (or) Cheesy I am mainly implementing in java and didnt run any of these codes for testing.




Th@nk you B4RF Your code works as it should.Anyway I still had an issue with the code since you forgot a 'then' statement in the editted section(I have marked it in the code above) .But thats OK..

But I still have a problem the 98% chance bet is placed consecutively only till the balance is greater than the initial balance when starting a session and not takes account of the profits made in between.I want  the 98% bet to stop only when the balance is greater than the maxbalance(balance with intermediate profits also included).


for eg: if I start from faucet of 750 sats and  I make profits and reaches a balance 770 sats.Suppose I haven't had a situation to place 98% chance bets till balance is 770.Then lately I have reaches a stage to put 98% chance bets.At this time the bets are placed consecutively till the balance>750 and not 770. I want the 98% bet to stop when balance is greater than 770.

Ye I didnt run the code myself so mistakes are common but nice that u have no problems finding my mistakes Smiley

But in addition I have already mentioned how u can add that behaviour u asked for:


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'

I changed the code above once again :S

Check your spelling.  runprofit is not the same as runProfit.

Phyzyprogrammer
Member
**
Offline Offline

Activity: 83

Visit www.btcscriptbot.wordpress.com to get latest


View Profile WWW
June 09, 2017, 10:17:01 PM
 #728

wow bro that really worked thankx alot

hello am back again guys,,

pls how do i put a stop button in my script,,
i mean i want it to stop after 0.003btc loss....
but the code hcp gave me only let it stop after 1 bet
Code:
--Its a script with embaded jackport hitter
--so recommended bankroll is (0.002btc) if u are looking farward to hit a jackport, and u have to edit and change the winstreacks accordingling from (17,18,19and19) and change the baseBet to 0.00000002 thats if u wanna hit the jackport!!!
--but if u just wanna keep winning (then leave everything and dont change anything) and the recomended bankroll u should have is (0.009 upward)


wagered=0
chance0=28.08
chance1=90.4
chance2=94   
chance3=95   
baseBet=0.00000001         --You must change the basebet to 0.00000002 if u wanna hit the jackport
baseBet1=0.00000500 
baseBet2=0.00002500 
baseBet3=0.00009500 
nextbet=baseBet
bethigh=true
bethigh=false
startBalance = balance
runprofit = 0
profittarget=0.00900000
function dobet()
wagered=wagered+previousbet
chance = chance0

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

if currentstreak==-5 then -->you can edit and change the number
chance=chance1
                bethigh=false
nextbet=baseBet1
print(nextbet)
print("Yea,Thats the PhyzyWin!!!")

end
if currentstreak==-6 then -->you can edit and change the number
chance=chance2
                bethigh=false
nextbet=baseBet2
print(nextbet)
print("Yea,Thats the PhyzyGain!!!")
end
if currentstreak==-7 then -->you can edit and change the number
chance=chance3
                bethigh=true
nextbet=baseBet3
end
if currentstreak<-7 then -->you can edit and change the number
chance=chance0
nextbet=baseBet
print(nextbet)
print("Yea,Thats the Phyzyrecovery!!!")
end
  runprofit = balance - startBalance
  if runProfit <= -0.001 then  -- 0.001 BTC loss
     nextbet = 0
    stop()
end
if (balance) >= profittarget then
print(balance)
print("TARGET ACHIEVED!!!")
stop();
end


end

-snip-

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 (balance >= startBalance) then
chance = 90
nextbet = basebet

startBalance = balance
recovering = false
else
if (recovering) then
nextbet = balance
else
chance = 90
nextbet = basebet
end
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 with red line.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


I edited the code in my reply. You simply need to adjust the nextbet to the balance in case u won and u still need to recover.

And sorry for the || (or) Cheesy I am mainly implementing in java and didnt run any of these codes for testing.




Th@nk you B4RF Your code works as it should.Anyway I still had an issue with the code since you forgot a 'then' statement in the editted section(I have marked it in the code above) .But thats OK..

But I still have a problem the 98% chance bet is placed consecutively only till the balance is greater than the initial balance when starting a session and not takes account of the profits made in between.I want  the 98% bet to stop only when the balance is greater than the maxbalance(balance with intermediate profits also included).


for eg: if I start from faucet of 750 sats and  I make profits and reaches a balance 770 sats.Suppose I haven't had a situation to place 98% chance bets till balance is 770.Then lately I have reaches a stage to put 98% chance bets.At this time the bets are placed consecutively till the balance>750 and not 770. I want the 98% bet to stop when balance is greater than 770.

Ye I didnt run the code myself so mistakes are common but nice that u have no problems finding my mistakes Smiley

But in addition I have already mentioned how u can add that behaviour u asked for:


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'

I changed the code above once again :S

Check your spelling.  runprofit is not the same as runProfit.

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: 83

Visit www.btcscriptbot.wordpress.com to get latest


View Profile WWW
June 09, 2017, 11:27:59 PM
 #729

hellllo guys its me again,,
pls i hv some questions....

what dose

PREBET AND

BETFACTOR MEANS

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: 448

<insert witty quote here>


View Profile
June 10, 2017, 05:12:18 AM
 #730

In relation to the dicebot? Nothing specific as far as I'm aware... They're just general gambling terms.

Prebet is generally the concept of betting at minimum bet while you wait for a certain condition to occur (like 5 losses in a row, or 4 odd numbers or a "high, low, high, low, high" pattern etc)... at which point you start betting at 'normal' amounts...

Bet factor? no idea to be honest... Not something I have seen in use.

teeftoof
Newbie
*
Offline Offline

Activity: 5


View Profile
June 12, 2017, 07:15:05 AM
 #731

Hey I am looking for an Lua coder that could conjure a simple script for me.  I can compensate if you would like... please PM ME if you can help. Thanks!
kwong1983
Newbie
*
Offline Offline

Activity: 24


View Profile
June 12, 2017, 04:36:38 PM
 #732

How do i code if i want to multiply after every 3 turn loss/win

Can anyone help me with this, thanks
B4RF
Hero Member
*****
Offline Offline

Activity: 743


View Profile
June 12, 2017, 06:21:48 PM
 #733

How do i code if i want to multiply after every 3 turn loss/win

Can anyone help me with this, thanks

So you have a basebet and want to multipy that bet after every 3rd bet? Or only when you lost 3 bets in a row?

I think that kind of stuff is already possible in the advanced mode, right? You wont need any code for that.

seuntjie
Legendary
*
Offline Offline

Activity: 1447



View Profile WWW
June 12, 2017, 08:44:35 PM
 #734

How do i code if i want to multiply after every 3 turn loss/win

Can anyone help me with this, thanks

Examples make everyones life easier if you can't speak english properly

Phyzyprogrammer
Member
**
Offline Offline

Activity: 83

Visit www.btcscriptbot.wordpress.com to get latest


View Profile WWW
June 12, 2017, 10:43:25 PM
 #735

helo guys its me again,

i just saw this script i downloaded but i wanted to add stop on loss in it but its not stoping even after i added the code ,
can anyone pls let me know what am doing wrong
thankx alo

Code:
-- The Russian Roulette by McGuyver
-- If you like my scrypt, your donations are much welcome ;)
-- My BTC Wallet: 33kx7iqfjSLuEAoW7EasLs83vontLmCvAE

chance1=8.9189              -->11.10X payout
chance2=10.1020             --> 9.8X payout
chance3=13.0263             --> 7.6X Payout
chance4=18.3333             --> 5.4X Payout
chance5=30.9375             --> 3.2X Payout

m1=1.119         --> Multipliers

(Increase on Lose 1.119=11.9% Inc on lose)
m2=1.137
m3=1.182
m4=1.274
m5=1.546

target=0.00100000     --> Set your Target Profit

here

prebet=0.00000001
betfactor=0.00002           --> very conservative to absorb max

losses with profit on win (Bankroll*0.00002 = basebet)
basebet=balance*betfactor --> 2 sats basebet at .0005 BTC,

basebet increases as balance increases; basebet=0.00000002

(fixed basebet) 
nextbet=prebet
chance=chance1
bethigh=false

startBalance = balance               -- this is the where i put the stop on win button
runprofit = 0

lostchance=1
losecount=0
wincount=0
trigger=0
betcount=0
preroll=9
counter=0
high=0
low=0



resetseed()
--resetstats()              --> To reset your statistics, remove

the double dash (--)

function dobet()

loadgun()
betroll()
rstseed()
viewstats()
betcount+=1

if basebet<0.00000002 then  --> Change this for a higher basebet

(Both Values)
basebet=0.00000002
end

e=currentstreak+preroll

if win then

goal()
loadgun()
basebet=balance*betfactor

if basebet<0.00000002 then  --> Change this for a higher

basebet (Both Values)
basebet=0.00000002
end

nextbet=prebet
wincount+=1
losecount=0

hilo()

if trigger==1 then
chance=chance1
lostchance=1
preroll=9
end

if trigger==2 then
chance=chance2
lostchance=2
preroll=8
end

if trigger==3 then
chance=chance3
lostchance=3
preroll=5
end

if trigger==4 then
chance=chance4
lostchance=4
preroll=4
end

if trigger==5 then
chance=chance5
lostchance=5
preroll=1
end

else
losecount+=1
nexbet=prebet

if lostchance==1 then
if e == 0 then
chance=chance1
nextbet=basebet
end

if e <0 then
chance=chance1
nextbet=previousbet*m1
end
end

if lostchance==2 then
if e == 0 then
chance=chance2
nextbet=basebet
end

if e <0 then
chance=chance2
nextbet=previousbet*m2
end
end

if lostchance==3 then
if e == 0 then
chance=chance3
nextbet=basebet
end

if e <0 then
chance=chance3
nextbet=previousbet*m3
end
end

if lostchance==4 then
if e == 0 then
chance=chance4
nextbet=basebet
end

if e <0 then
chance=chance4
nextbet=previousbet*m4
end

end

if lostchance==5 then
-- randomizer()
if e == 0 then
chance=chance5
nextbet=basebet
end

if e <0 then
chance=chance5
nextbet=previousbet*m5
end

end

end

end

function hilo()

        if high > low then
bethigh=true
        else
bethigh=false
        end

       if (high-low) > 5 then
bethigh=false
        end

        if (low-high)> 5 then
bethigh=true
        end
end

function betroll()

if (lastBet.roll < chance) then
low += 1
end

if (lastBet.roll > (99.99 - chance)) then
high += 1
end

end

function rstseed()

if counter==500 then

resetseed()
counter=0
low=0
high=0
else

counter+=1

end
end

function viewstats()
print(" ")
print("Total Bet : "..betcount)
print("Current Streak Loss : "..losecount)
print("Wins : "..wincount)
print("Losses : "..(betcount-wincount))
print("Current Profit : "..string.format("%.8f",profit))
print("Target Profit : "..string.format("%.8f",target))
print("Current Balance : "..string.format("%.8f",balance))
print("High :"..high.." / ".."Low :"..low)
print(" ")
end

function randomizer()

r=math.random(2)

if r==2 then
bethigh=true
else
bethigh=false
end

end

function loadgun()

t=math.random(5)

trigger=t

end

function goal()
if profit>target then
stop()
print(" ")
print("TARGET REACHED!!!")
print(" ")
print("Total Wins : "..wincount)
print("Total Losses : "..(betcount-wincount))
print("Total Bet : "..betcount)
print("Current Profit : "..string.format("%.8f",profit))
print("Target Profit : "..string.format("%.8f",target))
print("Final Balance : "..string.format("%.8f",balance))
print(" ")

runprofit = balance - startBalance
  if runprofit <= -0.001 then  -- 0.001 BTC loss            -- this is whwer i put the stop on win
    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
HCP
Sr. Member
****
Offline Offline

Activity: 448

<insert witty quote here>


View Profile
June 12, 2017, 11:07:28 PM
 #736

You need to put the runprofit calculation OUTSIDE of the "if profit>target then" block... You have put it inside that block... so it will only do that calculation if profit>target... Roll Eyes

Basically, you are missing an "end" statement:
Quote
function goal()
  if profit>target then
    stop()
    print(" ")
    print("TARGET REACHED!!!")
    print(" ")
    print("Total Wins : "..wincount)
    print("Total Losses : "..(betcount-wincount))
    print("Total Bet : "..betcount)
    print("Current Profit : "..string.format("%.8f",profit))
    print("Target Profit : "..string.format("%.8f",target))
    print("Final Balance : "..string.format("%.8f",balance))
    print(" ")
  end

  runprofit = balance - startBalance
  if runprofit <= -0.001 then  -- 0.001 BTC loss            -- this is whwer i put the stop on win
    nextbet = 0
    stop()
  end   

end

Phyzyprogrammer
Member
**
Offline Offline

Activity: 83

Visit www.btcscriptbot.wordpress.com to get latest


View Profile WWW
June 12, 2017, 11:43:24 PM
 #737

You need to put the runprofit calculation OUTSIDE of the "if profit>target then" block... You have put it inside that block... so it will only do that calculation if profit>target... Roll Eyes

Basically, you are missing an "end" statement:
Quote
function goal()
  if profit>target then
    stop()
    print(" ")
    print("TARGET REACHED!!!")
    print(" ")
    print("Total Wins : "..wincount)
    print("Total Losses : "..(betcount-wincount))
    print("Total Bet : "..betcount)
    print("Current Profit : "..string.format("%.8f",profit))
    print("Target Profit : "..string.format("%.8f",target))
    print("Final Balance : "..string.format("%.8f",balance))
    print(" ")
  end

  runprofit = balance - startBalance
  if runprofit <= -0.001 then  -- 0.001 BTC loss            -- this is whwer i put the stop on win
    nextbet = 0
    stop()
  end   

end


tankx fop ur reply bro , i hv put the (end) tatement in it,,,,
but its just running and it didint stop when it reached the loss terget,,

plus i dont understand what u mean by
Quote
You need to put the runprofit calculation OUTSIDE of the "if profit>target then" block... You have put it inside that block... so it will only do that calculation if profit>target... Roll Eyes

pls explain more sir thankx alot and bless u

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: 448

<insert witty quote here>


View Profile
June 13, 2017, 02:23:12 AM
 #738

well... as has been explained several times... an "if-then-else" statement is in the form:

Quote
if (some condition is true) then
  .. do some stuff ..
else
  .. do something else ..
end
All the code between the "if-then" and "end" (or "else" if there is an "else") will only execute if the condition evaluates to "True".

In your instance... you had put the runprofit calculation inside the "if profit>target then" section. So unless profit was greater than target, the runprofit calculation would not happen. Tongue

Anyway, the main reason for your stoploss not working, is that the goal() function where you are doing the runprofit calculation, is ONLY called if a bet wins... so it will never do the runprofit calculation on a loss, so it will never detect that you've lost any amount and stop Roll Eyes

Quote
if win then
   
   goal()
   loadgun()
   basebet=balance*betfactor
....
else
   losecount+=1
   nexbet=prebet
....
end

To fix this, you can either put the call to goal() in the dobet() function, but outside of the "if win then-else" section, so it is called for every roll... or you can add a call to goal() inside the "else" section of the "if win then-else" part of the code.

Phyzyprogrammer
Member
**
Offline Offline

Activity: 83

Visit www.btcscriptbot.wordpress.com to get latest


View Profile WWW
June 13, 2017, 08:44:47 AM
 #739

thankx for repling bro, lols if i tell u , u wouldnt belive me but still i hv to tell u (i dont understand a thing of what u hv just told me....
pls could u break it down? mnore cus my head is like  Cry spinning

well... as has been explained several times... an "if-then-else" statement is in the form:

Quote
if (some condition is true) then
  .. do some stuff ..
else
  .. do something else ..
end
All the code between the "if-then" and "end" (or "else" if there is an "else") will only execute if the condition evaluates to "True".

In your instance... you had put the runprofit calculation inside the "if profit>target then" section. So unless profit was greater than target, the runprofit calculation would not happen. Tongue

Anyway, the main reason for your stoploss not working, is that the goal() function where you are doing the runprofit calculation, is ONLY called if a bet wins... so it will never do the runprofit calculation on a loss, so it will never detect that you've lost any amount and stop Roll Eyes

Quote
if win then
   
   goal()
   loadgun()
   basebet=balance*betfactor
....
else
   losecount+=1
   nexbet=prebet
....
end

To fix this, you can either put the call to goal() in the dobet() function, but outside of the "if win then-else" section, so it is called for every roll... or you can add a call to goal() inside the "else" section of the "if win then-else" part of the code.

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
kwong1983
Newbie
*
Offline Offline

Activity: 24


View Profile
June 13, 2017, 10:36:12 AM
 #740

How do i code if i want to multiply after every 3 turn loss/win

Can anyone help me with this, thanks

So you have a basebet and want to multipy that bet after every 3rd bet? Or only when you lost 3 bets in a row?

I think that kind of stuff is already possible in the advanced mode, right? You wont need any code for that.

Multiply after lost 3 bets in a row
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 48 49 50 »
  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!