Advertisement
Ypleitez

Untitled

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