Jump to content

Toxic Seed Stall Theif


Rumple

Recommended Posts

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 by Rumple
  • Like 1
Link to comment
Share on other sites

  • 6 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...