Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.awt.Color;
- import java.awt.Graphics;
- import org.rsbot.event.listeners.PaintListener;
- import org.rsbot.script.Script;
- import org.rsbot.script.ScriptManifest;
- @ScriptManifest(
- authors = {"konnected"},
- version = 0.05,
- keywords = {},
- description = "Ataches cut dimond to adamnt bolt",
- name = "bolts")
- public class bolts extends Script implements PaintListener {
- int dimondTip =9191;
- int bolt =9143;
- int finishedBolt =9340;
- @Override
- public int loop() {
- if(inventory.contains(bolt)){
- if(inventory.contains(dimondTip))
- inventory.getItem(dimondTip).doClick(isActive());
- inventory.getItem(bolt).doAction("use");
- sleep (1000, 1500);
- }
- if(interfaces.getComponent(905, 14).isValid()) {
- interfaces.getComponent(905, 14).doClick();
- sleep (10000, 15000);
- }
- return random(100, 250);
- }
- /*
- * ------ Paint ------
- */
- @Override
- public void onRepaint(Graphics g) {
- g.setColor(Color.blue);
- g.drawLine(mouse.getLocation().x - 6, mouse.getLocation().y,
- mouse.getLocation().x + 6, mouse.getLocation().y);
- g.drawLine(mouse.getLocation
- ().x, mouse.getLocation().y - 6,
- mouse.getLocation().x, mouse.getLocation().y + 6);
- }
- }
Add Comment
Please, Sign In to add comment