Advertisement
coinwalk

zelwin snow style crazy bot tech and snowybot tech

Jul 11th, 2020
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.18 KB | None | 0 0
  1. bdiv = 300000
  2. basebet = balance/bdiv
  3. nextbet = basebet
  4. multiplier = 1.5
  5. lodiv = 50000
  6. more = balance
  7. losebet = balance/lodiv
  8. target = balance*10
  9. chance = 50
  10. good = 0
  11. bad = 0
  12. bogus = 0
  13. betcount = 100 -- Number of Bets before Seed Reset
  14. counter = 0
  15.  
  16. resetstats()
  17.  
  18. lastWinRollCount = 0
  19. currentRollCount = 0
  20. oppositeRolls = 0
  21. oppositeArray = {}
  22. oppositeArrayCount = {}
  23. winCount = 0
  24. rollHighHigh = 0
  25. rollHighLow = 0
  26. rollLowHigh = 0
  27. rollLowLow = 0
  28. roundSpent = 0
  29.  
  30. -- Initialize system settings
  31. rollCountAverage = {}
  32. rollAverageCount = 0
  33. rollAverageIndex = 0
  34. rollAverageMax = 8-- Average roll count before a win. How many wins do you want to average?
  35.  
  36. -- Initialize the array
  37. for i=0, rollAverageMax do
  38. rollCountAverage[i] = 0
  39. end
  40.  
  41. highLowAverage = {}
  42. averageCount = 0
  43. averageIndex = 0
  44. averageMax = 8-- High / Low average switching. How many rolls do you want to average?
  45.  
  46. rollCount = 0
  47. rollSeedCount = 0
  48.  
  49. -- Initialize the array
  50. for i=0, averageMax do
  51. highLowAverage[i] = 0
  52. end
  53.  
  54. -- Start the actual betting
  55. function dobet()
  56. snow = balance/lodiv
  57. print("Current Balance : "..string.format("%.8f",balance))
  58. print("Current Profit : "..string.format("%.8f",profit))
  59. if balance-nextbet>=target then
  60. stop()
  61. ching()
  62. end
  63. if betcount == counter then
  64. resetseed();
  65. counter=0
  66. else
  67. counter+=1
  68. end
  69. if win then
  70. good += 1
  71. bogus += 1
  72. else
  73. bad+=1
  74. end
  75.  
  76. if (bad == 1) then
  77. nextbet = balance/lodiv
  78. end
  79.  
  80. if (bogus > 2) then
  81. nextbet = previousbet*multiplier
  82. bogus = 0
  83. end
  84. if (math.fmod(bad,4)==0) and (bad>3) then
  85. nextbet = previousbet*multiplier
  86. end
  87. if (good > 3) then
  88. nextbet = previousbet*multiplier
  89. good = 0
  90. end
  91. if (nextbet==nil) then
  92. nextbet = previousbet
  93. end
  94. if (balance > more+(snow*2)) then
  95. nextbet = balance/bdiv
  96. bad = 0
  97. good = 0
  98. bogus = 0
  99. more = balance
  100. end
  101.  
  102. currentRollCount += 1
  103. rollCount += 1
  104.  
  105. -- Store statistics for high / low rolls
  106.  
  107. if(lastBet.roll > 50 and bethigh == true) then -- High roll and was high
  108. rollHighHigh += 1
  109. end
  110.  
  111. if(lastBet.roll <= 50 and bethigh == true) then -- High roll and was low
  112. rollHighLow += 1
  113. end
  114.  
  115. if(lastBet.roll > 50 and bethigh == false) then -- Low roll and was high
  116. rollLowHigh += 1
  117. end
  118.  
  119. if(lastBet.roll <= 50 and bethigh == false) then -- Low roll and was low
  120. rollLowLow += 1
  121. end
  122.  
  123. -- We got a win, let's store some averages
  124.  
  125. if(win) then
  126. winCount += 1
  127. if(rollAverageCount == 0) then -- Initialize so we get a good starting average
  128. for i=0, rollAverageMax do
  129. rollCountAverage[i] = rollCount
  130. end
  131. rollAverageIndex += 1
  132. else
  133. rollCountAverage[rollAverageIndex] = rollCount
  134. rollAverageIndex += 1
  135. end
  136.  
  137. rollAverageCount += 1
  138.  
  139. if(rollAverageCount >= rollAverageMax) then
  140. rollAverageCount = rollAverageMax -- no need to keep this one climbing
  141. end
  142.  
  143. if(rollAverageIndex >= rollAverageMax) then
  144. rollAverageIndex = 0 -- reset
  145. end
  146.  
  147. rollCount = 0 -- reset for next rolling
  148. oppositeRolls = 0
  149. rollSeedCount = 0 -- Keep this seed for now
  150. rollHighHigh = 0 -- reset counters
  151. rollHighLow = 0 -- reset counters
  152. rollLowHigh = 0 -- reset counters
  153. rollLowLow = 0 -- reset counters
  154. roundSpent = 0
  155. end
  156.  
  157. -- Let's use the averages from previous rolls to see if the bet needs to be changed
  158.  
  159. if(!win) then
  160. oppositeTest = lastBet.roll
  161. end
  162.  
  163. if(oppositeTest > (100 - chance) and bethigh == false) then -- Test if we were rolling high
  164. -- print(oppositeTest)
  165. oppositeArray[oppositeRolls] = oppositeTest
  166. oppositeArrayCount[oppositeRolls] = rollCount
  167. oppositeRolls += 1
  168. end
  169.  
  170. if(oppositeTest < chance and bethigh == true) then -- Test if we were rolling low
  171. -- print(oppositeTest)
  172. oppositeArray[oppositeRolls] = oppositeTest
  173. oppositeArrayCount[oppositeRolls] = rollCount
  174. oppositeRolls += 1
  175. end
  176.  
  177. -- Calculate the average, and then change high / low accordingly
  178.  
  179. if(lastBet.roll >= 50) then
  180. highLowAverage[averageIndex] = 1
  181. else
  182. highLowAverage[averageIndex] = 0
  183. end
  184.  
  185. averageIndex += 1
  186. averageCount += 1
  187.  
  188. if(averageIndex >= averageMax) then
  189. averageIndex = 0
  190. end
  191.  
  192. if(averageCount > averageMax) then
  193. averageCount = averageMax
  194. end
  195.  
  196. average = 0.00
  197. for i=0, averageCount do
  198. average += highLowAverage[i]
  199. end
  200.  
  201. average = average / averageCount
  202. -- print (average)
  203.  
  204. if average >= 0.5 then
  205. bethigh = true
  206. else
  207. bethigh = false
  208. end
  209. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement