Advertisement
Guest User

Untitled

a guest
Sep 23rd, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.26 KB | None | 0 0
  1. var config = {
  2. msg: { type: 'noop', label: 'Created By SellingScripts' },
  3. };
  4.  
  5. var betArray = [0,100,132,174,230,304,401,529,698,922, 1217, 1606, 2120, 2798, 3693, 4875, 6435]; // 0 is skip and other is in Bits.
  6. var cashArray =[0,1.13, 1.78, 2.43, 3.13, 3.83, 4.53, 5.28, 6.03, 6.78, 7.53, 8.33, 7.53, 6.78, 6.03, 5.28, 4.53]; // must have 0 in same place as in betArray to cashout nicely.
  7.  
  8. var index = 0;
  9. var bet = betArray[index];
  10. var cashout = cashArray[index];
  11.  
  12. log('Welcome script is running...');
  13. log('Your balance is...' + (userInfo.balance / 100) + ' bits');
  14.  
  15.  
  16. // Main:
  17. engine.on("GAME_STARTING", function() {
  18.  
  19. if(bet < 1000000){
  20. engine.bet(bet * 100, cashout);
  21. log("We are betting " + bet + " bits.");
  22. }else{
  23. log("Paused");
  24.  
  25. }
  26. });
  27.  
  28. engine.on("GAME_ENDED", function() {
  29.  
  30. var lastGame = engine.history.first()
  31.  
  32.  
  33. if(!lastGame.cashedAt) {
  34. log('We didn\'t manage to win');
  35. index++;
  36. bet = betArray[index];
  37. cashout = cashArray[index];
  38.  
  39.  
  40. }
  41. else{
  42. log('We managed to win');
  43. index = 1;
  44. bet = betArray[index];
  45. cashout = cashArray[index];
  46.  
  47. }
  48.  
  49.  
  50.  
  51. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement