Advertisement
curly4

Dexon's Bustabit script 1.2.4

Nov 29th, 2021
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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.  
  7. var baseBet = 10, // 10 bits
  8. baseCashout = 1.28, // Cashout at x1.28
  9. maxLoss = 4; // Amount of loss the bot will keep betting.
  10.  
  11. var Simulation = false; // (true/false) Setting this to true will make the bot to simulate a betting run.
  12.  
  13. //// ^EDIT OVER THIS LINE^ \\\\
  14.  
  15. var bet = baseBet;
  16. var cashout = baseCashout;
  17. var lastBet = bet;
  18. var lossStreak = 0;
  19. var firstGame = true;
  20. var profit = 0;
  21. var chill = true;
  22. var wins = 0;
  23. var loss = 0;
  24.  
  25. engine.on('game_starting', function(){
  26. if(lossStreak<maxLoss){
  27. console.log("Betting "+bet+" Bits on x"+cashout);
  28. if(Simulation){
  29. lastBet = bet;
  30. }else{
  31. engine.placeBet(bet*100, (cashout*100), function(){
  32. lastBet = bet;
  33. });
  34. }
  35. }else{
  36. console.log("Max loss reached! Passing one game then resetarting.");
  37. chill = true;
  38. bet = baseBet;
  39. cashout = baseCashout;
  40. lossStreak = 0;
  41. }
  42. });
  43.  
  44. engine.on('game_crash', function(data){
  45. if(data.game_crash/100<cashout && !firstGame && !chill){
  46. loss++;
  47. console.log("Game crashed under x"+cashout+" :( ("+wins+" Wins | "+loss+" Loses)");
  48. profit -= lastBet;
  49. console.log("Current Profit: "+profit.toFixed(2));
  50. lossStreak++;
  51. if(lossStreak==1){
  52. cashout = 1.17;
  53. bet *= 8;
  54. }
  55. if(lossStreak>1){
  56. cashout = 1.07;
  57. bet *= 14;
  58. }
  59. }else{
  60. if(!firstGame && !chill){
  61. wins++;
  62. console.log("Successful bet! :) ("+wins+" Wins | "+loss+" Loses)");
  63. profit += ((lastBet*cashout)-lastBet);
  64. console.log("Current Profit: "+profit.toFixed(2));
  65. bet = baseBet;
  66. cashout = baseCashout;
  67. lossStreak = 0;
  68. }
  69. }
  70. firstGame = false;
  71. if(chill) chill = false;
  72. });
  73.  
  74. function roundToTwo(num) {
  75. return +(Math.round(num + "e+2") + "e-2");
  76. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement