Advertisement
SellingScripts

Untitled

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