Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- health = health.replaceAll("\\s", "");
- //System.out.println("Здоровье:" + health);
- String[] h = health.split("/");
- System.out.println("Здоровье:" + h[0]);
- health = h[0];
- String healthMax = h[1];//health.substring(health.length()- 2, health.length());
- //health = health.substring(0, health.length()- 3);
- // System.out.println("Здоровье:" + health + "/" + healthMax);
- if(health.length() > 0){
- int hp = Integer.parseInt(health);
- int hm = Integer.parseInt(healthMax);
- System.out.println("Здоровье:" + hp + "/" + hm);
- response = request("", "http://213.108.249.136/main.php?rnd=" + rnd +"&ml=6" + rnd, METHOD_GET, this.Cookie, 2);
- if(hp == hm) return true;
- }else
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement