Pages:
Author

Topic: Seuntjie' Dice bot programmers mode discussion. - page 32. (Read 125420 times)

member
Activity: 90
Merit: 10
Visit www.btcscriptbot.wordpress.com to get latest
pls i created another script with same functions but am getting some error
like(LUA ERROR!!
'then' expected, got 'nextbet')

here is the code below

Code:
wagered=0   
 wagered=wagered+previousbet
 chance=1.01
 bethigh=false
 profitterget=0.00100000
 nextbet=baseBet

function dobet()

 baseBet=0.00000001

end

if win then

 nextbet=baseBet

else

 nextbet=previousbet+baseBet

end

if currentstreak==-10

  nextbet=0.00000020
 
if win then

 nextbet=baseBet

else
 
 nextbet=0.00000030

if win then

 nextbet=baseBet

else

 nextbet=0.00000050

if win then

 nextbet=baseBet

else

 nextbet=baseBet

 end

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

 end

end

this basically what i want the script to do , but i dont know how to set the chances, and set the bet high or low for each bet

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


pls help me
member
Activity: 90
Merit: 10
Visit www.btcscriptbot.wordpress.com to get latest
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

member
Activity: 90
Merit: 10
Visit www.btcscriptbot.wordpress.com to get latest
I have a problem that these two commands: math.randomseed( os.time() )              are not creating random numbers for the code I mentioned above.
                                                             magicNum = math.random(10,15)


I WANT THE magicNum to be a random number between 10 and 15 as in this case or any other range that I set.
It creates precisely 1 random number and assigns it to magicNum until you explicitly change it. If you want magicNum to change, you need to do magicNum = math.random(10,15) when you want the value of magicNum to be a new random number in range 10-15.

For instance, if you want to do it when you reset to basebet...

Quote
basebet = 0.00000001
math.randomseed( os.time() )
magicNum = math.random(10,15)
count = 0
nextbet = basebet

chance = XX -- You need to set this!
bethigh = true -- or false depending if you want high or low

function dobet()

  count = count + 1

  if count == magicNum then
    -- Time for MAX bet
    nextbet = balance
  elseif count > magicNum then
    -- Time to reset
    nextbet = basebet
    magicNum = math.random(10,15)
    count = 0
  end

end

pls help me too sir..
i have a problem with my code cus i cant complete it

Code:
function dobet()

if win then

 nextbet=0.00000001

else

 nextbet=previousbet*2 -- i want this to bet @28.08 chance

end

if currentstreak==-15 then

 nextbet=basebet*50 -- i wnat this nextbet to bet at 90%chance

 end -- now i want it to repeat the same process again

 

--but i dont know how to give it chance to bet with
-- i want the firstbet to bet with 28.08 then after 15losses i want the bet chance to change to 90%chance then if i win , i want it to change to basebet back and bet with the 28.08% chance, but if i loss the 90%chance, i want the the next bet to be  *3 of the 90%chance i loss b4 and i still want it to play at that 90%chance, if i loss it again, i wnat the next bet to change to *9 of the 90%chance, but if i still lose it then i want it to reset to the base bet and start again, but if i in anycase win , i want it to reset back to base bet..

end

end


pls sir help me i will really appriciate u thankx
HCP
legendary
Activity: 2086
Merit: 4361
I have a problem that these two commands: math.randomseed( os.time() )              are not creating random numbers for the code I mentioned above.
                                                             magicNum = math.random(10,15)


I WANT THE magicNum to be a random number between 10 and 15 as in this case or any other range that I set.
It creates precisely 1 random number and assigns it to magicNum until you explicitly change it. If you want magicNum to change, you need to do magicNum = math.random(10,15) when you want the value of magicNum to be a new random number in range 10-15.

For instance, if you want to do it when you reset to basebet...

Quote
basebet = 0.00000001
math.randomseed( os.time() )
magicNum = math.random(10,15)
count = 0
nextbet = basebet

chance = XX -- You need to set this!
bethigh = true -- or false depending if you want high or low

function dobet()

  count = count + 1

  if count == magicNum then
    -- Time for MAX bet
    nextbet = balance
  elseif count > magicNum then
    -- Time to reset
    nextbet = basebet
    magicNum = math.random(10,15)
    count = 0
  end

end
member
Activity: 90
Merit: 10
Visit www.btcscriptbot.wordpress.com to get latest
its what i downloaded from a dicebot fan site (yes i use dicebot v3.3.4) pls which one do u prefer i use ,, and why is the script still not working on my dicebot

What's this fan site you speak of?
satoshifaucet.wordpress.com

pls can u help me complete the codes am lost
newbie
Activity: 51
Merit: 0
I have a problem that these two commands: math.randomseed( os.time() )              are not creating random numbers for the code I mentioned above.
                                                             magicNum = math.random(10,15)


I WANT THE magicNum to be a random number between 10 and 15 as in this case or any other range that I set.
legendary
Activity: 1717
Merit: 1125
To everyone asking for help, have you tried looking at https://bot.seuntjie.com/programmermode.aspx and the tutorials that's linked there? Especially the steemit tutorials. they are aimed at beginner programmers and I try to explain how variables and functions work and have basic code examples to explain how things work as well.
legendary
Activity: 1717
Merit: 1125
its what i downloaded from a dicebot fan site (yes i use dicebot v3.3.4) pls which one do u prefer i use ,, and why is the script still not working on my dicebot

What's this fan site you speak of?
member
Activity: 90
Merit: 10
Visit www.btcscriptbot.wordpress.com to get latest
pls help me ....

i created this but i dont know how to complete the program


Code:
function dobet()

if win then

 nextbet=0.00000001

else

 nextbet=previousbet*2 -- i want this to bet @28.08 chance and it should keep on betting with the same basebet untill it reaches 15bet then it should switch to the orther bet below but if at any case i win b4 it completes the 15bets then i want it to reset to the base bet back and repeat the steps again

end

if currentstreak==-15 then

 nextbet=basebet*50 -- i wantt this nextbet to bet at 90%chance

 end -- now i want it to repeat the same process again

 

--but i dont know how to give it chance to bet with
-- i want the firstbet to bet with 28.08% then after 15losses i want the bet chance to change to 90%chance then if i win , i want it to change to basebet back and bet with the 28.08% chance, but if i loss the 90%chance, i want the the next bet to be  *3 of the 90%chance i loss b4 and i still want it to play at that 90%chance, if i loss it again, i wantt the next bet to change to *9 of the 90%chance basebet  and it should still bet at 90%chance, but if i still lose it then i want it to reset to the base bet and start again, but if i in anycase win , i want it to reset back to base bet.. and start again

end

end
newbie
Activity: 51
Merit: 0
I have tried the code like this:

basebet = 0.00000001
math.randomseed( os.time() )
magicNum = math.random(2,8)
count =0
nextbet = basebet

chance = XX -- You need to set this!
bethigh = true -- or false depending if you want high or low

function dobet()

  count = count + 1

  if count == magicNum then
    -- Time for MAX bet
    nextbet = balance
  elseif count > magicNum then
    -- Time to reset
    nextbet = basebet
    count = 0
  end

end







but it places the initial max bet after 7 bets.Then it always places a maxbet after 8 bets.


i think this should help u

Code:
basebet = 0.00000001
math.random = (1,1000)
magicNum = math.random(2,8)
count =0
nextbet = basebet

chance = XX -- You need to set this!
bethigh = true -- or false depending if you want high or low

function dobet()

  count = count + 1

  if count == magicNum then
    -- Time for MAX bet
    nextbet = balance
  elseif count > magicNum then
    -- Time to reset
    nextbet = basebet
    count = 0
  end

end







No the code you made gives this error:LUA ERROR!!
')' expected, got ','
member
Activity: 90
Merit: 10
Visit www.btcscriptbot.wordpress.com to get latest
Is there a way to choose the magicNum randomly between a set range.

Anyway THANKS FOR HELPING ME with the code .

Apparently "math.random(lower, upper)" generates 'random' integer in the range between 'lower' and 'upper' INCLUSIVE

so something like:

math.randomseed( os.time() )
magicNum = math.random(10,15)

should randomly generate a number from (10,11,12,13,14,15)

... you're welcome
thatks for replyning bro , permite me to say this but what type of programming language are we using to program here cus am just using my head to code but i do not know what type of language am typing
member
Activity: 90
Merit: 10
Visit www.btcscriptbot.wordpress.com to get latest
I have tried the code like this:

basebet = 0.00000001
math.randomseed( os.time() )
magicNum = math.random(2,8)
count =0
nextbet = basebet

chance = XX -- You need to set this!
bethigh = true -- or false depending if you want high or low

function dobet()

  count = count + 1

  if count == magicNum then
    -- Time for MAX bet
    nextbet = balance
  elseif count > magicNum then
    -- Time to reset
    nextbet = basebet
    count = 0
  end

end







but it places the initial max bet after 7 bets.Then it always places a maxbet after 8 bets.


i think this should help u

Code:
basebet = 0.00000001
math.random = (1,1000)
magicNum = math.random(2,8)
count =0
nextbet = basebet

chance = XX -- You need to set this!
bethigh = true -- or false depending if you want high or low

function dobet()

  count = count + 1

  if count == magicNum then
    -- Time for MAX bet
    nextbet = balance
  elseif count > magicNum then
    -- Time to reset
    nextbet = basebet
    count = 0
  end

end


newbie
Activity: 51
Merit: 0
Hi HCP,
     Can you check the script I pasted above and rectify the error please.
HCP
legendary
Activity: 2086
Merit: 4361
maybe just remove the resetstats() line. It seems that the bot doesnt recognise your timezone/locality or something?
member
Activity: 90
Merit: 10
Visit www.btcscriptbot.wordpress.com to get latest
heloo thanks alot for the reply bro

i tried creating ba script but i dont know what am doing wrong there i keept getting error (LUA ERROR!!
'end' expected, got)
What version of the bot are you using? Are you using the latest 3.3.4? I can't get that error... I copied and pasted the below code and it seems to be fine... at least, using runsim(0.1,1000) from the console works... and I don't see any obvious syntax errors like missing 'end' statements.

Is this code exactly what you have in your bot or did you edit it in anyway?

Code:
chance1=8.9109      -->11.11X payout
chance2=9.8020      -->10.10X payout
chance3=14.1400    -->7.77X Payout
chance4=17.8378    -->5.55X Payout
chance5=29.7297    -->3.33X Payout

m1=1.119            --> All multipliers are at 20% More Profit
m2=1.132
m3=1.178
m4=1.264
m5=1.515

target=0.00100000        --> Set your Target Profit here

betfactor=0.00001               --> "Safest" for 0.001 BTC and 0.1 Eth Bankroll
basebet=balance*betfactor --> 1 satoshi basebet for 0.001 BTC and 100 Ethoshis for 0.1 Eth Bankroll
nextbet=basebet
chance=chance1
bethigh=false
betcount=0
session=0

wincount=0
lostchance=0
losecount=0
low=0
high=0
counter=0

resetseed()
resetstats()

function dobet()

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

if win then

if profit>target then
stop()
print("TARGET REACHED!")
end

hilo()
basebet=balance*betfactor

    if basebet<0.00000001 then
basebet=0.00000001
nextbet=basebet
end

nextbet=basebet
wincount+=1
losecount=0
if wincount>0 then
chance=chance1
lostchance=1
end

if wincount>4 then
chance=chance2
lostchance=2
end

if wincount>14 then
chance=chance3
lostchance=3
end

if wincount>29 then
chance=chance4
lostchance=4
end

if wincount>49 then
chance=chance5
lostchance=5
end

if wincount>75 then
chance=chance1
lostchance=1
wincount=0
session+=1
low=0
high=0
end

else
nextbet=previousbet*m1
losecount+=1

if lostchance==1 then
if chance==chance1 then
nextbet=previousbet*m1
else
chance=chance1
nextbet=previousbet*m1
end
end

if lostchance==2 then
if chance==chance2 then
nextbet=previousbet*m2
else
chance=chance1
nextbet=previousbet*m2
end
end

if lostchance==3 then
if chance==chance3 then
nextbet=previousbet*m3
else
chance=chance1
nextbet=previousbet*m3
end
end

if lostchance==4 then
if chance==chance4 then
nextbet=previousbet*m4
else
chance=chance1
nextbet=previousbet*m4
end
end

if lostchance==5 then
if chance==chance5 then
nextbet=previousbet*m5
else
chance=chance1
nextbet=previousbet*m5
end
end

end

end

function hilo()

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

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

        if (low-high)> 15 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("Session Win : "..wincount)
print("Total Sessions : "..session)
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




this is the msg i get when i use the script u just past

Code:
Starting Dicebot 3.3.4
start()
Resetting Seed!
LUA ERROR!!
System.FormatException: String was not recognized as a valid TimeSpan.
   at System.Globalization.TimeSpanParse.TimeSpanResult.SetFailure(ParseFailureKind failure, String failureMessageID, Object failureMessageFormatArgument, String failureArgumentName)
   at System.Globalization.TimeSpanParse.TryParseTimeSpan(String input, TimeSpanStandardStyles style, IFormatProvider formatProvider, TimeSpanResult& result)
   at System.Globalization.TimeSpanParse.Parse(String input, IFormatProvider formatProvider)
   at System.TimeSpan.Parse(String s)
   at DiceBot.cDiceBot.UpdateStats()
   at DiceBot.cDiceBot.resetstats()
member
Activity: 90
Merit: 10
Visit www.btcscriptbot.wordpress.com to get latest
heloo thanks alot for the reply bro

i tried creating ba script but i dont know what am doing wrong there i keept getting error (LUA ERROR!!
'end' expected, got)
What version of the bot are you using? Are you using the latest 3.3.4? I can't get that error... I copied and pasted the below code and it seems to be fine... at least, using runsim(0.1,1000) from the console works... and I don't see any obvious syntax errors like missing 'end' statements.

Is this code exactly what you have in your bot or did you edit it in anyway?

Code:
chance1=8.9109      -->11.11X payout
chance2=9.8020      -->10.10X payout
chance3=14.1400    -->7.77X Payout
chance4=17.8378    -->5.55X Payout
chance5=29.7297    -->3.33X Payout

m1=1.119            --> All multipliers are at 20% More Profit
m2=1.132
m3=1.178
m4=1.264
m5=1.515

target=0.00100000        --> Set your Target Profit here

betfactor=0.00001               --> "Safest" for 0.001 BTC and 0.1 Eth Bankroll
basebet=balance*betfactor --> 1 satoshi basebet for 0.001 BTC and 100 Ethoshis for 0.1 Eth Bankroll
nextbet=basebet
chance=chance1
bethigh=false
betcount=0
session=0

wincount=0
lostchance=0
losecount=0
low=0
high=0
counter=0

resetseed()
resetstats()

function dobet()

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

if win then

if profit>target then
stop()
print("TARGET REACHED!")
end

hilo()
basebet=balance*betfactor

    if basebet<0.00000001 then
basebet=0.00000001
nextbet=basebet
end

nextbet=basebet
wincount+=1
losecount=0
if wincount>0 then
chance=chance1
lostchance=1
end

if wincount>4 then
chance=chance2
lostchance=2
end

if wincount>14 then
chance=chance3
lostchance=3
end

if wincount>29 then
chance=chance4
lostchance=4
end

if wincount>49 then
chance=chance5
lostchance=5
end

if wincount>75 then
chance=chance1
lostchance=1
wincount=0
session+=1
low=0
high=0
end

else
nextbet=previousbet*m1
losecount+=1

if lostchance==1 then
if chance==chance1 then
nextbet=previousbet*m1
else
chance=chance1
nextbet=previousbet*m1
end
end

if lostchance==2 then
if chance==chance2 then
nextbet=previousbet*m2
else
chance=chance1
nextbet=previousbet*m2
end
end

if lostchance==3 then
if chance==chance3 then
nextbet=previousbet*m3
else
chance=chance1
nextbet=previousbet*m3
end
end

if lostchance==4 then
if chance==chance4 then
nextbet=previousbet*m4
else
chance=chance1
nextbet=previousbet*m4
end
end

if lostchance==5 then
if chance==chance5 then
nextbet=previousbet*m5
else
chance=chance1
nextbet=previousbet*m5
end
end

end

end

function hilo()

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

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

        if (low-high)> 15 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("Session Win : "..wincount)
print("Total Sessions : "..session)
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


its what i downloaded from a dicebot fan site (yes i use dicebot v3.3.4) pls which one do u prefer i use ,, and why is the script still not working on my dicebot
HCP
legendary
Activity: 2086
Merit: 4361
heloo thanks alot for the reply bro

i tried creating ba script but i dont know what am doing wrong there i keept getting error (LUA ERROR!!
'end' expected, got)
What version of the bot are you using? Are you using the latest 3.3.4? I can't get that error... I copied and pasted the below code and it seems to be fine... at least, using runsim(0.1,1000) from the console works... and I don't see any obvious syntax errors like missing 'end' statements.

Is this code exactly what you have in your bot or did you edit it in anyway?

Code:
chance1=8.9109      -->11.11X payout
chance2=9.8020      -->10.10X payout
chance3=14.1400    -->7.77X Payout
chance4=17.8378    -->5.55X Payout
chance5=29.7297    -->3.33X Payout

m1=1.119            --> All multipliers are at 20% More Profit
m2=1.132
m3=1.178
m4=1.264
m5=1.515

target=0.00100000        --> Set your Target Profit here

betfactor=0.00001               --> "Safest" for 0.001 BTC and 0.1 Eth Bankroll
basebet=balance*betfactor --> 1 satoshi basebet for 0.001 BTC and 100 Ethoshis for 0.1 Eth Bankroll
nextbet=basebet
chance=chance1
bethigh=false
betcount=0
session=0

wincount=0
lostchance=0
losecount=0
low=0
high=0
counter=0

resetseed()
resetstats()

function dobet()

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

if win then

if profit>target then
stop()
print("TARGET REACHED!")
end

hilo()
basebet=balance*betfactor

    if basebet<0.00000001 then
basebet=0.00000001
nextbet=basebet
end

nextbet=basebet
wincount+=1
losecount=0
if wincount>0 then
chance=chance1
lostchance=1
end

if wincount>4 then
chance=chance2
lostchance=2
end

if wincount>14 then
chance=chance3
lostchance=3
end

if wincount>29 then
chance=chance4
lostchance=4
end

if wincount>49 then
chance=chance5
lostchance=5
end

if wincount>75 then
chance=chance1
lostchance=1
wincount=0
session+=1
low=0
high=0
end

else
nextbet=previousbet*m1
losecount+=1

if lostchance==1 then
if chance==chance1 then
nextbet=previousbet*m1
else
chance=chance1
nextbet=previousbet*m1
end
end

if lostchance==2 then
if chance==chance2 then
nextbet=previousbet*m2
else
chance=chance1
nextbet=previousbet*m2
end
end

if lostchance==3 then
if chance==chance3 then
nextbet=previousbet*m3
else
chance=chance1
nextbet=previousbet*m3
end
end

if lostchance==4 then
if chance==chance4 then
nextbet=previousbet*m4
else
chance=chance1
nextbet=previousbet*m4
end
end

if lostchance==5 then
if chance==chance5 then
nextbet=previousbet*m5
else
chance=chance1
nextbet=previousbet*m5
end
end

end

end

function hilo()

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

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

        if (low-high)> 15 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("Session Win : "..wincount)
print("Total Sessions : "..session)
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
member
Activity: 90
Merit: 10
Visit www.btcscriptbot.wordpress.com to get latest
Code:
heloo thanks alot for the reply bro

i tried creating ba script but i dont know what am doing wrong there i keept getting error (LUA ERROR!!
'end' expected, got)


chance1=8.9109      -->11.11X payout
chance2=9.8020      -->10.10X payout
chance3=14.1400    -->7.77X Payout
chance4=17.8378    -->5.55X Payout
chance5=29.7297    -->3.33X Payout

m1=1.119            --> All multipliers are at 20% More Profit
m2=1.132
m3=1.178
m4=1.264
m5=1.515

target=0.00100000        --> Set your Target Profit here

betfactor=0.00001               --> "Safest" for 0.001 BTC and 0.1 Eth Bankroll
basebet=balance*betfactor --> 1 satoshi basebet for 0.001 BTC and 100 Ethoshis for 0.1 Eth Bankroll
nextbet=basebet
chance=chance1
bethigh=false
betcount=0
session=0

wincount=0
lostchance=0
losecount=0
low=0
high=0
counter=0

resetseed()
resetstats()

function dobet()

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

if win then

if profit>target then
stop()
print("TARGET REACHED!")
end

hilo()
basebet=balance*betfactor

    if basebet<0.00000001 then
basebet=0.00000001
nextbet=basebet
end

nextbet=basebet
wincount+=1
losecount=0
if wincount>0 then
chance=chance1
lostchance=1
end

if wincount>4 then
chance=chance2
lostchance=2
end

if wincount>14 then
chance=chance3
lostchance=3
end

if wincount>29 then
chance=chance4
lostchance=4
end

if wincount>49 then
chance=chance5
lostchance=5
end

if wincount>75 then
chance=chance1
lostchance=1
wincount=0
session+=1
low=0
high=0
end

else
nextbet=previousbet*m1
losecount+=1

if lostchance==1 then
if chance==chance1 then
nextbet=previousbet*m1
else
chance=chance1
nextbet=previousbet*m1
end
end

if lostchance==2 then
if chance==chance2 then
nextbet=previousbet*m2
else
chance=chance1
nextbet=previousbet*m2
end
end

if lostchance==3 then
if chance==chance3 then
nextbet=previousbet*m3
else
chance=chance1
nextbet=previousbet*m3
end
end

if lostchance==4 then
if chance==chance4 then
nextbet=previousbet*m4
else
chance=chance1
nextbet=previousbet*m4
end
end

if lostchance==5 then
if chance==chance5 then
nextbet=previousbet*m5
else
chance=chance1
nextbet=previousbet*m5
end
end

end

end

function hilo()

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

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

        if (low-high)> 15 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("Session Win : "..wincount)
print("Total Sessions : "..session)
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
legendary
Activity: 1007
Merit: 1000
Is there a way to choose the magicNum randomly between a set range.

Anyway THANKS FOR HELPING ME with the code .

Apparently "math.random(lower, upper)" generates 'random' integer in the range between 'lower' and 'upper' INCLUSIVE

so something like:

math.randomseed( os.time() )
magicNum = math.random(10,15)

should randomly generate a number from (10,11,12,13,14,15)

... you're welcome
pls also help me out to i wanna learn how to create my own script for dicebot but i dont know which programming language to learn , and also i dont understand what they mean by converting a script lua

The script is written in LUA.  If you look at the first several posts I tried to guide you through creating a simple script.  If you have any specific questions about codeing or how the script is running, this is the correct thread to ask them in. 
member
Activity: 90
Merit: 10
Visit www.btcscriptbot.wordpress.com to get latest
Is there a way to choose the magicNum randomly between a set range.

Anyway THANKS FOR HELPING ME with the code .

Apparently "math.random(lower, upper)" generates 'random' integer in the range between 'lower' and 'upper' INCLUSIVE

so something like:

math.randomseed( os.time() )
magicNum = math.random(10,15)

should randomly generate a number from (10,11,12,13,14,15)

... you're welcome
pls also help me out to i wanna learn how to create my own script for dicebot but i dont know which programming language to learn , and also i dont understand what they mean by converting a script lua
Pages:
Jump to: