|
|
@ -154,10 +154,10 @@ class Server |
|
|
|
|
|
|
|
|
|
|
|
float GetMythraHealth(){ |
|
|
|
float GetMythraHealth(){ |
|
|
|
BufferedImage img=r.createScreenCapture(new Rectangle(105, 193, 107, 1)); |
|
|
|
BufferedImage img=r.createScreenCapture(new Rectangle(105, 193, 107, 1)); |
|
|
|
System.out.println(img.getRGB(0,0)&255); |
|
|
|
System.out.println(img.getRGB(100,0)&255); |
|
|
|
System.out.println((img.getRGB(0,0)&(255<<8))>>8); |
|
|
|
System.out.println((img.getRGB(100,0)&(255<<8))>>8); |
|
|
|
System.out.println((img.getRGB(0,0)&(255<<16))>>16); |
|
|
|
System.out.println((img.getRGB(100,0)&(255<<16))>>16); |
|
|
|
System.out.println((img.getRGB(0,0)&(255<<24))>>24); |
|
|
|
System.out.println((img.getRGB(100,0)&(255<<24))>>24); |
|
|
|
for (int i=img.getWidth()-1;i>=0;i--){ |
|
|
|
for (int i=img.getWidth()-1;i>=0;i--){ |
|
|
|
if ((img.getRGB(i,0)&255)>100){ |
|
|
|
if ((img.getRGB(i,0)&255)>100){ |
|
|
|
return i/(img.getWidth()-1)*100; |
|
|
|
return i/(img.getWidth()-1)*100; |
|
|
|