Jump to content

Fruit Stall Thiever


Lol_marcus

Recommended Posts

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

Link to comment
Share on other sites

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...