Advertisement
coinwalk

lua cool

Jun 29th, 2020
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. more = balance
  2. fraction = 800000
  3. basebet = balance/fraction
  4. nextbet = basebet
  5. winn = 0
  6. chance = 49.95
  7. lol = (math.random(1,2))
  8. bethigh = true
  9. target = balance*10
  10. function dobet()
  11. if (win) then
  12. winn+=1
  13. else
  14. winn = 0
  15. end
  16. if (winn == lol) then
  17. nextbet = previousbet*2
  18. winn = 0
  19. else
  20. nextbet = previousbet
  21. lol = (math.random(1,2))
  22. end
  23. if (balance > more) and win then
  24. nextbet = basebet
  25. more = balance
  26. end
  27. if (balance > target) then
  28. stop()
  29. end
  30. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement