Advertisement
curly4

bustabit v1 sniper script Dexon

Jan 11th, 2022
1,137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Bustabit Bonus Sniper v0.3R0 -  Made by http://dexontech.net/
  2.  
  3. var StartingBet  = 100, //(INTEGER) Initial bet that'll snipe the bonus. Note: 100 = 1 bit.
  4.   AutoCashout    = 2000, //(INTEGER) Will Cashout at 20x if the highest bet didn't cashed out yet.
  5.   IncreaseOnLoss = 1.30, //(FLOAT) Will increase +1.30x of the last bet if lost.
  6.   HighestBetNth  = 1; // (INTEGER) 1 would be the fist highest bet (biggest one), 2 would be the second highest, 3 third highest, etc.
  7.  
  8. //--------> EDIT OVER THIS LINE <--------
  9.  
  10. var lastBet = 0;
  11.  
  12. engine.on('game_starting', function(info) {
  13.   var bet = 0;
  14.   console.clear();
  15.   console.log("Locking target...")
  16.   if(engine.lastGamePlay() == "LOST") bet = (lastBet/100) * IncreaseOnLoss;
  17.   else bet = StartingBet / 100;
  18.   lastBet = bet*100;
  19.   bet = Math.round(bet)*100;
  20.   engine.placeBet(bet, AutoCashout, function(){ });
  21. });
  22.  
  23. var bets = [];
  24. var highestBetUser = null;
  25.  
  26. engine.on('game_started', function(data) {
  27.   if(engine.lastGamePlayed()) bets = []; // Reset bets
  28.   for(var i=0; i<Object.keys(data).length; i++){
  29.     bets.push(data[Object.keys(data)[i]].bet); // Get all bets
  30.   }
  31.   for(var i=0; i<Object.keys(data).length; i++){
  32.     if(data[Object.keys(data)[i]].bet == bets.max(HighestBetNth)){
  33.       highestBetUser = data[Object.keys(data)[i]].username; // Get the highest one!
  34.     }
  35.   }
  36.     console.log("Target acquired! ("+highestBetUser+")");
  37. });
  38.  
  39. engine.on('cashed_out', function(data) {
  40.   if(data.username == highestBetUser){
  41.     setTimeout(function(){ engine.cashOut(); }, 1);
  42.     console.log("Target hit!");
  43.   }
  44. });
  45.  
  46. // Some use less function:
  47. Array.prototype.max = function(n = 1) {
  48.   var sorted = this.sort(function (a, b) {
  49.     return b - a;
  50.   });
  51.   return sorted[n - 1];
  52. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement