Another Bustabit script for easy passive bitcoin earning!


SUBMITTED BY: staceyjones90

DATE: Oct. 30, 2016, 10:22 a.m.

FORMAT: Text only

SIZE: 832 Bytes

HITS: 989

  1. var baseBet = 1;
  2. var maximumBet = 999999;
  3. var cashout;
  4. var mult;
  5. greed_percent = 5;
  6. if (!mult)
  7. mult = cashout / (cashout - 1) * (1 + greed_percent/100);
  8. else if (!cashout)
  9. cashout = mult / (mult - 1) * (1 + greed_percent/100);
  10. var satoshis = baseBet * 100;
  11. var crash = Math.floor(cashout*100 + 1e-6);
  12. var currentBet = false;
  13. engine.on('game_starting', function () {
  14. if (currentBet && engine.lastGamePlay() === 'LOST')
  15. currentBet *= mult;
  16. else
  17. currentBet = satoshis;
  18. if (currentBet < engine.getBalance()) {
  19. console.log('place bet of', Math.round(currentBet/100), 'at', crash/100);
  20. engine.placeBet(Math.round(currentBet/100)*100, crash, false);
  21. }
  22. else {
  23. engine.stop();
  24. console.log('You ran out of bits :(');
  25. }
  26. });

comments powered by Disqus