Guest User

Untitled

a guest
Nov 24th, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.26 KB | None | 0 0
  1. import java.awt.Color;
  2. import java.awt.Graphics;
  3.  
  4. import org.rsbot.event.listeners.PaintListener;
  5. import org.rsbot.script.Script;
  6. import org.rsbot.script.ScriptManifest;
  7.  
  8. @ScriptManifest(
  9. authors = {"konnected"},
  10. version = 0.05,
  11. keywords = {},
  12. description = "Ataches cut dimond to adamnt bolt",
  13. name = "bolts")
  14.  
  15. public class bolts extends Script implements PaintListener {
  16.  
  17. int dimondTip =9191;
  18. int bolt =9143;
  19. int finishedBolt =9340;
  20.  
  21. @Override
  22. public int loop() {
  23.  
  24.  
  25. if(inventory.contains(bolt)){
  26. if(inventory.contains(dimondTip))
  27. inventory.getItem(dimondTip).doClick(isActive());
  28. inventory.getItem(bolt).doAction("use");
  29. sleep (1000, 1500);
  30. }
  31. if(interfaces.getComponent(905, 14).isValid()) {
  32. interfaces.getComponent(905, 14).doClick();
  33. sleep (10000, 15000);
  34.  
  35. }
  36.  
  37.  
  38.  
  39.  
  40. return random(100, 250);
  41.  
  42.  
  43.  
  44. }
  45.  
  46.  
  47.  
  48. /*
  49. * ------ Paint ------
  50. */
  51. @Override
  52. public void onRepaint(Graphics g) {
  53.  
  54.  
  55. g.setColor(Color.blue);
  56. g.drawLine(mouse.getLocation().x - 6, mouse.getLocation().y,
  57. mouse.getLocation().x + 6, mouse.getLocation().y);
  58. g.drawLine(mouse.getLocation
  59.  
  60. ().x, mouse.getLocation().y - 6,
  61.  
  62.  
  63. mouse.getLocation().x, mouse.getLocation().y + 6);
  64.  
  65.  
  66.  
  67.  
  68. }
  69. }
Add Comment
Please, Sign In to add comment