Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import org.runedream.api.Script;
- import org.runedream.api.ScriptManifest;
- import org.runedream.api.methods.*;
- import org.runedream.api.util.Random;
- @ScriptManifest(
- authors = { "DutchP0wner" },
- name = "Goldbar",
- version = 0.1,
- description = "Melts Gold Bars.",
- keywords = { "Gold", "smithing", "Dutchp0wner"},
- language = { true, true, true, true })
- public class TeaStealer extends Script{
- private static final Color furnace = new Color(150, 31, 32);
- private static final Color goldore = new Color(177, 141, 25);
- private static final Rectangle CLOSEVIEW = new Rectangle(290, 110, 360, 190);
- private List<Point> furnacePoints = new LinkedList<Point>();
- private List<Point> goldPoints = new LinkedList<Point>();
- @Override
- public boolean onStart(){
- startTime = System.currentTimeMillis();
- Game.clickCompass();
- Camera.pitchUp(1000);
- Inventory.open();
- return true;
- }
- @Override
- public int loop() {
- Mouse.setSpeed(Random.random(4, 7));
- goldorePoints = ImageUtil.getPointsWithColor(Game.getImage(), goldore, 0.01);
- if (goldorePoints.size() > 0){
- Point gold = goldorePoints.get(Random.random(0, goldorePoints.size()));
- furnacePoints = ImageUtil.getPointsWithColor(Game.getImage()), furnace, 0.01);
- if (furnacePoints.size() > 0){
- Point furnace = furnacePoints.get(Random.random(0, furnacePoints.size()));
- if (CLOSEVIEW.contains(goldore)){
- Script.sleep(25, 250);
- Mouse.click(Stall);
- }
- }
- return 1;
- }
- @Override
- public void onStop(){
- }
- }
Add Comment
Please, Sign In to add comment