BustaBit AutoBet Bot Script Greedy


SUBMITTED BY: raiborne

DATE: Nov. 17, 2015, 1:59 p.m.

FORMAT: Text only

SIZE: 2.2 kB

HITS: 1730

  1. /* Dexon's Bustabit script.
  2. * Current status: Little more safer but greedy...
  3. * Version 1.2.4
  4. * + When editing the variables, be careful to not remove any ';' or ',' character.
  5. */
  6. var baseBet = 10, // 10 bits
  7. baseCashout = 1.28, // Cashout at x1.28
  8. maxLoss = 4; // Amount of loss the bot will keep betting.
  9. var Simulation = false; // (true/false) Setting this to true will make the bot to simulate a betting run.
  10. //// ^EDIT OVER THIS LINE^ \\\\
  11. var bet = baseBet;
  12. var cashout = baseCashout;
  13. var lastBet = bet;
  14. var lossStreak = 0;
  15. var firstGame = true;
  16. var profit = 0;
  17. var chill = false;
  18. var wins = 0;
  19. var loss = 0;
  20. engine.on('game_starting', function(){
  21. if(lossStreak<maxLoss){
  22. console.log("Betting "+bet+" Bits on x"+cashout);
  23. if(Simulation){
  24. lastBet = bet;
  25. }else{
  26. engine.placeBet(bet*100, (cashout*100), function(){
  27. lastBet = bet;
  28. });
  29. }
  30. }else{
  31. console.log("Max loss reached! Passing one game then resetarting.");
  32. chill = true;
  33. bet = baseBet;
  34. cashout = baseCashout;
  35. lossStreak = 0;
  36. }
  37. });
  38. engine.on('game_crash', function(data){
  39. if(data.game_crash/100<cashout && !firstGame && !chill){
  40. loss++;
  41. console.log("Game crashed under x"+cashout+" :( ("+wins+" Wins | "+loss+" Loses)");
  42. profit -= lastBet;
  43. console.log("Current Profit: "+profit.toFixed(2));
  44. lossStreak++;
  45. if(lossStreak==1){
  46. cashout = 1.17;
  47. bet *= 8;
  48. }
  49. if(lossStreak>1){
  50. cashout = 1.07;
  51. bet *= 14;
  52. }
  53. }else{
  54. if(!firstGame && !chill){
  55. wins++;
  56. console.log("Successful bet! :) ("+wins+" Wins | "+loss+" Loses)");
  57. profit += ((lastBet*cashout)-lastBet);
  58. console.log("Current Profit: "+profit.toFixed(2));
  59. bet = baseBet;
  60. cashout = baseCashout;
  61. lossStreak = 0;
  62. }
  63. }
  64. firstGame = false;
  65. if(chill) chill = false;
  66. });
  67. function roundToTwo(num) {
  68. return +(Math.round(num + "e+2") + "e-2");
  69. }

comments powered by Disqus