Hi all,
This script steals from either of the fruit stalls located in the houses in Kourend.
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