Guest User

Untitled

a guest
Dec 28th, 2018
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.10 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. var currentBet = 0;
  38. var firstXgames = 0;
  39. var secondXgames = 0;
  40. var thirdXgames = 0;
  41. var fourthXgames = 0;
  42. var fifthXgames = 0;
  43. var beginfirst = true;
  44. var beginsecond = true;
  45. var beginthird = true;
  46. var beginfourth = true;
  47. var beginfifth = true;
  48.  
  49.  
  50. //Events to follow
  51. engine.on('GAME_STARTING', ongamestart);
  52. engine.on('GAME_ENDED', ongameend);
  53.  
  54. //Game Starting Event
  55. function ongamestart() {
  56. if (beginfirst === true) {
  57. engine.bet(currentBet, config.firstcrashTarget.value);
  58. } else if (beginsecond) {
  59. engine.bet(currentBet, config.secondcrashTarget.value);
  60. } else if (beginthird) {
  61. engine.bet(currentBet, config.thirdcrashTarget.value);
  62. } else if (beginfourth) {
  63. engine.bet(currentBet, config.fourthcrashTarget.value);
  64. } else if (beginfifth) {
  65. engine.bet(currentBet, config.fifthcrashTarget.value);
  66. } else {
  67. return;
  68. }
  69. }
  70.  
  71. //Game Ending Event
  72. function ongameend() {
  73. var lastGame = engine.history.first()
  74.  
  75. // Xgames counter
  76. if (lastGame.bust < config.firstunderXgames.value) {
  77. firstXgames++;
  78. }else{
  79. firstXgames = 0;
  80. }
  81.  
  82. // Did we bet last round?
  83. if (lastGame.wager){
  84. //We Won
  85. if(lastGame.cashedAt){
  86. currentBet = 0;
  87. }else{
  88. currentBet *= config.firstmultiOnloss.value;
  89. beginfirst = true;
  90. }
  91. }else{
  92. //We Didn't Bet
  93. if( firstXgames >= config.firstplayafterXgames.value){
  94. log ( 'X Games target of', config.firstplayafterXgames.value, 'has been met. Next round we will bet.');
  95. beginfirst = true;
  96. currentBet = config.firstbaseBet.value;
  97. }else{
  98. currentBet = 0;
  99. log ( 'X Games count', firstXgames );
  100. beginfirst = true;
  101. }
  102. }
  103.  
  104.  
  105. ///////////////////////////////////////////////////
  106.  
  107.  
  108. // Xgames counter
  109. if (lastGame.bust < config.secondunderXgames.value) {
  110. secondXgames++;
  111. }else{
  112. secondXgames = 0;
  113. }
  114.  
  115. // Did we bet last round?
  116. if (lastGame.wager){
  117. //We Won
  118. if(lastGame.cashedAt){
  119. currentBet = 0;
  120. }else{
  121. currentBet *= config.secondmultiOnloss.value;
  122. beginsecond = true;
  123. }
  124. }else{
  125. //We Didn't Bet
  126. if( secondXgames >= config.secondplayafterXgames.value){
  127. currentBet = config.secondbaseBet.value;
  128. log ( 'X Games target of', config.secondplayafterXgames.value, 'has been met. Next round we will bet.');
  129. beginsecond = true;
  130. }else{
  131. currentBet = 0;
  132. log ( 'X Games count', secondXgames );
  133. beginsecond = false;
  134. }
  135. }
  136.  
  137. /////////////////////////////////////////////////////////
  138.  
  139.  
  140. // Xgames counter
  141. if (lastGame.bust < config.thirdunderXgames.value) {
  142. thirdXgames++;
  143. }else{
  144. thirdXgames = 0;
  145. }
  146.  
  147. // Did we bet last round?
  148. if (lastGame.wager){
  149. //We Won
  150. if(lastGame.cashedAt){
  151. currentBet = 0;
  152. }else{
  153. currentBet *= config.thirdmultiOnloss.value;
  154. beginthird = true;
  155.  
  156. }
  157. }else{
  158. //We Didn't Bet
  159. if( thirdXgames >= config.thirdplayafterXgames.value){
  160. currentBet = config.thirdbaseBet.value;
  161. log ( 'X Games target of', config.thirdplayafterXgames.value, 'has been met. Next round we will bet.');
  162. beginthird = true;
  163. }else{
  164. currentBet = 0;
  165. log ( 'X Games count', thirdXgames );
  166. beginthird = false;
  167. }
  168. }
  169.  
  170. ///////////////////////////////////////////////
  171.  
  172.  
  173.  
  174. // Xgames counter
  175. if (lastGame.bust < config.fourthunderXgames.value) {
  176. fourthXgames++;
  177. }else{
  178. fourthXgames = 0;
  179. }
  180.  
  181. // Did we bet last round?
  182. if (lastGame.wager){
  183. //We Won
  184. if(lastGame.cashedAt){
  185. currentBet = 0;
  186. }else{
  187. currentBet *= config.fourthmultiOnloss.value;
  188. beginfourth = true;
  189. }
  190. }else{
  191. //We Didn't Bet
  192. if( fourthXgames >= config.fourthplayafterXgames.value){
  193. currentBet = config.fourthbaseBet.value;
  194. log ( 'X Games target of', config.fourthplayafterXgames.value, 'has been met. Next round we will bet.');
  195. beginfourth = true;
  196. }else{
  197. currentBet = 0;
  198. log ( 'X Games count', fourthXgames );
  199. beginfourth = false;
  200. }
  201. }
  202.  
  203.  
  204.  
  205. ///////////////////////////////////////////////////////
  206.  
  207. // Xgames counter
  208. if (lastGame.bust < config.fifthunderXgames.value) {
  209. fifthXgames++;
  210. }else{
  211. fifthXgames = 0;
  212. }
  213.  
  214. // Did we bet last round?
  215. if (lastGame.wager){
  216. //We Won
  217. if(lastGame.cashedAt){
  218. currentBet = 0;
  219. }else{
  220. currentBet *= config.fifthmultiOnloss.value;
  221. beginfifth = true;
  222. }
  223. }else{
  224. //We Didn't Bet
  225. if( fifthXgames >= config.fifthplayafterXgames.value){
  226. currentBet = config.fifthbaseBet.value;
  227. log ( 'X Games target of', config.fifthplayafterXgames.value, 'has been met. Next round we will bet.');
  228. beginfifth = true;
  229. }else{
  230. currentBet = 0;
  231. log ( 'X Games count', fifthXgames );
  232. beginfifth = false;
  233. }
  234. }
  235.  
  236. }
Add Comment
Please, Sign In to add comment