Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- SNOWY [improved by Jack]
- -- added stoploss from rolling balance as 1%;
- -- added stop-on-win [now set at 10% profit of balance]
- chance = 49.95
- nextbet = balance/600000
- losecount = 0
- betcount = 0
- bethigh = true
- peak = balance
- stoploss = peak * 0.99
- function dobet()
- if balance-nextbet >= balance*1.10 then
- print("winner, chicken dinner!")
- ching()
- stop()
- end
- if balance-nextbet <= stoploss then
- print("woopsie!")
- stop()
- end
- if win then
- peak = balance
- nextbet = balance/600000
- chance = 49.95
- losecount = 0
- betcount += 1
- resetstats();
- bethigh=true
- else
- losecount += 1
- betcount = 0
- end
- if (losecount > 0) then
- chance = 79.92
- nextbet = previousbet*16
- bethigh = false
- bethigh = false
- end
- if (losecount > 1) then
- chance = 62.43
- nextbet = previousbet*2
- bethigh = false
- end
- if (losecount > 2) then
- chance = 95
- nextbet = previousbet*35
- bethigh = false
- resetseed();
- end
- if (losecount > 3) then
- chance = 95
- nextbet = previousbet*22.5
- bethigh = !bethigh
- resetseed();
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement