Advertisement
Guest User

Untitled

a guest
May 24th, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.90 KB | None | 0 0
  1.  health = health.replaceAll("\\s", "");
  2.             //System.out.println("Здоровье:" + health);
  3.  
  4.             String[] h = health.split("/");
  5.             System.out.println("Здоровье:" + h[0]);
  6.             health = h[0];
  7.  
  8.             String healthMax = h[1];//health.substring(health.length()- 2, health.length());
  9.             //health = health.substring(0, health.length()- 3);
  10.  
  11.            // System.out.println("Здоровье:" + health + "/" + healthMax);
  12.  
  13.             if(health.length() > 0){
  14.  
  15.  
  16.                 int hp = Integer.parseInt(health);
  17.                 int hm = Integer.parseInt(healthMax);
  18.                 System.out.println("Здоровье:" + hp + "/" + hm);
  19.  
  20.                 response = request("", "http://213.108.249.136/main.php?rnd=" + rnd +"&ml=6" + rnd, METHOD_GET, this.Cookie, 2);
  21.  
  22.  
  23.                 if(hp == hm) return true;
  24.  
  25.  
  26.  
  27.  
  28.             }else
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement