All In Script for Bustabit Bitcoin Game


SUBMITTED BY: staceyjones90

DATE: Oct. 18, 2016, 1:30 p.m.

FORMAT: Text only

SIZE: 3.3 kB

HITS: 817

  1. // This script will bet your whole balance at 1,02x every random 40-100 games.
  2. //
  3. // There's still a risk of losing when doing it, so be careful.
  4. //
  5. //
  6. // Good luck earning! :)
  7. // ------------------------------------------------------------------------------------------------------------------------
  8. // ------------------------------------------------------------------------------------------------------------------------
  9. var Multiplier = 1.02; // At what multiplier should it cash out?
  10. var MinBreakDuration = 40; // Minimum duration of the skip games.
  11. var MaxBreakDuration = 100; // Maximum duration of the skip games.
  12. // ------------------------------------------------------------------------------------------------------------------------
  13. // ------------------------------------------------------------------------------------------
  14. // The Code
  15. // ------------------------------------------------------------------------------------------
  16. var Username = engine.getUsername();
  17. var StartBalance = engine.getBalance();
  18. var CurrentGameID = -1;
  19. var CurrentBet = 0;
  20. var CurrentMultiplier = Multiplier;
  21. var d = new Date();
  22. var StartTime = d.getTime();
  23. var randomBreak = randomNumber(MinBreakDuration, MaxBreakDuration);
  24. console.log('Welcome ' + Username);
  25. console.log('Your start ballance is: ' + (StartBalance / 100).toFixed(2) + ' bits');
  26. if (Multiplier < 1) {
  27. console.log('Your multiplier must be 1.0 or higher.');
  28. engine.stop();
  29. }
  30. engine.on('game_starting', function(info) {
  31. CurrentGameID = info.game_id;
  32. console.log('---------------------');
  33. console.log('Game #' + CurrentGameID + ' started.');
  34. CurrentBet = Math.floor(engine.getBalance().toFixed(2) / 100);
  35. //check if current bet is 0 or negative
  36. if (CurrentBet < 1) {
  37. CurrentBet = 1;
  38. }
  39. if (CurrentBet <= engine.getBalance()) { // Check if the balance is high enough to place the bet.
  40. if (randomBreak == 0) {
  41. console.log('Betting ' + (CurrentBet) + ' bits, cashing out at ' + CurrentMultiplier + 'x');
  42. randomBreak = randomNumber(MinBreakDuration, MaxBreakDuration);
  43. engine.placeBet(CurrentBet * 100, Math.round(CurrentMultiplier * 100), false);
  44. } else {
  45. console.log('Bot is taking a break for ' + randomBreak + ' more games.');
  46. randomBreak--;
  47. }
  48. } else { // Not enough balance to place the bet.
  49. console.error('Your account balance is to low to place a bet.... The bot will close now.');
  50. engine.stop();
  51. }
  52. });
  53. engine.on('cashed_out', function(data) {
  54. if (data.username == engine.getUsername()) {
  55. console.log('Successfully cashed out at ' + (data.stopped_at / 100) + 'x');
  56. }
  57. });
  58. engine.on('game_crash', function(data) {
  59. var newdate = new Date();
  60. var timeplaying = ((newdate.getTime() - StartTime) / 1000) / 60;
  61. console.log('Game crashed at ' + (data.game_crash / 100) + 'x');
  62. console.log('Session profit: ' + ((engine.getBalance() - StartBalance) / 100).toFixed(2) + ' bits in ' + Math.round(timeplaying) + ' minutes.');
  63. });
  64. function randomNumber(min, max) {
  65. return Math.floor(Math.random() * (max - min + 1) + min);
  66. }

comments powered by Disqus