Advertisement
Ypleitez

Untitled

Oct 11th, 2023
35
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.85 KB | None | 0 0
  1. -- Configuración del script #1
  2. script1Balance = balance
  3. script1NextBet = balance / 1000000
  4. script1Chance = math.random(1, 80)
  5.  
  6. -- Configuración del script #2
  7. script2Balance = balance
  8. script2NextBet = balance / 1000000
  9. script2MinChance = 10
  10. script2MaxChance = 35
  11. -- Otras configuraciones específicas del script #2
  12.  
  13. -- Variables generales
  14. switchToScript2Threshold = balance * 0.01
  15. stopLossThreshold = balance * 0.1
  16. profitTarget = balance * 0.5
  17. currentScript = 1
  18.  
  19. function switchToScript2()
  20. currentScript = 2
  21. end
  22.  
  23. function switchToScript1()
  24. currentScript = 1
  25. end
  26.  
  27. function dobet()
  28. if balance <= stopLossThreshold then
  29. stop()
  30. print("Pérdida igual o mayor al 10% del balance original. Deteniendo.")
  31. elseif profit >= profitTarget then
  32. stop()
  33. print("Profit alcanzado el 50%. Deteniendo.")
  34. else
  35. if currentScript == 1 then
  36. -- Lógica del script #1
  37. -- Calcular nextbet y chance para el script #1
  38. script1NextBet = balance * (increaseOnLoss / 100) / ((1 + (increaseOnLoss / 100)) ^ lossStreaks - 1)
  39. script1Chance = math.random(1, 80)
  40.  
  41. -- Cambiar a script #2 si es necesario
  42. if script1NextBet >= switchToScript2Threshold then
  43. switchToScript2()
  44. end
  45. elseif currentScript == 2 then
  46. -- Lógica del script #2
  47. -- Calcular nextbet y chance para el script #2
  48. script2NextBet = balance / 1000000
  49. script2Chance = math.random(script2MinChance * 100.00, script2MaxChance * 100.00) / 100.00
  50. -- Otras lógicas específicas del script #2
  51.  
  52. -- Cambiar a script #1 si es necesario
  53. if balance >= script2Balance then
  54. switchToScript1()
  55. end
  56. end
  57. end
  58. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement