Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // BitNielsBank bustabit script //
- var totalEarned = 0;
- var maxBet = 3500; // Should be equal to latest number in bets
- var loseStreak = 0;
- var gamesPlayed = 0;
- // Our bets, first number is bet with 0 loses, second with 1...
- var bets = [25, 100, 600, 2500, 3500];
- // Our multipliers per lose, first multiplier is with 0 loses, second with 1...
- var multiplier = [2, 1.5, 1.25, 1.25, 2];
- // When a game starts do this
- engine.on('game_starting', function(info) {
- console.log("New game started with a losestreak of "+loseStreak);
- console.log("We are betting "+bets[loseStreak]+" bits.")
- totalEarned -= bets[loseStreak];
- if(bets[loseStreak] < maxBet){
- engine.placeBet(bets[loseStreak]*100, multiplier[loseStreak]*100);
- }
- });
- // When a game ends do this
- engine.on('game_crash', function(data) {
- console.log("Game finished");
- if(data.game_crash < multiplier[loseStreak]*100){
- console.log("We lost! Crashed at "+ data.game_crash/100+", we needed "+ multiplier[loseStreak]);
- loseStreak += 1;
- }else{
- console.log("We won! Crash at "+ data.game_crash/100+", we cashed at "+ multiplier[loseStreak]+". We won "+ multiplier[loseStreak]*bets[loseStreak] +" bits");
- totalEarned += (multiplier[loseStreak]*bets[loseStreak])
- loseStreak = 0;
- }
- console.log("Total earned: "+totalEarned);
- });
Advertisement
Add Comment
Please, Sign In to add comment