Advertisement
Ypleitez

Untitled

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