Advertisement
Guest User

Untitled

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