Advertisement
Guest User

Untitled

a guest
Jan 20th, 2017
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.02 KB | None | 0 0
  1. // br 66k bits start
  2.  
  3. var start_bet = 0.0000000001; //Bet
  4. var profit = 50;//200bits
  5. var cash_multi = 5; //3x
  6. /////////////////////////////////////////////////////////
  7. ////////////////do not touch down code///////////////////
  8. /////////////////////////////////////////////////////////
  9. var bet_amount = Math.ceil((start_bet/100)*Math.floor(engine.getBalance()/100));
  10. var losing_balance = 0;
  11. var recover = true;
  12.  
  13. engine.on('game_crash', function(data) {
  14. if (engine.lastGamePlay() == 'WON') {
  15. bet_amount = Math.ceil((start_bet/100)*Math.floor(engine.getBalance()/100));
  16. losing_balance = 0;
  17. }
  18. else if(engine.lastGamePlay() == 'LOST') {
  19. losing_balance = losing_balance + bet_amount;
  20. if(recover){
  21. bet_amount=Math.ceil(losing_balance/(cash_multi-1));
  22. recover = false;
  23. } else {
  24. bet_amount=Math.ceil((losing_balance+profit)/(cash_multi-1));
  25. recover = true;
  26. }
  27. }
  28. });
  29.  
  30. engine.on('game_starting', function() {
  31. engine.placeBet(Math.round(bet_amount), 100, Math.round(cash_multi 100), false);
  32. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement