Advertisement
Ypleitez

Untitled

Oct 9th, 2023
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.31 KB | None | 0 0
  1. CREDITS --
  2. -- Original was made by DSetzer for BustaBit. --
  3. -- https://gist.github.com/dsetzer/fb2a925098135c7a1ff95002b11ccc3e --
  4.  
  5. baseBet = 0
  6. minPayout = 1.3
  7. maxPayout = 4.5
  8. incPayout = 1.5
  9. currBet = baseBet
  10. currPayout = minPayout
  11. chance = 99/currPayout
  12. maxLoss = 1000
  13. startingBalance = balance
  14. rolls = 0
  15. resetstats()
  16. resetseed()
  17. function roundBal(num)
  18. return (10 ^ math.floor((math.log(num))/(math.log(10))))
  19. end
  20. if (baseBet == 0) then
  21. baseBet = roundBal(balance/100000)
  22. currBet = baseBet
  23. end
  24. nextbet = currBet
  25. function dobet()
  26. rolls = rolls + 1
  27. if (win) then
  28. currBet = baseBet
  29. currPayout = minPayout
  30. if(bethigh)then
  31. bethigh = false
  32. else
  33. bethigh = true
  34. end
  35. else
  36. currPayout = currPayout + incPayout
  37. if (currPayout > maxPayout) then
  38. currBet = currBet * (maxPayout / (minPayout - 1))
  39. currPayout = minPayout
  40. end
  41. end
  42.  
  43. if (balance - startingBalance <= maxLoss * -1) then
  44. print("Max Loss Reached. Stopping")
  45. stop()
  46. end
  47.  
  48. if (balance - startingBalance >= maxLoss) then
  49. startingBalance = balance
  50. resetseed()
  51. currBet = baseBet
  52. currPayout = minPayout
  53. end
  54.  
  55. if (rolls % 10 == 0) then
  56. print("Starting Balance: " .. startingBalance .. " | Profit: " .. balance-startingBalance)
  57. end
  58. nextbet = currBet
  59. chance = 99/currPayout
  60.  
  61.  
  62. end
  63.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement