Advertisement
peterspike12

Untitled

Jul 26th, 2017
229
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. // Bustabit BlackShadow Red Light Strat
  2. // By: BlackShadow & MartinG
  3. // Version 1.1
  4.  
  5. var bet = 1111; // bits to bet
  6. var cashout = 1.40; // cashout
  7.  
  8. var low = 1.10; // place bets only after a game crashed above or at this value
  9. var high = 1.22; // place bets only after a game crashed below or at this value
  10.  
  11. /****************************************************************/
  12.  
  13.  
  14. low = Math.floor(low * 100);
  15. high = Math.floor(high * 100);
  16. cashout = Math.floor(cashout * 100);
  17. bet = Math.floor(bet) * 100;
  18.  
  19. var lastCrash = null;
  20.  
  21.  
  22. engine.on('game_crash', function(data) {
  23. lastCrash = data.game_crash;
  24. });
  25.  
  26. engine.on('game_starting', function(info) {
  27. if(lastCrash != null && lastCrash <= high && lastCrash >= low) {
  28. console.log("Betting");
  29. engine.placeBet(bet, cashout);
  30. } else {
  31. console.log("Not Betting");
  32. }
  33. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement