Hackdicecode

Untitled

Jun 4th, 2025
20
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.79 KB | None | 0 0
  1. -- === SmartLevelX v1.4 FINAL ===
  2. -- Recovery 8 level + chance random + stop profit/loss sederhana
  3.  
  4. base = balance / 1000000
  5. minbet = 0.00000001
  6. nextbet = base
  7. chance = 6.5
  8. bethigh = true
  9.  
  10. -- STATE
  11. lossStreak = 0
  12. level = 0
  13. step = 0
  14. spent = 0
  15. inRecovery = false
  16. profit = 0
  17. initialbalance = balance
  18.  
  19. -- STOP SETTINGS
  20. smartTargetProfit = balance * 0.0015 -- stop profit (0.15%)
  21. smartStopLoss = balance * -0.005 -- stop loss (-0.5%)
  22.  
  23. -- RECOVERY LEVELS: chance range + multiplier
  24. recoveryLevels = {
  25. [1] = { min = 4.2, max = 5.2, multiplier = 1.1 },
  26. [2] = { min = 5.5, max = 6.5, multiplier = 1.12 },
  27. [3] = { min = 6.2, max = 7.0, multiplier = 1.15 },
  28. [4] = { min = 7.5, max = 8.5, multiplier = 1.18 },
  29. [5] = { min = 10.0, max = 11.5, multiplier = 1.2 },
  30. [6] = { min = 13.0, max = 14.5, multiplier = 1.22 },
  31. [7] = { min = 17.0, max = 18.5, multiplier = 1.25 },
  32. [8] = { min = 22.0, max = 24.0, multiplier = 1.28 }
  33. }
  34.  
  35. function randChance(min, max)
  36. return min + math.random() * (max - min)
  37. end
  38.  
  39. function payoutFromChance(ch)
  40. return 99 / ch
  41. end
  42.  
  43. function calculateRecoveryBet(spent, payout, multiplier)
  44. if payout <= 1 then payout = 1.01 end
  45. return (spent + base * 0.5) / (payout - 1) * multiplier
  46. end
  47.  
  48. function enterRecovery()
  49. inRecovery = true
  50. level = 1
  51. step = 0
  52. local r = recoveryLevels[level]
  53. chance = randChance(r.min, r.max)
  54. end
  55.  
  56. function upgradeRecovery()
  57. if level < 8 then
  58. level = level + 1
  59. step = 0
  60. local r = recoveryLevels[level]
  61. chance = randChance(r.min, r.max)
  62. end
  63. end
  64.  
  65. function exitRecovery()
  66. inRecovery = false
  67. lossStreak = 0
  68. step = 0
  69. level = 0
  70. spent = 0
  71. chance = 6.5
  72. nextbet = base
  73. end
  74.  
  75. function dobet()
  76. profit = balance - initialbalance
  77.  
  78. -- STOP PROFIT / LOSS SIMPEL
  79. if profit >= smartTargetProfit then
  80. print("[STOP] Target profit tercapai: " .. string.format("%.8f", profit))
  81. stop()
  82. end
  83. if profit <= smartStopLoss then
  84. print("[STOP] Batas kerugian tercapai: " .. string.format("%.8f", profit))
  85. stop()
  86. end
  87.  
  88. if win then
  89. if inRecovery then
  90. exitRecovery()
  91. else
  92. lossStreak = 0
  93. nextbet = base
  94. end
  95. else
  96. lossStreak = lossStreak + 1
  97. spent = spent + nextbet
  98.  
  99. if not inRecovery and lossStreak >= 5 then
  100. enterRecovery()
  101. end
  102.  
  103. if inRecovery then
  104. step = step + 1
  105. local r = recoveryLevels[level]
  106. local payout = payoutFromChance(chance)
  107. nextbet = calculateRecoveryBet(spent, payout, r.multiplier)
  108.  
  109. if step >= 5 and level < 8 then
  110. upgradeRecovery()
  111. end
  112.  
  113. if nextbet > balance * 0.5 then
  114. nextbet = balance / 2
  115. stop()
  116. end
  117. else
  118. nextbet = base
  119. end
  120. end
  121.  
  122. bethigh = math.random(0,1) == 1
  123. end
  124.  
Add Comment
Please, Sign In to add comment