SHARE
TWEET

Untitled

a guest Aug 22nd, 2019 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var config = {
  2.  betPer: { value: 0.005, type: 'multiplier', label:'BR % eg. 0.10 = 10%' },
  3. };
  4. log('Script is running..');
  5.  
  6. var currentBet = 0;
  7. var startingBalance = userInfo.balance;
  8. var betNumber = 0;
  9. var betSize = userInfo.balance * config.betPer.value;
  10.  
  11. engine.on('GAME_STARTING', onGameStarted);
  12. engine.on('GAME_ENDED', onGameEnded);
  13.  
  14. function onGameStarted() {
  15.         if(currentBet == 1){
  16.         engine.bet(roundBit(betSize), config.payout.value);
  17.         betNumber += 1;
  18.         log('Betting', roundBit(betSize)/100);
  19.   }else{
  20.         betNumber = 0
  21.         }
  22. };
  23. function onGameEnded() {
  24.   var lastGame = engine.history.first();
  25.    if(lastGame.wager){
  26.      if(userInfo.balance > startingBalance){
  27.      log('Current Profit =', (userInfo.balance - startingBalance)/100);
  28.             }else{
  29.   if(userInfo.balance < startingBalance){
  30.             log('Current Loss =', (startingBalance - userInfo.balance)/100);
  31.   } }
  32.  };
  33.     //Did the last game crash at 1x?
  34.     if(lastGame.bust == 1.00){
  35.         currentBet = 1;
  36.         log('We will bet next round');
  37.     }else{
  38.     //Did we bet last game?
  39.     if(lastGame.wager){
  40.         currentBet = 1;
  41.         log('We will bet next round');
  42.     }else{
  43.         currentBet = 0;
  44.         log('we are waiting for a 1x');
  45.     }
  46.  }
  47.     //Stop if we have made 25 bets
  48.     if(betNumber = 25){
  49.         currentBet = 0;
  50.         }
  51. };
  52. function roundBit(bet) {
  53.   return Math.round(bet / 100) * 100;
  54. };
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top