Guest User

Untitled

a guest
Dec 29th, 2018
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.97 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;
  39. let secondcurrentBet;
  40. let thirdcurrentBet;
  41. let fourthcurrentBet;
  42. let fifthcurrentBet;
  43. let firstXgames = 0;
  44. let secondXgames = 0;
  45. let thirdXgames = 0;
  46. let fourthXgames = 0;
  47. let fifthXgames = 0;
  48. let beginfirst = true;
  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. beginsecond = false;
  64. beginthird = false;
  65. beginfourth = false;
  66. beginfifth = false;
  67. } else if (beginsecond) {
  68. engine.bet(roundBit(secondcurrentBet), config.secondcrashTarget.value);
  69. beginfirst = false;
  70. beginthird = false;
  71. beginfourth = false;
  72. beginfifth = false;
  73. } else if (beginthird) {
  74. engine.bet(roundBit(thirdcurrentBet), config.thirdcrashTarget.value);
  75. beginsecond = false;
  76. beginfirst = false;
  77. beginfourth = false;
  78. beginfifth = false;
  79. } else if (beginfourth) {
  80. engine.bet(roundBit(fourthcurrentBet), config.fourthcrashTarget.value);
  81. beginsecond = false;
  82. beginthird = false;
  83. beginfirst = false;
  84. beginfifth = false;
  85. } else if (beginfifth) {
  86. engine.bet(roundBit(fifthcurrentBet), config.fifthcrashTarget.value);
  87. beginsecond = false;
  88. beginthird = false;
  89. beginfourth = false;
  90. beginfirst = false;
  91. } else {
  92. return;
  93. }
  94. }
  95.  
  96.  
  97.  
  98. //Game Ending Event
  99. function ongameend() {
  100. var lastGame = engine.history.first()
  101.  
  102. /////////////////////////////////
  103.  
  104. // Xgames counter
  105. if (lastGame.bust < config.firstunderXgames.value) {
  106. firstXgames++;
  107. } else {
  108. firstXgames = 0;
  109. }
  110.  
  111.  
  112. // Xgames counter
  113. if (lastGame.bust < config.secondunderXgames.value) {
  114. secondXgames++;
  115. } else {
  116. secondXgames = 0;
  117. }
  118.  
  119. // Xgames counter
  120. if (lastGame.bust < config.thirdunderXgames.value) {
  121. thirdXgames++;
  122. } else {
  123. thirdXgames = 0;
  124. }
  125.  
  126. // Xgames counter
  127. if (lastGame.bust < config.fourthunderXgames.value) {
  128. fourthXgames++;
  129. } else {
  130. fourthXgames = 0;
  131. }
  132.  
  133.  
  134. // Xgames counter
  135. if (lastGame.bust < config.fifthunderXgames.value) {
  136. fifthXgames++;
  137. } else {
  138. fifthXgames = 0;
  139. }
  140. ////////////////////////////////
  141.  
  142. if (firstXgames >= config.firstplayafterXgames.value) {
  143. firstcurrentBet = config.firstbaseBet.value;
  144. log('First X Games target of', config.firstplayafterXgames.value, 'has been met. Next round we will bet if no lower multipliers are due.');
  145. beginfirst = true;
  146. } else {
  147. firstcurrentBet = 0;
  148. log('First X Games count', firstXgames);
  149. beginfirst = false;
  150. }
  151.  
  152. if (secondXgames >= config.secondplayafterXgames.value) {
  153. secondcurrentBet = config.secondbaseBet.value;
  154. log('Second X Games target of', config.secondplayafterXgames.value, 'has been met. Next round we will bet if no lower multipliers are due.');
  155. beginsecond = true;
  156. } else {
  157. secondcurrentBet = 0;
  158. log('Second X Games count', secondXgames);
  159. beginsecond = false;
  160. }
  161.  
  162. if (thirdXgames >= config.thirdplayafterXgames.value) {
  163. thirdcurrentBet = config.thirdbaseBet.value;
  164. log('Third X Games target of', config.thirdplayafterXgames.value, 'has been met. Next round we will bet if no lower multipliers are due.');
  165. beginthird = true;
  166. } else {
  167. thirdcurrentBet = 0;
  168. log('Third X Games count', thirdXgames);
  169. beginthird = false;
  170. }
  171.  
  172. if (fourthXgames >= config.fourthplayafterXgames.value) {
  173. fourthcurrentBet = config.fourthbaseBet.value;
  174. log('Fourth X Games target of', config.fourthplayafterXgames.value, 'has been met. Next round we will bet if no lower multipliers are due.');
  175. beginfourth = true;
  176. } else {
  177. fourthcurrentBet = 0;
  178. log('Fourth X Games count', fourthXgames);
  179. beginfourth = false;
  180. }
  181.  
  182. if (fifthXgames >= config.fifthplayafterXgames.value) {
  183. fifthcurrentBet = config.fifthbaseBet.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. fifthcurrentBet = 0;
  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. firstcurrentBet = 0;
  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. secondcurrentBet = 0;
  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. thirdcurrentBet = 0;
  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. fourthcurrentBet = 0;
  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. fifthcurrentBet = 0;
  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