Advertisement
Guest User

Untitled

a guest
May 26th, 2019
204
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.13 KB | None | 0 0
  1. const min = 2;
  2. const max = 30;
  3. const minimum = 500;
  4. const amount = 3000;
  5. const rate = 3;
  6. const profitper = 1;
  7. const arrayamount = 3;
  8. const base = 1;
  9. const betlimit = 300000;
  10. const logging = 1;
  11. const rateincreasement = 0.15;
  12. const ratedecreasement = 0.005;
  13.  
  14. let currentrate = rate;
  15. let c = 0;
  16. let history = new Array(0);
  17. let target = 0;
  18. let totalloss = 0;
  19. let lossstreak = 0;
  20. let currentBet = 1;
  21. let lastlost = false;
  22.  
  23. function sleep(ms) {
  24. return new Promise(resolve => setTimeout(resolve, ms));
  25. }
  26.  
  27. const main = async () => {
  28. await this.log("starting script");
  29. while (true) {
  30. c++;
  31. if (target > 0) {
  32. if (lastlost) {
  33. totalloss += currentBet;
  34. currentBet = (1 / (target - 1)) * (totalloss + profitper);
  35. lossstreak++;
  36. if (totalloss > betlimit) {
  37. this.log("BET REACHED LIMIT");
  38. this.stop();
  39. }
  40. } else {
  41. totalloss = 0;
  42. currentBet = base;
  43. lossstreak = 0;
  44. }
  45. const {multiplier} = await this.bet(Math.max(Math.round(currentBet),1) * 100, target);
  46. history.unshift(multiplier);
  47. if (multiplier < target) {
  48. lastlost = true;
  49. currentrate += rateincreasement;
  50. } else {
  51. if (logging) {
  52. this.log(`#${c} ${Math.max(Math.round(currentBet),1) * (target - 1)}`);
  53. }
  54. currentrate = rate;
  55. lastlost = false;
  56. }
  57. target = 0;
  58. } else {
  59. if (currentrate > rate) {
  60. currentrate -= ratedecreasement
  61. if (currentrate < rate) {
  62. currentrate = rate
  63. }
  64. }
  65. if (c % 2 == 0) {
  66. const {multiplier} = await this.bet(100, 1.01);
  67. history.unshift(multiplier);
  68. } else {
  69. const {multiplier} = await this.skip();
  70. history.unshift(multiplier);
  71. }
  72. }
  73. if (c < amount) {
  74. continue;
  75. }
  76. if (history.length > amount) {
  77. history.pop()
  78. }
  79. let filtered = new Array(0);
  80. let sum = 0;
  81. for (let i = 0; filtered.length < arrayamount; i++) {
  82. if (i >= history.length) {
  83. filtered.push(history.slice(0, i));
  84. break;
  85. }
  86. sum += 99 / history[i];
  87. if (i >= minimum) {
  88. let average = sum / (i + 1)
  89. if (((99 / 1.99) < average) && (average <= ((99 / 1.98) + 0.00001))) {
  90. filtered.push(history.slice(0, i));
  91. }
  92. }
  93. }
  94. for (let i = 0; i < Math.abs(max - min) * 100; i++) {
  95. let streak = 0;
  96. let avgstreak = 0;
  97. let count = 0;
  98. let avgstreakc = 0;
  99. for (let j = 0; j < filtered.length; j++) {
  100. for (let p = 0; p < filtered[j].length; p++) {
  101. if (filtered[j][p] < (i / 100) + min) {
  102. avgstreak++;
  103. } else {
  104. avgstreakc++;
  105. }
  106. if (j == (filtered.length - 1)) {
  107. if (filtered[filtered.length - 1][filtered[filtered.length - 1].length - 1 - p] < (i / 100) + min) {
  108. streak++;
  109. } else {
  110. streak = 0;
  111. }
  112. if (filtered[filtered.length - 1][p] >= (i / 100) + min) {
  113. count++;
  114. }
  115. }
  116. }
  117. }
  118. avgstreak /= avgstreakc;
  119. count /= filtered[filtered.length - 1].length;
  120. count *= 100;
  121. let probstreak = (100 / (99 / ((i / 100) + min))) - 1;
  122. let prob = ((99 / ((i / 100) + min)) * ((avgstreak / probstreak) + (streak / probstreak) + (streak / avgstreak) + ((99 / ((i / 100) + min)) / count))) / 4;
  123. if ((prob / (99 / ((i / 100) + min))) >= currentrate) {
  124. target = Math.round(((i / 100) + min) * 100) / 100;
  125. }
  126. }
  127. }
  128. }
  129.  
  130. while (true) {
  131. try {
  132. await main();
  133. } catch (error) {
  134. this.log("Connection Closed. Restart After 1 Second.")
  135. await sleep(1000);
  136. continue;
  137. }
  138. }const min = 2;
  139. const max = 30;
  140. const minimum = 500;
  141. const amount = 3000;
  142. const rate = 3;
  143. const profitper = 1;
  144. const arrayamount = 3;
  145. const base = 1;
  146. const betlimit = 300000;
  147. const logging = 1;
  148. const rateincreasement = 0.15;
  149. const ratedecreasement = 0.005;
  150.  
  151. let currentrate = rate;
  152. let c = 0;
  153. let history = new Array(0);
  154. let target = 0;
  155. let totalloss = 0;
  156. let lossstreak = 0;
  157. let currentBet = 1;
  158. let lastlost = false;
  159.  
  160. function sleep(ms) {
  161. return new Promise(resolve => setTimeout(resolve, ms));
  162. }
  163.  
  164. const main = async () => {
  165. await this.log("starting script");
  166. while (true) {
  167. c++;
  168. if (target > 0) {
  169. if (lastlost) {
  170. totalloss += currentBet;
  171. currentBet = (1 / (target - 1)) * (totalloss + profitper);
  172. lossstreak++;
  173. if (totalloss > betlimit) {
  174. this.log("BET REACHED LIMIT");
  175. this.stop();
  176. }
  177. } else {
  178. totalloss = 0;
  179. currentBet = base;
  180. lossstreak = 0;
  181. }
  182. const {multiplier} = await this.bet(Math.max(Math.round(currentBet),1) * 100, target);
  183. history.unshift(multiplier);
  184. if (multiplier < target) {
  185. lastlost = true;
  186. currentrate += rateincreasement;
  187. } else {
  188. if (logging) {
  189. this.log(`#${c} ${Math.max(Math.round(currentBet),1) * (target - 1)}`);
  190. }
  191. currentrate = rate;
  192. lastlost = false;
  193. }
  194. target = 0;
  195. } else {
  196. if (currentrate > rate) {
  197. currentrate -= ratedecreasement
  198. if (currentrate < rate) {
  199. currentrate = rate
  200. }
  201. }
  202. if (c % 2 == 0) {
  203. const {multiplier} = await this.bet(100, 1.01);
  204. history.unshift(multiplier);
  205. } else {
  206. const {multiplier} = await this.skip();
  207. history.unshift(multiplier);
  208. }
  209. }
  210. if (c < amount) {
  211. continue;
  212. }
  213. if (history.length > amount) {
  214. history.pop()
  215. }
  216. let filtered = new Array(0);
  217. let sum = 0;
  218. for (let i = 0; filtered.length < arrayamount; i++) {
  219. if (i >= history.length) {
  220. filtered.push(history.slice(0, i));
  221. break;
  222. }
  223. sum += 99 / history[i];
  224. if (i >= minimum) {
  225. let average = sum / (i + 1)
  226. if (((99 / 1.99) < average) && (average <= ((99 / 1.98) + 0.00001))) {
  227. filtered.push(history.slice(0, i));
  228. }
  229. }
  230. }
  231. for (let i = 0; i < Math.abs(max - min) * 100; i++) {
  232. let streak = 0;
  233. let avgstreak = 0;
  234. let count = 0;
  235. let avgstreakc = 0;
  236. for (let j = 0; j < filtered.length; j++) {
  237. for (let p = 0; p < filtered[j].length; p++) {
  238. if (filtered[j][p] < (i / 100) + min) {
  239. avgstreak++;
  240. } else {
  241. avgstreakc++;
  242. }
  243. if (j == (filtered.length - 1)) {
  244. if (filtered[filtered.length - 1][filtered[filtered.length - 1].length - 1 - p] < (i / 100) + min) {
  245. streak++;
  246. } else {
  247. streak = 0;
  248. }
  249. if (filtered[filtered.length - 1][p] >= (i / 100) + min) {
  250. count++;
  251. }
  252. }
  253. }
  254. }
  255. avgstreak /= avgstreakc;
  256. count /= filtered[filtered.length - 1].length;
  257. count *= 100;
  258. let probstreak = (100 / (99 / ((i / 100) + min))) - 1;
  259. let prob = ((99 / ((i / 100) + min)) * ((avgstreak / probstreak) + (streak / probstreak) + (streak / avgstreak) + ((99 / ((i / 100) + min)) / count))) / 4;
  260. if ((prob / (99 / ((i / 100) + min))) >= currentrate) {
  261. target = Math.round(((i / 100) + min) * 100) / 100;
  262. }
  263. }
  264. }
  265. }
  266.  
  267. while (true) {
  268. try {
  269. await main();
  270. } catch (error) {
  271. this.log("Connection Closed. Restart After 1 Second.")
  272. await sleep(1000);
  273. continue;
  274. }
  275. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement