Advertisement
Guest User

Untitled

a guest
Jul 26th, 2014
253
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.23 KB | None | 0 0
  1. import java.awt.*;
  2. import javax.imageio.ImageIO;
  3.  
  4. import org.osbot.rs07.api.ui.Message;
  5. import org.osbot.rs07.script.Script;
  6. import org.osbot.rs07.script.ScriptManifest;
  7.  
  8. import java.io.IOException;
  9. import java.net.URL;
  10.  
  11. @ScriptManifest(author = "Jack", name = "ScriptSkele", version = 0.1, info = "Hai", logo = "")
  12. public class Skeleton extends Script {
  13.  
  14. long startTime = 0;
  15. private final Image paintImage = getImage("");
  16. int mouseX,mouseY;
  17. BasicStroke mouseStroke = new BasicStroke(1);
  18.  
  19. public void onStart() {
  20. startTime = System.currentTimeMillis();
  21. getBot().setHumanInputEnabled(false);
  22. }
  23.  
  24. public int onLoop() throws InterruptedException{
  25. return random(300, 400);
  26. }
  27.  
  28. public void onPaint(Graphics2D g){
  29. /*
  30. g.setStroke(mouseStroke);
  31. g.setColor(Color.WHITE);
  32. mouseX = mouse.getPosition().x;
  33. mouseY = mouse.getPosition().y;
  34. g.drawLine(mouseX-6, mouseY-6, mouseX+6, mouseY+6);
  35. g.drawLine(mouseX-6, mouseY+6, mouseX+6, mouseY-6);
  36. */
  37. }
  38.  
  39. /*
  40. public void onMessage(Message message) {
  41. if(message!=null){
  42. }
  43. }
  44.  
  45. private Image getImage(String url) {
  46. try {
  47. return ImageIO.read(new URL(url));
  48. } catch(IOException e) {
  49. return null;
  50. }
  51. }
  52. */
  53.  
  54. public void onExit() {
  55. }
  56. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement