Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- io.write('++ input basebet ')
- local basebet = io.read("*n")
- io.write('++ input chance ')
- local chancef = io.read("*n")
- io.write('++ input multiplier ')
- local multi = io.read("*n")
- io.write('++ input prebet ')
- local prebet = io.read("*n")
- io.write('++ input postbet ')
- local postbet = io.read("*n")
- io.write('++ input pause ifprofit % ')
- local ifpause = io.read("*n")
- io.write('++ input stop ifprofit % ')
- local ifprofit = io.read("*n")
- os.execute("cls")
- -- basebet = 0.1
- -- multi = 1.5
- -- prebet = 10
- -- postbet = 20
- dopause = balance*(ifpause/100)
- target = balance+(balance*(ifprofit/100))
- chancef = 9
- streakmx = 0
- chance = chancef
- nextbet = basebet
- lastch = chance
- profitc = 0
- function shoot()
- if math.random(10)<3 then
- chance = math.random(10,50)/10
- end
- end
- function betload(a,b)
- return math.abs(a)/((95/b)-1)*1.01
- end
- function dobet()
- profitc = profitc + currentprofit
- if profitc > 0 then
- if profitc > dopause then
- pause()
- end
- profitc = 0
- end
- if win then
- if streakmx > prebet+postbet then
- prebet = prebet+(streakmx-(prebet+postbet))
- end
- nextbet = basebet
- chance = chancef
- lastch = chance
- else
- streak = math.abs(currentstreak)
- nextbet = previousbet*multi
- if streak > postbet+prebet then
- chance = math.max(chance,lastch)
- chance = chance+(chance*(2/100))
- nextbet = betload(profitc,chance)
- lastch = chance
- shoot()
- end
- if streak < prebet then
- nextbet = basebet
- end
- streakmx = math.max(streakmx,streak)
- end
- nextbet = math.max(nextbet,basebet)
- if balance > target then stop() end
- print("++ streak :"..prebet.." post until :"..(prebet+postbet))
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement