Advertisement
Ypleitez

Untitled

Nov 12th, 2023
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.44 KB | None | 0 0
  1. -- Inicialización de variables
  2. local basebet = 0.00000001
  3. local chance = 90
  4. local profitTarget = 2 -- 100% de ganancia
  5.  
  6. -- Contadores para pérdidas consecutivas y aleatorias
  7. local consecutiveLosses = 0
  8. local randomLossesInLast10Bets = 0
  9.  
  10. -- Función para aumentar la basebet según las condiciones dadas
  11. function increaseBaseBet()
  12. if consecutiveLosses == 1 then
  13. basebet = basebet * 1000
  14. elseif consecutiveLosses == 2 then
  15. basebet = basebet * 30000
  16. elseif consecutiveLosses == 3 then
  17. basebet = basebet * 10000
  18. elseif randomLossesInLast10Bets > 3 then
  19. basebet = basebet * 1000
  20. end
  21. end
  22.  
  23. -- Función principal
  24. function main()
  25. while true do
  26. local result = math.random(100)
  27.  
  28. if result < chance then
  29. print("Ganó")
  30. consecutiveLosses = 0
  31. randomLossesInLast10Bets = 0
  32. basebet = 0.00000001
  33. else
  34. print("Perdió")
  35. consecutiveLosses = consecutiveLosses + 1
  36. randomLossesInLast10Bets = randomLossesInLast10Bets + 1
  37. increaseBaseBet()
  38.  
  39. if consecutiveLosses == 3 then
  40. chance = chance * 0.95 -- Disminuir el chance un 5%
  41. end
  42. end
  43.  
  44. if basebet >= profitTarget then
  45. print("Alcanzó el objetivo de ganancia del 100%")
  46. break
  47. end
  48. end
  49. end
  50.  
  51. -- Llamada a la función principal
  52. main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement