Advertisement
SellingScripts

Untitled

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