Jump to content

Fruit Stall Thiever


Recommended Posts

Posted

Hi all, 

This script steals from either of the fruit stalls located in the houses in Kourend.

1443167538_Fruitstallhouse.png.13b462c427d9eb427341b7574f690c4c.png

Script features

  • Uses either of the stalls inside the house
  • Drops everything found in the inventory before beginning
  • Uses a "Pick 1 Drop 1" method

Though the task is fairly simple, the script does not offer any anti-bans, and its sole purpose is to steal the fruit to maximize XP/ph, so as with any bot, use it at your own discretion.

Thanks and enjoy! :)

To add the script; 

Download the .jar file and add it to your C:\Users\*YOURUSERNAME*\OSBot\Scripts folder. Open up Osbot and refresh the bot list, and it should come up as "Fruit Stall Thiever". 

or

Scripts Source Code

package core;

import java.awt.Graphics2D;

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 = "Marcus", info = "Steals fruits", name = "Fruit Stall Thiever", version = 1, logo = "")

public class Main extends Script {

    @Override
    public void onStart() throws InterruptedException {
        getExperienceTracker().start(Skill.THIEVING);
    }

	@Override
	public int onLoop() throws InterruptedException {
		RS2Object stall = getObjects().closest("Fruit Stall");
		if (!getInventory().isEmpty()) {
		  getInventory().dropAll();
		} else if (stall != null && !myPlayer().isAnimating()) {
		  stall.interact("Steal-from");
		}
		return 700;
	}


    @Override
    public void onPaint(Graphics2D paint) {
        int tXp = getExperienceTracker().getGainedXP(Skill.THIEVING);
        int tXpph = getExperienceTracker().getGainedXPPerHour(Skill.THIEVING);

        super.onPaint(paint);
        paint.drawString("Thieving XP: " + tXp, 387, 328);
        paint.drawString("Thieving XP/PH: " + tXpph, 387, 313);
    }

}

 

Fruit stalls.jar

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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