Guest User

Untitled

a guest
Jun 24th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.57 KB | None | 0 0
  1. import org.runedream.api.Script;
  2. import org.runedream.api.ScriptManifest;
  3. import org.runedream.api.methods.*;
  4. import org.runedream.api.util.Random;
  5.  
  6. @ScriptManifest(
  7. authors = { "DutchP0wner" },
  8. name = "Goldbar",
  9. version = 0.1,
  10. description = "Melts Gold Bars.",
  11. keywords = { "Gold", "smithing", "Dutchp0wner"},
  12. language = { true, true, true, true })
  13.  
  14. public class TeaStealer extends Script{
  15.  
  16. private static final Color furnace = new Color(150, 31, 32);
  17. private static final Color goldore = new Color(177, 141, 25);
  18. private static final Rectangle CLOSEVIEW = new Rectangle(290, 110, 360, 190);
  19. private List<Point> furnacePoints = new LinkedList<Point>();
  20. private List<Point> goldPoints = new LinkedList<Point>();
  21.  
  22.  
  23. @Override
  24. public boolean onStart(){
  25. startTime = System.currentTimeMillis();
  26. Game.clickCompass();
  27. Camera.pitchUp(1000);
  28. Inventory.open();
  29. return true;
  30. }
  31.  
  32. @Override
  33. public int loop() {
  34. Mouse.setSpeed(Random.random(4, 7));
  35. goldorePoints = ImageUtil.getPointsWithColor(Game.getImage(), goldore, 0.01);
  36. if (goldorePoints.size() > 0){
  37. Point gold = goldorePoints.get(Random.random(0, goldorePoints.size()));
  38. furnacePoints = ImageUtil.getPointsWithColor(Game.getImage()), furnace, 0.01);
  39. if (furnacePoints.size() > 0){
  40. Point furnace = furnacePoints.get(Random.random(0, furnacePoints.size()));
  41. if (CLOSEVIEW.contains(goldore)){
  42. Script.sleep(25, 250);
  43. Mouse.click(Stall);
  44. }
  45. }
  46. return 1;
  47. }
  48.  
  49. @Override
  50. public void onStop(){
  51.  
  52. }
  53.  
  54.  
  55. }
Add Comment
Please, Sign In to add comment