Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Bustabit Bonus Sniper v0.3R0 - Made by http://dexontech.net/
- var StartingBet = 100, //(INTEGER) Initial bet that'll snipe the bonus. Note: 100 = 1 bit.
- AutoCashout = 2000, //(INTEGER) Will Cashout at 20x if the highest bet didn't cashed out yet.
- IncreaseOnLoss = 1.30, //(FLOAT) Will increase +1.30x of the last bet if lost.
- HighestBetNth = 1; // (INTEGER) 1 would be the fist highest bet (biggest one), 2 would be the second highest, 3 third highest, etc.
- //--------> EDIT OVER THIS LINE <--------
- var lastBet = 0;
- engine.on('game_starting', function(info) {
- var bet = 0;
- console.clear();
- console.log("Locking target...")
- if(engine.lastGamePlay() == "LOST") bet = (lastBet/100) * IncreaseOnLoss;
- else bet = StartingBet / 100;
- lastBet = bet*100;
- bet = Math.round(bet)*100;
- engine.placeBet(bet, AutoCashout, function(){ });
- });
- var bets = [];
- var highestBetUser = null;
- engine.on('game_started', function(data) {
- if(engine.lastGamePlayed()) bets = []; // Reset bets
- for(var i=0; i<Object.keys(data).length; i++){
- bets.push(data[Object.keys(data)[i]].bet); // Get all bets
- }
- for(var i=0; i<Object.keys(data).length; i++){
- if(data[Object.keys(data)[i]].bet == bets.max(HighestBetNth)){
- highestBetUser = data[Object.keys(data)[i]].username; // Get the highest one!
- }
- }
- console.log("Target acquired! ("+highestBetUser+")");
- });
- engine.on('cashed_out', function(data) {
- if(data.username == highestBetUser){
- setTimeout(function(){ engine.cashOut(); }, 1);
- console.log("Target hit!");
- }
- });
- // Some use less function:
- Array.prototype.max = function(n = 1) {
- var sorted = this.sort(function (a, b) {
- return b - a;
- });
- return sorted[n - 1];
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement