Guest User

Untitled

a guest
Dec 29th, 2018
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.00 KB | None | 0 0
  1. var config = {
  2. header1: { type: 'noop', label: '-- First Values Below --' },
  3. firstbaseBet: { value: 10000, type: 'balance', label: 'First Base Bet' },
  4. firstcrashTarget: { value: 2, type: 'multiplier', label: 'First Cash Out' },
  5. firstmultiOnloss: { value: 2, type: 'multiplier', label: 'First Increase Bet on Loss' },
  6. firstplayafterXgames: { value: 2, type: 'multiplier', label: 'First Play after games under Xgames Multiplier' },
  7. firstunderXgames: { value: 2, type: 'multiplier', label: 'First Xgames Multiplier' },
  8. header2: { type: 'noop', label: '-- Second Values Below --' },
  9. secondbaseBet: { value: 5000, type: 'balance', label: 'Second Base Bet' },
  10. secondcrashTarget: { value: 5, type: 'multiplier', label: 'Second Cash Out' },
  11. secondmultiOnloss: { value: 1.3, type: 'multiplier', label: 'Second Increase Bet on Loss' },
  12. secondplayafterXgames: { value: 5, type: 'multiplier', label: 'Second Play after games under Xgames Multiplier' },
  13. secondunderXgames: { value: 5, type: 'multiplier', label: 'Second Xgames Multiplier' },
  14. header3: { type: 'noop', label: '-- Third Values Below --' },
  15. thirdbaseBet: { value: 2500, type: 'balance', label: 'Third Base Bet' },
  16. thirdcrashTarget: { value: 10, type: 'multiplier', label: 'Third Cash Out' },
  17. thirdmultiOnloss: { value: 1.11, type: 'multiplier', label: 'Third Increase Bet on Loss' },
  18. thirdplayafterXgames: { value: 10, type: 'multiplier', label: 'Third Play after games under Xgames Multiplier' },
  19. thirdunderXgames: { value: 10, type: 'multiplier', label: 'Third Xgames Multiplier' },
  20. header4: { type: 'noop', label: '-- Fourth Values Below --' },
  21. fourthbaseBet: { value: 1000, type: 'balance', label: 'Fourth Base Bet' },
  22. fourthcrashTarget: { value: 20, type: 'multiplier', label: 'Fourth Cash Out' },
  23. fourthmultiOnloss: { value: 1.05, type: 'multiplier', label: 'Fourth Increase Bet on Loss' },
  24. fourthplayafterXgames: { value: 20, type: 'multiplier', label: 'Fourth Play after games under Xgames Multiplier' },
  25. fourthunderXgames: { value: 20, type: 'multiplier', label: 'Fourth Xgames Multiplier' },
  26. header5: { type: 'noop', label: '-- Fifth Values Below --' },
  27. fifthbaseBet: { value: 500, type: 'balance', label: 'Fifth Base Bet' },
  28. fifthcrashTarget: { value: 50, type: 'multiplier', label: 'Fifth Cash Out' },
  29. fifthmultiOnloss: { value: 1.022, type: 'multiplier', label: 'Fifth Increase Bet on Loss' },
  30. fifthplayafterXgames: { value: 50, type: 'multiplier', label: 'Fifth Play after games under Xgames Multiplier' },
  31. fifthunderXgames: { value: 50, type: 'multiplier', label: 'Fifth Xgames Multiplier' },
  32. };
  33.  
  34.  
  35. log('Script is running...');
  36.  
  37. //Game Variables
  38. let firstcurrentBet = config.firstbaseBet.value;
  39. let secondcurrentBet = config.secondbaseBet.value;
  40. let thirdcurrentBet = config.thirdbaseBet.value;
  41. let fourthcurrentBet = config.fourthbaseBet.value;
  42. let fifthcurrentBet = config.fifthbaseBet.value;
  43. let firstXgames = 0;
  44. let secondXgames = 0;
  45. let thirdXgames = 0;
  46. let fourthXgames = 0;
  47. let fifthXgames = 0;
  48. let beginfirst;
  49. let beginsecond;
  50. let beginthird;
  51. let beginfourth;
  52. let beginfifth;
  53.  
  54.  
  55. //Events to follow
  56. engine.on('GAME_STARTING', ongamestart);
  57. engine.on('GAME_ENDED', ongameend);
  58.  
  59. //Game Starting Event
  60. function ongamestart() {
  61. if (beginfirst) {
  62. engine.bet(roundBit(firstcurrentBet), config.firstcrashTarget.value);
  63. log("Now betting: " + firstcurrentBet);
  64. beginsecond = false;
  65. beginthird = false;
  66. beginfourth = false;
  67. beginfifth = false;
  68. } else if (beginsecond) {
  69. engine.bet(roundBit(secondcurrentBet), config.secondcrashTarget.value);
  70. log("Now betting: " + secondcurrentBet);
  71. beginfirst = false;
  72. beginthird = false;
  73. beginfourth = false;
  74. beginfifth = false;
  75. } else if (beginthird) {
  76. engine.bet(roundBit(thirdcurrentBet), config.thirdcrashTarget.value);
  77. log("Now betting: " + thirdcurrentBet);
  78. beginsecond = false;
  79. beginfirst = false;
  80. beginfourth = false;
  81. beginfifth = false;
  82. } else if (beginfourth) {
  83. engine.bet(roundBit(fourthcurrentBet), config.fourthcrashTarget.value);
  84. log("Now betting: " + fourthcurrentBet);
  85. beginsecond = false;
  86. beginthird = false;
  87. beginfirst = false;
  88. beginfifth = false;
  89. } else if (beginfifth) {
  90. engine.bet(roundBit(fifthcurrentBet), config.fifthcrashTarget.value);
  91. log("Now betting: " + fifthcurrentBet);
  92. beginsecond = false;
  93. beginthird = false;
  94. beginfourth = false;
  95. beginfirst = false;
  96. } else {
  97. return;
  98. }
  99. }
  100.  
  101.  
  102.  
  103. //Game Ending Event
  104. function ongameend() {
  105. var lastGame = engine.history.first()
  106.  
  107. /////////////////////////////////
  108.  
  109. // Xgames counter
  110. if (lastGame.bust < config.firstunderXgames.value) {
  111. firstXgames++;
  112. } else {
  113. firstXgames = 0;
  114. }
  115.  
  116.  
  117. // Xgames counter
  118. if (lastGame.bust < config.secondunderXgames.value) {
  119. secondXgames++;
  120. } else {
  121. secondXgames = 0;
  122. }
  123.  
  124. // Xgames counter
  125. if (lastGame.bust < config.thirdunderXgames.value) {
  126. thirdXgames++;
  127. } else {
  128. thirdXgames = 0;
  129. }
  130.  
  131. // Xgames counter
  132. if (lastGame.bust < config.fourthunderXgames.value) {
  133. fourthXgames++;
  134. } else {
  135. fourthXgames = 0;
  136. }
  137.  
  138.  
  139. // Xgames counter
  140. if (lastGame.bust < config.fifthunderXgames.value) {
  141. fifthXgames++;
  142. } else {
  143. fifthXgames = 0;
  144. }
  145. ////////////////////////////////
  146.  
  147. if (firstXgames >= config.firstplayafterXgames.value) {
  148. log('First X Games target of', config.firstplayafterXgames.value, 'has been met. Next round we will bet if no lower multipliers are due.');
  149. beginfirst = true;
  150. } else {
  151. beginfirst = false;
  152. log('First X Games count', firstXgames);
  153. beginfirst = false;
  154. }
  155.  
  156. if (secondXgames >= config.secondplayafterXgames.value) {
  157. log('Second X Games target of', config.secondplayafterXgames.value, 'has been met. Next round we will bet if no lower multipliers are due.');
  158. beginsecond = true;
  159. } else {
  160. beginsecond = false;
  161. log('Second X Games count', secondXgames);
  162. beginsecond = false;
  163. }
  164.  
  165. if (thirdXgames >= config.thirdplayafterXgames.value) {
  166. log('Third X Games target of', config.thirdplayafterXgames.value, 'has been met. Next round we will bet if no lower multipliers are due.');
  167. beginthird = true;
  168. } else {
  169. beginthird = false;
  170. log('Third X Games count', thirdXgames);
  171. beginthird = false;
  172. }
  173.  
  174. if (fourthXgames >= config.fourthplayafterXgames.value) {
  175. log('Fourth X Games target of', config.fourthplayafterXgames.value, 'has been met. Next round we will bet if no lower multipliers are due.');
  176. beginfourth = true;
  177. } else {
  178. beginfourth = false;
  179. log('Fourth X Games count', fourthXgames);
  180. beginfourth = false;
  181. }
  182.  
  183. if (fifthXgames >= config.fifthplayafterXgames.value) {
  184. log('Fifth X Games target of', config.fifthplayafterXgames.value, 'has been met. Next round we will bet if no lower multipliers are due.');
  185. beginfifth = true;
  186. } else {
  187. beginfifth = false;
  188. log('Fifth X Games count', fifthXgames);
  189. beginfifth = false;
  190. }
  191. ////////////////////////////
  192. if (beginfirst === true) {
  193. // Did we bet last round?
  194. if (lastGame.wager) {
  195. //We Won
  196. if (lastGame.cashedAt) {
  197. beginfirst = false;
  198. } else {
  199. firstcurrentBet *= config.firstmultiOnloss.value;
  200. beginfirst = true;
  201. }
  202. } else {
  203. return;
  204. }
  205.  
  206. } else if (beginsecond === true) {
  207. ///////////////////////////////////////////////////
  208.  
  209.  
  210.  
  211. // Did we bet last round?
  212. if (lastGame.wager) {
  213. //We Won
  214. if (lastGame.cashedAt) {
  215. beginsecond = false;
  216. } else {
  217. secondcurrentBet *= config.secondmultiOnloss.value;
  218. beginsecond = true;
  219. }
  220. } else {
  221. return;
  222. }
  223. } else if (beginthird === true) {
  224. /////////////////////////////////////////////////////////
  225.  
  226.  
  227.  
  228.  
  229. // Did we bet last round?
  230. if (lastGame.wager) {
  231. //We Won
  232. if (lastGame.cashedAt) {
  233. beginthird = false;
  234. } else {
  235. thirdcurrentBet *= config.thirdmultiOnloss.value;
  236. beginthird = true;
  237.  
  238. }
  239. } else {
  240. return;
  241. }
  242. } else if (beginfourth === true) {
  243. ///////////////////////////////////////////////
  244.  
  245.  
  246.  
  247.  
  248. // Did we bet last round?
  249. if (lastGame.wager) {
  250. //We Won
  251. if (lastGame.cashedAt) {
  252. beginfourth = false;
  253. } else {
  254. fourthcurrentBet *= config.fourthmultiOnloss.value;
  255. beginfourth = true;
  256. }
  257. } else {
  258. return;
  259. }
  260.  
  261.  
  262. } else if (beginfifth) {
  263. ///////////////////////////////////////////////////////
  264.  
  265.  
  266.  
  267. // Did we bet last round?
  268. if (lastGame.wager) {
  269. //We Won
  270. if (lastGame.cashedAt) {
  271. beginfifth = false;
  272. } else {
  273. fifthcurrentBet *= config.fifthmultiOnloss.value;
  274. beginfifth = true;
  275. }
  276. } else {
  277. return;
  278. }
  279.  
  280. }
  281. }
  282. //Math Rounding Function
  283. function roundBit(bet) {
  284. return Math.round(bet / 100) * 100;
  285. }
Add Comment
Please, Sign In to add comment