PHP code for Bustabit, up your earnings in bitcoin from $2 to $200 FAST


SUBMITTED BY: staceyjones90

DATE: Oct. 24, 2016, 11:06 a.m.

FORMAT: Text only

SIZE: 3.2 kB

HITS: 1258

  1. // ------------------------------------------------------------------------------------------------------------------------
  2. var baseBet = 200; // Set the base bet here. I recommend to set it to ~200 if you have 100k bits as start balance.
  3. // ------------------------------------------------------------------------------------------------------------------------
  4. // --------------------------------------------------------------------------------------------------
  5. // I recommend not to edit the settings below. They were calculated to be the best options possible.
  6. // --------------------------------------------------------------------------------------------------
  7. var skip1 = 6; // skip X games after second lost game.
  8. var skip2 = 0; // skip X games after third lost game.
  9. var skip3 = 6; // skip X games after fourth lost game.
  10. var skip4 = 0; // skip X games after fifth lost game.
  11. var skip5 = 6; // skip X games after sixth lost game.
  12. var skip6 = 2; // skip X games afterwards. This means the script will bet once and then skip X games.
  13. // This would continue to happen until a game is won or you bust.
  14. // ------------------------------------------------------------------------------------------
  15. // The Code
  16. // ------------------------------------------------------------------------------------------
  17. var bet = baseBet * 100;
  18. var currentBet = bet;
  19. var cashOut = 1.05;
  20. var startBalance = engine.getBalance();
  21. var currentBalance = startBalance;
  22. var losses = 0;
  23. var skip = 0;
  24. var lostGames = 0;
  25. var waitXgames = 0;
  26. var CO = 0;
  27. engine.on('game_starting', function(info) {
  28. if (currentBet && engine.lastGamePlay() == 'LOST') {
  29. lostGames++;
  30. currentBalance = engine.getBalance();
  31. losses = startBalance - currentBalance;
  32. currentBet *= 2;
  33. cashOut = (losses / currentBet) + 1.01;
  34. if (lostGames >= 3) {
  35. waitXgames = 0;
  36. if (lostGames == 3) {
  37. skip = skip1;
  38. }
  39. if (lostGames == 4) {
  40. skip = skip2;
  41. }
  42. if (lostGames == 5) {
  43. skip = skip3;
  44. }
  45. if (lostGames == 6) {
  46. skip = skip4;
  47. }
  48. if (lostGames == 7) {
  49. skip = skip5;
  50. }
  51. if (lostGames >= 8) {
  52. skip = skip6;
  53. }
  54. }
  55. } else {
  56. currentBalance = engine.getBalance();
  57. if (currentBalance > startBalance) {
  58. currentBet = bet;
  59. cashOut = 1.05;
  60. startBalance = engine.getBalance();
  61. lostGames = 0;
  62. skip = 0;
  63. }
  64. }
  65. if (waitXgames >= skip) {
  66. console.log('Placing bet of', Math.floor(currentBet / 100), 'at', Math.round(cashOut * 100) / 100, 'Cash out.');
  67. engine.placeBet(Math.floor(currentBet / 100) * 100, Math.floor(cashOut * 100), false);
  68. }
  69. });
  70. engine.on('game_crash', function(data) {
  71. if (data.game_crash / 100 >= CO) {
  72. waitXgames++;
  73. } else {
  74. waitXgames++;
  75. }
  76. });

comments powered by Disqus