SHARE
TWEET

Untitled

a guest Feb 23rd, 2020 69 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //
  2. //   Version: 2
  3. //
  4.  
  5. function set_bet(bucs) {
  6.     $('#bet-input').val(bucs);
  7. }
  8.  
  9. function bet_black(bucs) {
  10.     set_bet(bucs);
  11.     $("#bet-btn-2x").click();
  12. }
  13.  
  14. function bet_red(bucs) {
  15.     set_bet(bucs);
  16.     $("#bet-btn-3x").click();
  17. }
  18.  
  19. function get_balance() {
  20.    
  21.     return parseInt($("#balance").text().replace(",", ""));
  22. }
  23.  
  24.  
  25. let settings = {
  26.    
  27.     red_percents: 0.2,
  28.     black_percent: 0.3,
  29.     after_triple_coef: 1.5,
  30.    
  31.    
  32.     sys: {
  33.         call_bck: false,
  34.         last_balance: 0,
  35.     },
  36.    
  37. }
  38.  
  39.  
  40. $("#past-queue > #past-queue-wrapper").bind( 'DOMSubtreeModified',function(){
  41.    
  42.     if (settings.sys.call_bck == false) {
  43.         settings.sys.call_bck = true;
  44.         setTimeout(function() {
  45.             settings.sys.call_bck = false;
  46.             let last_color_1 = $(".past-tooltip:nth-child(100)").attr('class');
  47.             let last_color_2 = $(".past-tooltip:nth-child(99)").attr('class');
  48.             let last_color_3 = $(".past-tooltip:nth-child(98)").attr('class');
  49.            
  50.            
  51.             if (last_color_1 == "past-2 past-tooltip" & last_color_2 == "past-2 past-tooltip" & last_color_3 == "past-2 past-tooltip") {
  52.                
  53.                 bet_black(settings.sys.last_balance * settings.black_percent * settings.after_triple_coef);
  54.                 bet_red(settings.sys.last_balance * settings.red_percents * settings.after_triple_coef);
  55.                
  56.             } else {
  57.                 if (last_color_1 == "past-2 past-tooltip" & last_color_2 == "past-2 past-tooltip") {
  58.                     settings.sys.last_balance = get_balance();
  59.                     bet_black(settings.sys.last_balance * settings.black_percent);
  60.                     bet_red(settings.sys.last_balance * settings.red_percents);
  61.                     console.log("Ставка сделана");
  62.                    
  63.                 }
  64.             }
  65.  
  66.            
  67.         }, 1000);
  68.        
  69.        
  70.        
  71.     }
  72.    
  73. });
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