Advertisement
Guest User

Bustabit 10x chasing

a guest
Aug 22nd, 2017
434
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //very basic chasing script, just double the bet every myTarget games and divide by 2 every myTarget attained
  2. //It will chase myTarget until it reaches securityLevel (at this point, he'll bet myBaseBet^securityLevel) until myTarget is not rare at all (and will then be nicely in profit)
  3. //!!\\This script has been made to bet up to 32k bits to 10x with the default settings here :
  4. //Author: @Cannonball
  5.  
  6. var myTarget = 10;
  7. var myBaseBet = 1;
  8. var securityLevel = 15;
  9.  
  10. var myBRinSatoshis = engine.getBalance();
  11. var myBaseBetInSatoshis = myBaseBet*100;
  12. var myTargetForPlaceBet = myTarget*100;
  13. var wasLastGameWon;
  14. var myNewBetInSatoshis=myBaseBetInSatoshis;
  15. var lossStreak = 0;
  16. var gameCount = 0;
  17.  
  18. engine.on('game_starting', function(info) {
  19.    
  20.     if(lossStreak%myTarget==0 && lossStreak != 0 && lossStreak/myTarget <= securityLevel && wasLastGameWon=="no"){
  21.         console.log("%c│We lost " + myTarget + " games in a streak - Doubling the bet!","color:#d8041d");
  22.         myNewBetInSatoshis = myNewBetInSatoshis*2;
  23.     }
  24.     if(wasLastGameWon=="yes" && myNewBetInSatoshis >= 200 && lossStreak/myTarget < securityLevel-1){
  25.         console.log("%c│Yes we won this one! Let's divide the bet by two","color:#33bc01");
  26.         myNewBetInSatoshis = myNewBetInSatoshis/2;
  27.     }
  28.     if(lossStreak/myTarget >= securityLevel){
  29.         console.log("%c│Max level reached !","-webkit-background-clip: text;-webkit-text-fill-color: transparent;background-image: -webkit-gradient(linear,  left top,  right top, color-stop(0.00, red), color-stop(16%, orange),color-stop(32%, yellow),color-stop(48%, green), color-stop(60%, blue),color-stop(76%, indigo),color-stop(1.00, violet));");
  30.         myNewBetInSatoshis = myBaseBetInSatoshis*securityLevel;
  31.     }
  32.     engine.placeBet(myNewBetInSatoshis, myTargetForPlaceBet,false);
  33.     console.log("└-~ Game #" + gameCount + " -~~- Bet is now : " + Math.floor(myNewBetInSatoshis/100) + " bits on target : " + myTarget + "x -~~- Current level: " + Math.floor(lossStreak/myTarget) + ". " + lossStreak%myTarget +"/" + myTarget + " have been lost for this level. -~~- Max level: " + securityLevel + ". ~- ");
  34. });
  35.  
  36. engine.on('game_crash', function(data) {
  37.   if (data.game_crash>=myTargetForPlaceBet){
  38.     wasLastGameWon="yes";
  39.     if(lossStreak>=myTarget){
  40.         lossStreak=lossStreak-myTarget;
  41.     }else{
  42.         lossStreak=0;
  43.     }
  44.   } else {
  45.     wasLastGameWon="no";
  46.     lossStreak++;
  47.     }
  48.     gameCount++;
  49. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement