![Huh](https://bitcointalk.org/Smileys/default/huh.gif)
Thank you all for help
2 more questions
1. how can i make this script to start to bet basebet after 3 losses in the row?
2. how to make this script to bet 10% o the balance on 90% chance randomly every 20-50 won bets?
2 more questions
1. how can i make this script to start to bet basebet after 3 losses in the row?
2. how to make this script to bet 10% o the balance on 90% chance randomly every 20-50 won bets?
Code:
startbalance=balance
chance=49.5
multiplier=2
base=balance/1000
nextbet=base
bethigh=false
resetstats()
function dobet()
base=balance/1000
if math.random() < .5 then
bethigh = !bethigh
end
if win then
if profit > balance/2000 then
resetstats()
nextbet=base
else
nextbet=previousbet
end
else
nextbet=previousbet*multiplier
end
if balance - startbalance > 0.00100000 then
stop()
ching()
end
end