The paint will show up on screen, but if say i place it over inventory or chat box its not visible ?
import org.osbot.rs07.script.Script;
import org.osbot.rs07.script.ScriptManifest;
import java.awt.*;
import javax.imageio.ImageIO;
import java.io.IOException;
import java.net.URL;
import java.awt.Image;
@ScriptManifest(author="Sponsor", version=0.01, info="Test", name="Sponsor", logo="")
public class antiCollect extends Script {
private final BasicStroke stroke1 = new BasicStroke(1);
private final Font font1 = new Font("Arial", 1, 18);
private final Image img1 = getImage("http://www.runehq.com/image/geitems/s/super-antipoison-3.gif");
private final Image img2 = getImage("http://i.imgur.com/b2EdUMF.png");
private final Color color1 = new Color(204, 204, 204, 116);
private final Color color2 = new Color(0, 0, 0);
private final Color color3 = new Color(255, 0, 153);
private Image getImage(String url) {
try {
return ImageIO.read(new URL(url));
} catch (IOException e) {
return null;
}
}
public void onStart() throws InterruptedException {
log("Starting Script :)");
}
public int onLoop() throws InterruptedException {
return 100;
}
public void onPaint(Graphics2D g) {
Graphics2D gr = g;
g.setColor(color1);
g.fillRoundRect(554, 214, 177, 248, 16, 16);
g.setColor(color2);
g.setStroke(stroke1);
g.drawRoundRect(554, 214, 177, 248, 16, 16);
g.drawImage(img1, 535, 375, null);
g.drawImage(img1, 654, 210, null);
g.drawImage(img2, 101, 5, null);
g.setFont(font1);
g.setColor(color3);
g.drawString("Time :", 565, 325);
g.drawString("Collected :", 563, 346);
g.drawString("Profit :", 562, 368);
}
public void onExit() throws InterruptedException {
this.log("We have finished");
}
}
http://imgur.com/a/dcw8i