Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.awt.*;
- import javax.imageio.ImageIO;
- import org.osbot.rs07.api.ui.Message;
- import org.osbot.rs07.script.Script;
- import org.osbot.rs07.script.ScriptManifest;
- import java.io.IOException;
- import java.net.URL;
- @ScriptManifest(author = "Jack", name = "ScriptSkele", version = 0.1, info = "Hai", logo = "")
- public class Skeleton extends Script {
- long startTime = 0;
- private final Image paintImage = getImage("");
- int mouseX,mouseY;
- BasicStroke mouseStroke = new BasicStroke(1);
- public void onStart() {
- startTime = System.currentTimeMillis();
- getBot().setHumanInputEnabled(false);
- }
- public int onLoop() throws InterruptedException{
- return random(300, 400);
- }
- public void onPaint(Graphics2D g){
- /*
- g.setStroke(mouseStroke);
- g.setColor(Color.WHITE);
- mouseX = mouse.getPosition().x;
- mouseY = mouse.getPosition().y;
- g.drawLine(mouseX-6, mouseY-6, mouseX+6, mouseY+6);
- g.drawLine(mouseX-6, mouseY+6, mouseX+6, mouseY-6);
- */
- }
- /*
- public void onMessage(Message message) {
- if(message!=null){
- }
- }
- private Image getImage(String url) {
- try {
- return ImageIO.read(new URL(url));
- } catch(IOException e) {
- return null;
- }
- }
- */
- public void onExit() {
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement