SHARE
TWEET

Untitled

a guest Oct 20th, 2019 89 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var config = {};
  2.  
  3. var base_amount = 2, amount = base_amount;
  4. var losses = -1, vlosses = 0;
  5. var playing = true;
  6.  
  7. engine.on('GAME_STARTING', function () {
  8.     if(playing) {
  9.         log(losses + ' losses, betting with ' + amount);
  10.         engine.bet(parseInt(amount) * 100, 80);
  11.     }
  12. });
  13.  
  14. engine.on('GAME_ENDED', function (game) {
  15.     if(parseInt(game.bust) < 80){
  16.         losses++;
  17.         if(losses < 110) {
  18.             if (losses >= 70) amount = base_amount * 2;
  19.         }else if(losses == 110){
  20.             amount = base_amount * 2.5;
  21.         }else if(losses > 110){
  22.             vlosses++;
  23.             if(vlosses == 20){
  24.                 vlosses = 0;
  25.                 amount = amount + amount/4;
  26.             }
  27.         }
  28.     }else{
  29.         //playing = false;
  30.         log('won ' + (parseInt(amount) * 80)+' bits, restarting');
  31.         amount = base_amount;
  32.         losses = vlosses = 0;
  33.     }
  34. });
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