Skip to content
This repository was archived by the owner on Feb 9, 2022. It is now read-only.

Commit 0a3bb8b

Browse files
Update ThievingActivity.java (#81)
* Update ThievingActivity.java Open coin pouch when pickpocketing * Update Eating.java add "Drink" option support * update delay between herb cleaning
1 parent e1d8437 commit 0a3bb8b

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

src/main/java/activities/eating/Eating.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public float getHpPercent() {
1919
@Override
2020
public void run() throws InterruptedException {
2121
long foodCount = getInventory().getAmount(food.toString());
22-
getInventory().getItem(food.toString()).interact("Eat");
22+
getInventory().getItem(food.toString()).interact("Eat", "Drink");
2323
Sleep.sleepUntil(() -> getInventory().getAmount(food.toString()) < foodCount, 5000);
2424
}
2525

src/main/java/activities/skills/herblore/herb_cleaning/HerbCleaningActivity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public void runActivity() throws InterruptedException {
4242
private void cleanHerbs() {
4343
long herbCount = getInventory().getAmount(herb.grimyName);
4444
if (getInventory().getItem(herb.grimyName).interact("Clean")) {
45-
Sleep.sleepUntil(() -> getInventory().getAmount(herb.grimyName) < herbCount, 2000);
45+
Sleep.sleepUntil(() -> getInventory().getAmount(herb.grimyName) < herbCount, 700);
4646
}
4747
}
4848

src/main/java/activities/skills/thieving/ThievingActivity.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
import activities.eating.Eating;
77
import activities.eating.Food;
88
import org.osbot.rs07.api.map.Position;
9+
import org.osbot.rs07.api.model.Item;
910
import org.osbot.rs07.api.model.NPC;
1011
import org.osbot.rs07.api.model.RS2Object;
1112
import org.osbot.rs07.event.WalkingEvent;
@@ -108,6 +109,13 @@ private void steal() {
108109
}
109110

110111
private void pickpocket() {
112+
113+
Item coinPouch = getInventory().getItem("Coin pouch");
114+
115+
if(coinPouch != null && coinPouch.getAmount() >= 28) {
116+
getInventory().getItem("Coin pouch").interact();
117+
}
118+
111119
if (!getSettings().isRunning() && getSettings().getRunEnergy() >= 30) {
112120
getSettings().setRunning(true);
113121
} else {

0 commit comments

Comments
 (0)