Advertisement
peterspike12

Untitled

Oct 9th, 2017
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.86 KB | None | 0 0
  1. // Bustabit BlackShadow Bot
  2. // By: BlackShadow & MartinG
  3. // Version 1
  4. // A martingale that pauses for a certian number of games after a certian number of losses
  5.  
  6. /******************/
  7.  
  8. var baseBet = 100; // You can change this to your own amount its on 100 preset
  9. var multiplier = 2; // Leave this no need to change it multiplies your bet by 2
  10. var cashout = 2.12; // Leave this no need to change, these are my custom settings
  11.  
  12. var pauseAfterNLosses = 6; // You can change this to less, it will pause after 6 losses its set to.
  13. var pauseForMGames = 1000;
  14.  
  15. /******************/
  16.  
  17. baseBet = Math.round(baseBet) * 100;
  18. cashout = Math.round(cashout * 100);
  19.  
  20. var currentGameData;
  21.  
  22. var lastCrash = cashout;
  23.  
  24. var bet = baseBet;
  25.  
  26. var lossStreak = 0;
  27.  
  28. var pauseStreak = 0;
  29.  
  30. var playedLast = false;
  31. var wonLast = true;
  32.  
  33. engine.on('game_started', function(data) {
  34. currentGameData = data;
  35. });
  36.  
  37. engine.on('game_starting', function(info) {
  38. if(pauseStreak > 0) {
  39. pauseStreak++;
  40. if(pauseStreak <= pauseForMGames) {
  41. console.log("Paused " + pauseStreak + " of " + pauseForMGames + " games");
  42. return;
  43. } else {
  44. console.log("Resuming");
  45. pauseStreak = 0;
  46. lossStreak = 0;
  47. }
  48. }
  49.  
  50. if(lossStreak >= pauseAfterNLosses) {
  51. console.log("Pausing for 1 of " + pauseForMGames + " games");
  52. pauseStreak = 1;
  53. return;
  54. }
  55.  
  56. console.log("Betting " + Math.round(bet/100));
  57.  
  58. engine.placeBet(Math.round(bet), cashout);
  59.  
  60. });
  61.  
  62. engine.on('game_crash', function(data) {
  63. if (!currentGameData || !currentGameData.hasOwnProperty(engine.getUsername())) {
  64. playedLast = false;
  65. return;
  66. };
  67.  
  68. playedLast = true;
  69. wonLast = data.game_crash >= cashout;
  70.  
  71. if(wonLast) {
  72. bet = baseBet;
  73. lossStreak = 0;
  74. } else {
  75. bet = bet * multiplier;
  76. lossStreak++;
  77. }
  78. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement