Advertisement
Guest User

Untitled

a guest
Jan 22nd, 2020
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.22 KB | None | 0 0
  1. // ------------------------------------------------------------------------------------------------------------------------
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11. // ------------------------------------------------------------------------------------------------------------------------
  12. var baseBet = 100; // Set the base bet here.
  13. // ------------------------------------------------------------------------------------------------------------------------
  14.  
  15.  
  16. // --------------------------------------------------------------------------------------------------
  17. // I recommend not to edit the settings below. They were calculated to be the best options possible.
  18. // --------------------------------------------------------------------------------------------------
  19. var skip1 = 1; // skip X games after second lost game.
  20.  
  21. var skip2 = 0; // skip X games after third lost game.
  22.  
  23. var skip3 = 1; // skip X games after fourth lost game.
  24.  
  25. var skip4 = 0; // skip X games after fifth lost game.
  26.  
  27. var skip5 = 1; // skip X games after sixth lost game.
  28.  
  29. var skip6 = 2; // skip X games afterwards. This means the script will bet once and then skip X games.
  30. // This would continue to happen until a game is won or you bust.
  31.  
  32. // ------------------------------------------------------------------------------------------
  33. // The Code
  34. // ------------------------------------------------------------------------------------------
  35. var bet = baseBet * 100;
  36. var currentBet = bet;
  37.  
  38. var cashOut = 1.05;
  39.  
  40. var startBalance = engine.getBalance();
  41. var currentBalance = startBalance;
  42.  
  43. var losses = 0;
  44.  
  45. var skip = 0;
  46. var lostGames = 0;
  47. var waitXgames = 0;
  48. var CO = 0;
  49.  
  50. engine.on('game_starting', function(info) {
  51.  
  52. if (currentBet && engine.lastGamePlay() == 'LOST') {
  53.  
  54. lostGames++;
  55. currentBalance = engine.getBalance();
  56. losses = startBalance - currentBalance;
  57.  
  58. currentBet *= 2;
  59. cashOut = (losses / currentBet) + 1.01;
  60.  
  61. if (lostGames >= 3) {
  62.  
  63. waitXgames = 0;
  64.  
  65. if (lostGames == 3) {
  66.  
  67. skip = skip1;
  68. }
  69. if (lostGames == 4) {
  70.  
  71. skip = skip2;
  72. }
  73. if (lostGames == 5) {
  74.  
  75. skip = skip3;
  76. }
  77. if (lostGames == 6) {
  78.  
  79. skip = skip4;
  80. }
  81. if (lostGames == 7) {
  82.  
  83. skip = skip5;
  84. }
  85. if (lostGames >= 8) {
  86.  
  87. skip = skip6;
  88. }
  89.  
  90. }
  91. } else {
  92.  
  93. currentBalance = engine.getBalance();
  94.  
  95. if (currentBalance > startBalance) {
  96.  
  97. currentBet = bet;
  98. cashOut = 1.05;
  99.  
  100. startBalance = engine.getBalance();
  101. lostGames = 0;
  102. skip = 0;
  103. }
  104. }
  105.  
  106. if (waitXgames >= skip) {
  107.  
  108. console.log('Placing bet of', Math.floor(currentBet / 100), 'at', Math.round(cashOut * 100) / 100, 'Cash out.');
  109.  
  110. engine.placeBet(Math.floor(currentBet / 100) * 100, Math.floor(cashOut * 100), false);
  111.  
  112. }
  113.  
  114. });
  115. engine.on('game_crash', function(data) {
  116. if (data.game_crash / 100 >= CO) {
  117. waitXgames++;
  118. } else {
  119. waitXgames++;
  120. }
  121. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement