Rumple Posted November 29, 2018 Share Posted November 29, 2018 (edited) Steals seeds from stall. Does not detect Olivia so it will continue to click so baby sit if u want. Good for 10 hp ironmen that need seeds to start farmining/birdhouses. Leave a like or Rep if you do use it. import java.awt.*; import org.osbot.rs07.api.Walking; import org.osbot.rs07.api.Bank; import org.osbot.rs07.api.map.Area; import org.osbot.rs07.api.map.Position; import org.osbot.rs07.api.model.RS2Object; import org.osbot.rs07.api.ui.Skill; import org.osbot.rs07.script.Script; import org.osbot.rs07.script.ScriptManifest; @ScriptManifest(author = "Toxic/Rumple", info = "Steals seeds from Seed Stall", name = "Seed thiever", version = 0, logo = "") public class SeedStall extends Script { private long startTime; private final Color transBackground = new Color(0, 0, 0, 178); private final Color rsOrange = new Color(252, 155, 31); private final Font font = new Font("Helvetica", 0, 12); public static Area SSA = new Area(3076,3251,3074,3248); @Override public void onStart() { this.startTime = System.currentTimeMillis(); this.getExperienceTracker().start(Skill.THIEVING); log("Let's get started!"); } @Override public int onLoop() throws InterruptedException { RS2Object stall = getObjects().closest(SSA,"Seed Stall"); Position myPos = myPosition(); Position targetPos = new Position(3074, 3249, 0); if (getInventory().isFull()) { RS2Object bank = getObjects().closest("Bank Booth"); if(bank != null){ bank.interact("Bank"); sleep(random(250)); getBank().depositAll(); } } else if (stall != null && !myPlayer().isAnimating() && myPos.equals(targetPos)) { log("Found stall stealing"); stall.interact("Steal from"); } return random(8000); } @Override public void onExit() { log("Thanks for running my Seed Thiever!"); } @Override public void onPaint(Graphics2D g) { g.setFont(this.font); g.setColor(this.transBackground); g.fillRect(1, 250, 225, 88); g.setColor(this.rsOrange); g.drawRect(1, 250, 225, 88); g.drawString("Toxic Seed Stall by Toxic/Rumple", 10, 265); g.drawString("Runtime: " + this.formatTime(System.currentTimeMillis() - this.startTime), 10, 285); g.drawString("Thieving XP (p/h): " + this.getExperienceTracker().getGainedXP(Skill.THIEVING) + " (" + this.getExperienceTracker().getGainedXPPerHour(Skill.THIEVING) + ")", 10, 300); g.drawString("Thieving Level: " + this.getSkills().getStatic(Skill.THIEVING) + " (" + this.getExperienceTracker().getGainedLevels(Skill.THIEVING) + ")", 10, 315); g.drawString("Time to level: " + this.formatTime(this.getExperienceTracker().getTimeToLevel(Skill.THIEVING)), 10, 330); } private String formatTime(long time) { long s = time / 1000L; long m = s / 60L; long h = m / 60L; s %= 60L; m %= 60L; h %= 24L; return String.format("%02d:%02d:%02d", h, m, s); } } Edited December 1, 2018 by Rumple 1 Quote Link to comment Share on other sites More sharing options...
pecksniffs Posted June 23, 2019 Share Posted June 23, 2019 How do I use this script? Quote Link to comment Share on other sites More sharing options...
Runnwith Posted June 24, 2019 Share Posted June 24, 2019 8 hours ago, pecksniffs said: How do I use this script? You have to put it into an IDE like eclipse or IntelliJ and then compile it as a jar then put it into your OSbot folder. Not guarantee the code is safe/usable so gl Quote Link to comment Share on other sites More sharing options...
Roarings Posted June 24, 2019 Share Posted June 24, 2019 1 hour ago, Runnwith said: You have to put it into an IDE like eclipse or IntelliJ and then compile it as a jar then put it into your OSbot folder. Not guarantee the code is safe/usable so gl Source code is in the thread? All it does is just thieve from the stall haha. Quote Link to comment Share on other sites More sharing options...
Runnwith Posted June 24, 2019 Share Posted June 24, 2019 31 minutes ago, Roarings said: Source code is in the thread? All it does is just thieve from the stall haha. Ask anyone that knows me, I can't read @Naked, @Chris Quote Link to comment Share on other sites More sharing options...
FuryShark Posted July 2, 2019 Share Posted July 2, 2019 On 6/24/2019 at 4:54 AM, Runnwith said: Ask anyone that knows me, I can't read @Naked, @Chris or make script logos Quote Link to comment Share on other sites More sharing options...