coinwalk

Ascension Script

Jun 15th, 2020
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.28 KB | None | 0 0
  1. -- Ascension Script
  2. -- At any time you can type stoponwin=true in the
  3. -- console to halt the script after the next win
  4.  
  5. -- siteminimum: Set the minimum bet for the site you play on
  6. siteminimum = balance/100000
  7. -- targetprofit: Set your target balance
  8. targetprofit = 400.00260000
  9. -- balancegain: percentage of balance to gain on win
  10. balancegain = 0.25
  11. -- maxstartingchance: Maximum chance to start betting
  12. maxstartingchance = 39.6
  13. -- minimumchance: The lowest chance per bet
  14. minimumchance = 10.00
  15. -- maximumchance: The highest chance per bet
  16. maximumchance = 66
  17. -- maximumloss: Maximum percentage of balance to lose before resetting
  18. maximumloss = 100
  19. -- stepstomax: How many chance increases before max chance is reached
  20. stepstomax = 10
  21. -- goallin: True to go all in if balance is less than next bet
  22. goallin = true
  23. betcount=1 -- Number of Bets before Seed Reset
  24. counter=0
  25. resetstats()
  26.  
  27. -- No need to change anything below this line
  28. -- If you do things may not work properly
  29.  
  30. function IsItProfitable(thischance, bet, hole, target)
  31. thisprofit = GetPayout(thischance) * bet
  32. totalprofit = thisprofit - (hole + bet)
  33.  
  34. if (totalprofit > target) then
  35. return 1
  36. else
  37. return 0
  38. end
  39. end
  40.  
  41. function GetPayout(whatchance)
  42. payoutamt = 99 / whatchance
  43.  
  44. return payoutamt
  45. end
  46.  
  47. function GetNextChance(currentbalance, minimum)
  48. profitgoal = currentbalance * (balancegain / 100)
  49. payoutamt = (profitgoal + siteminimum) / siteminimum
  50. chance = 99 / payoutamt
  51.  
  52. if (chance > maxstartingchance) then
  53. chance = maxstartingchance
  54. end
  55.  
  56. if (chance < minimumchance) then
  57. chance = minimumchance
  58. end
  59.  
  60. return chance
  61. end
  62.  
  63. function GetRandom()
  64. r = math.random(2)
  65.  
  66. if r == 1 then
  67. bethigh = true
  68. else
  69. bethigh = false
  70. end
  71. end
  72.  
  73. initialmulti = 1
  74. multistep = 0.001
  75. losstotal = 0
  76. stoponwin = false
  77.  
  78. GetRandom()
  79.  
  80. nextbet = siteminimum
  81. chance = GetNextChance(balance, siteminimum)
  82. nextstep = (maximumchance - chance) / stepstomax
  83. maxdrawdown = balance * (maximumloss / 100)
  84.  
  85. targetbits = (nextbet * GetPayout(chance)) - nextbet
  86.  
  87. function dobet()
  88. print("Current Balance : "..string.format("%.8f",balance))
  89. print("Current Profit : "..string.format("%.8f",profit))
  90. if betcount == counter then
  91. resetseed();
  92. counter=0
  93. else
  94. counter+=1
  95. end
  96. if (balance > siteminimum) then
  97. if (chance >= 99) then
  98. nextbet = siteminimum
  99. chance = GetNextChance(balance, siteminimum)
  100. nextstep = (maximumchance - chance) / stepstomax
  101. maxdrawdown = balance * (maximumloss / 100)
  102.  
  103. targetbits = (nextbet * GetPayout(chance)) - nextbet
  104. end
  105.  
  106. if (win) then
  107. if (balance > targetprofit) then
  108. print("Target Achieved!")
  109. ching()
  110. stop()
  111. end
  112.  
  113. if (stoponwin) then
  114. stop()
  115. end
  116.  
  117. print(balance)
  118.  
  119. if (bethigh) then
  120. bethigh = false
  121. else
  122. bethigh = true
  123. end
  124.  
  125. nextbet = siteminimum
  126. chance = GetNextChance(balance, siteminimum)
  127. nextstep = (maximumchance - chance) / stepstomax
  128. maxdrawdown = balance * (maximumloss / 100)
  129.  
  130. losstotal = 0
  131.  
  132. targetbits = (nextbet * GetPayout(chance)) - nextbet
  133. else
  134. chance = chance + nextstep
  135.  
  136. if (chance > maximumchance) then
  137. chance = maximumchance
  138. end
  139.  
  140. losstotal = losstotal + previousbet
  141. multi = initialmulti
  142. nextbet = previousbet * multi
  143.  
  144. while (IsItProfitable(chance, nextbet, losstotal, targetbits) == 0) do
  145. multi = multi + multistep
  146. nextbet = nextbet * multi
  147. end
  148.  
  149. if (losstotal > maxdrawdown) then
  150. print("Max Loss Hit. Resetting.")
  151. nextbet = siteminimum
  152. chance = GetNextChance(balance, siteminimum)
  153. nextstep = (maximumchance - chance) / stepstomax
  154. maxdrawdown = balance * (maximumloss / 100)
  155.  
  156. losstotal = 0
  157.  
  158. targetbits = (nextbet * GetPayout(chance)) - nextbet
  159. end
  160. end
  161.  
  162. if (goallin and (balance - nextbet) < siteminimum) then
  163. nextbet = balance
  164. chance = chance - 0.01
  165.  
  166. while (IsItProfitable(chance, nextbet, losstotal, targetbits) == 0) do
  167. chance = chance - 0.01
  168. end
  169.  
  170. if (chance < 0.01) then
  171. chance = 0.01
  172. end
  173. end
  174.  
  175. if (balance < nextbet) then
  176. print("You Busted!")
  177. alarm()
  178. stop()
  179. end
  180. else
  181. print("You Busted!")
  182. alarm()
  183. stop()
  184. end
  185. end
Add Comment
Please, Sign In to add comment