This repository was archived by the owner on Feb 9, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +10
-2
lines changed Expand file tree Collapse file tree 3 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ public float getHpPercent() {
19
19
@ Override
20
20
public void run () throws InterruptedException {
21
21
long foodCount = getInventory ().getAmount (food .toString ());
22
- getInventory ().getItem (food .toString ()).interact ("Eat" );
22
+ getInventory ().getItem (food .toString ()).interact ("Eat" , "Drink" );
23
23
Sleep .sleepUntil (() -> getInventory ().getAmount (food .toString ()) < foodCount , 5000 );
24
24
}
25
25
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ public void runActivity() throws InterruptedException {
42
42
private void cleanHerbs () {
43
43
long herbCount = getInventory ().getAmount (herb .grimyName );
44
44
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 );
46
46
}
47
47
}
48
48
Original file line number Diff line number Diff line change 6
6
import activities .eating .Eating ;
7
7
import activities .eating .Food ;
8
8
import org .osbot .rs07 .api .map .Position ;
9
+ import org .osbot .rs07 .api .model .Item ;
9
10
import org .osbot .rs07 .api .model .NPC ;
10
11
import org .osbot .rs07 .api .model .RS2Object ;
11
12
import org .osbot .rs07 .event .WalkingEvent ;
@@ -108,6 +109,13 @@ private void steal() {
108
109
}
109
110
110
111
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
+
111
119
if (!getSettings ().isRunning () && getSettings ().getRunEnergy () >= 30 ) {
112
120
getSettings ().setRunning (true );
113
121
} else {
You can’t perform that action at this time.
0 commit comments