Another slow but easy passive earning Bitcoin script for Bustabit!


SUBMITTED BY: staceyjones90

DATE: Oct. 24, 2016, 6:20 p.m.

FORMAT: Text only

SIZE: 9.4 kB

HITS: 855

  1. var MaxBet = 1000000; //Default: 1000000 The bot will never bet more than this amount (in bits).
  2. var MaxProfit = 100000; //Default: 100000 The bot will stop when your total balance is higher that this value (in bits).
  3. var MaxLoss = 25000; //Default: 25000 You will never lose more than this amount (in bits). If a bet would exceed this amount, the bot stops automatically.
  4. var RandomBreak = 0; //Default: 0 Before the bot places a bet it generates a random number between 0 and 100, if that number is lower than "RandomBreak" the bot will take a break for 1 game. (This will not happen on a loss streak )
  5. // Don't change anything below this if you don't know what you are doing!
  6. var Username = engine.getUsername();
  7. var StartBalance = engine.getBalance();
  8. var CurrentGameID = -1;
  9. var FirstGame = true;
  10. var CurrentBet = BaseBet;
  11. var CurrentMultiplier = Multiplier;
  12. var d = new Date();
  13. var StartTime = d.getTime();
  14. var LastResult = "WON";
  15. var Break = false;
  16. // Check previous bet
  17. var LastBet = 0;
  18. var LastProfit = 0;
  19. var NewProfit = 0;
  20. // Paroli variable's
  21. var ParoliRound = 1;
  22. var ParoliGame = 1;
  23. var StartBet = BaseBet;
  24. // Pluscoup variable's
  25. var Unit = 1;
  26. var SessionProfit = 0;
  27. var MaxSessionProfit = Multiplier - 1;
  28. // Paroli Confirm dialog to set Multiplier to X2.0.
  29. if(GameMode == 2){
  30. if (confirm("[BustaBot] Paroli is currently only available with the multiplier set to X2.0") == true) {
  31. // Do nothing and continue with the script.
  32. console.log('[BustaBot] Multiplier set to X2.0');
  33. } else {
  34. // Canceled Paroli mode, bot stopped.
  35. console.log('[BustaBot] Canceled paroli mode on multiplier X2.0');
  36. engine.stop();
  37. }
  38. }
  39. // D'alambert Confirm dialog to set Multiplier to X2.0.
  40. if(GameMode == 3){
  41. if (confirm("[BustaBot] D'alambert is currently only available with the multiplier set to X2.0") == true) {
  42. // Do nothing and continue with the script.
  43. console.log('[BustaBot] Multiplier set to X2.0');
  44. } else {
  45. // Canceled Paroli mode, bot stopped.
  46. console.log('[BustaBot] Canceled D alambert mode on multiplier X2.0');
  47. engine.stop();
  48. }
  49. }
  50. // Welcome message
  51. console.log('[BustaBot] Welcome ' + Username);
  52. console.log('[BustaBot] Your start ballance is: ' + (StartBalance / 100).toFixed(2) + ' bits');
  53. //check if the multiplier is 1 or higher.
  54. if(Multiplier < 1){
  55. console.log('[BustaBot] Your multiplier must be 1.0 or higher.');
  56. engine.stop();
  57. }
  58. if(GameMode < 1 || GameMode > 4){
  59. console.log('[BustaBot] Select a game mode between 1 and 4.');
  60. engine.stop();
  61. }
  62. // Start of a game.
  63. engine.on('game_starting', function(info) {
  64. CurrentGameID = info.game_id;
  65. console.log('---------------------');
  66. console.log('[BustaBot] Game #' + CurrentGameID + ' started.');
  67. var random = randomNumber(1,100);
  68. if(random < RandomBreak){
  69. console.log("Taking a break this round.");
  70. Break = true;
  71. }
  72. if(Break == false){
  73. if(MaxProfitMode == true){
  74. BaseBet = Math.round((PercentOfTotal / 100) * (engine.getBalance() / 100).toFixed(2));
  75. }
  76. if (LastResult == 'LOST' && !FirstGame) { // Check if you lost the last game
  77. if(GameMode == 1){// Martingale
  78. NewProfit = LastBet + LastProfit;
  79. CurrentBet = Math.round((NewProfit / LastProfit) * LastBet);
  80. CurrentMultiplier = Multiplier;
  81. }
  82. if(GameMode == 2){// Paroli
  83. CurrentMultiplier = 2;
  84. CurrentBet = StartBet;
  85. console.log('[BustaBot] Paroli Round: ' + ParoliRound + ' Game: ' + ParoliGame);
  86. ParoliGame++;
  87. }
  88. if(GameMode == 3){// D’Alembert
  89. CurrentMultiplier = 2;
  90. CurrentBet = LastBet + dalembert;
  91. }
  92. if(GameMode == 4){// Pluscoup
  93. SessionProfit = SessionProfit - Unit;
  94. CurrentBet = LastBet;
  95. CurrentMultiplier = Multiplier;
  96. }
  97. }
  98. else { // If won last game or first game
  99. if(GameMode == 1){// Martingale
  100. CurrentBet = BaseBet;
  101. CurrentMultiplier = Multiplier;
  102. }
  103. if(GameMode == 2){// Paroli
  104. CurrentMultiplier = 2;
  105. if(ParoliGame == 1){
  106. StartBet = BaseBet;
  107. CurrentBet = StartBet;
  108. }
  109. if(ParoliGame == 2){
  110. CurrentBet = LastBet * 2;
  111. }
  112. if(ParoliGame == 3){
  113. CurrentBet = LastBet * 2;
  114. }
  115. console.log('[BustaBot] Paroli Round: ' + ParoliRound + ' Game: ' + ParoliGame);
  116. ParoliGame++;
  117. }
  118. if(GameMode == 3){// D'alambert
  119. CurrentMultiplier = 2;
  120. if(!FirstGame)
  121. {
  122. CurrentBet = LastBet - dalembert;
  123. }
  124. }
  125. if(GameMode == 4){// Pluscoup
  126. CurrentMultiplier = Multiplier;
  127. if(SessionProfit >= MaxSessionProfit)
  128. {
  129. StartBet = BaseBet;
  130. SessionProfit = 0;
  131. Unit = 1;
  132. }
  133. else
  134. {
  135. Unit ++;
  136. while((((Unit * Multiplier) - Unit) + SessionProfit) > MaxSessionProfit){
  137. Unit = Unit - 1;
  138. }
  139. }
  140. if(FirstGame){ Unit = 1; StartBet = BaseBet;}
  141. if(Unit < 1){
  142. Unit = 1;
  143. StartBet = BaseBet;
  144. }
  145. CurrentBet = Unit * StartBet;
  146. }
  147. }
  148. //check if current bet is 0 or negative
  149. if(CurrentBet < 1){
  150. CurrentBet = 1;
  151. }
  152. //Check if a Paroli round is finished and start new round for the next bet.
  153. if(ParoliGame == 4){
  154. ParoliGame = 1;
  155. ParoliRound++;
  156. }
  157. // First game is set to false.
  158. FirstGame = false;
  159. // Changing last result
  160. LastResult = "LOST";
  161. if(((engine.getBalance() / 100) - CurrentBet) < ((StartBalance / 100) - MaxLoss)){
  162. console.log('[BustaBot] This bet would Exceed Your maximum loss, the bot will stop now... ');
  163. engine.stop();
  164. }else{
  165. if (CurrentBet <= engine.getBalance()) { // Check if the balance is high enough to place the bet.
  166. if (CurrentBet > (MaxBet)) { // Check if the bet is higher than the given maximum bet by the user.
  167. console.warn('[BustaBot] Current bet exceeds your maximum bet. Your bet is changed to: ' + (MaxBet) + ' bits');
  168. CurrentBet = MaxBet;
  169. }
  170. console.log('[BustaBot] Betting ' + (CurrentBet) + ' bits, cashing out at ' + CurrentMultiplier + 'x');
  171. engine.placeBet(CurrentBet * 100, Math.round(CurrentMultiplier * 100), false);
  172. LastBet = CurrentBet;
  173. LastProfit = (CurrentBet * CurrentMultiplier) - CurrentBet;
  174. }
  175. else { // Not enough balance to place the bet.
  176. if (engine.getBalance() < 100) { // Stop the bot if balance is less then 100 bits.
  177. console.error('[BustaBot] Your account balance is to low to place a bet.... BustaBot will close now.');
  178. engine.stop();
  179. }
  180. else { // Changes basebet to 1 if balance is to low to make the current bet.
  181. console.warn('[BustaBot] Your balance is to low to bet: ' + (CurrentBet / 100) + ' bits.');
  182. BaseBet = 1;
  183. }
  184. }
  185. }
  186. }
  187. });
  188. engine.on('cashed_out', function(data) {
  189. if (data.username == engine.getUsername()) {
  190. console.log('[BustaBot] Successfully cashed out at ' + (data.stopped_at / 100) + 'x');
  191. SessionProfit = SessionProfit + (Unit * MaxSessionProfit);
  192. if(((engine.getBalance() - StartBalance) / 100).toFixed(2) > MaxProfit){
  193. console.log('[BustaBot] Maximum profit reached, bot is shutting down...');
  194. console.log('[BustaBot] You have made '+((engine.getBalance() - StartBalance) / 100).toFixed(2)+' profit this session.');
  195. engine.stop();
  196. }
  197. LastResult = "WON";
  198. }
  199. });
  200. engine.on('game_crash', function(data) {
  201. var newdate = new Date();
  202. var timeplaying = ((newdate.getTime() - StartTime) / 1000) / 60;
  203. if(Break == false){
  204. console.log('[BustaBot] Game crashed at ' + (data.game_crash / 100) + 'x');
  205. console.log('[BustaBot] Session profit: ' + ((engine.getBalance() - StartBalance) / 100).toFixed(2) + ' bits in ' + Math.round(timeplaying) + ' minutes.');
  206. } else{
  207. Break = false;
  208. }
  209. });
  210. function randomNumber(min,max)
  211. {
  212. return Math.floor(Math.random()*(max-min+1)+min);
  213. }

comments powered by Disqus