5
5
import org .osbot .rs07 .api .model .RS2Object ;
6
6
import org .osbot .rs07 .api .ui .RS2Widget ;
7
7
import org .osbot .rs07 .api .ui .Tab ;
8
- import org .osbot .rs07 .event .WebWalkEvent ;
9
8
import org .osbot .rs07 .script .MethodProvider ;
10
- import org .osbot .rs07 .utility .Condition ;
11
9
import utils .Sleep ;
12
10
13
11
import java .util .Arrays ;
@@ -78,7 +76,7 @@ public final void onLoop() throws InterruptedException {
78
76
Optional <RS2Widget > daggerWidgetOpt = getDaggerWidget ();
79
77
if (daggerWidgetOpt .isPresent ()) {
80
78
if (daggerWidgetOpt .get ().interact ()) {
81
- Sleep .sleepUntil (() -> getInventory ().contains ("Bronze dagger" ), 6000 ,500 );
79
+ Sleep .sleepUntil (() -> getInventory ().contains ("Bronze dagger" ), 6000 , 600 );
82
80
}
83
81
} else {
84
82
smith ();
@@ -87,7 +85,7 @@ public final void onLoop() throws InterruptedException {
87
85
case 360 :
88
86
if (getWalking ().walkPath (PATH_TO_GATE )) {
89
87
if (getDoorHandler ().handleNextObstacle (new Position (3096 , 9503 , 0 ))) {
90
- Sleep .sleepUntil (() -> getProgress () != 360 , 5000 ,500 );
88
+ Sleep .sleepUntil (() -> getProgress () != 360 , 5000 , 600 );
91
89
}
92
90
}
93
91
break ;
@@ -100,7 +98,7 @@ private void smith() {
100
98
} else if (!"Bronze bar" .equals (getInventory ().getSelectedItemName ())) {
101
99
getInventory ().getItem ("Bronze bar" ).interact ("Use" );
102
100
} else if (getObjects ().closest ("Anvil" ).interact ("Use" )) {
103
- Sleep .sleepUntil (() -> getDaggerWidget ().isPresent (), 5000 ,500 );
101
+ Sleep .sleepUntil (() -> getDaggerWidget ().isPresent (), 5000 , 600 );
104
102
}
105
103
}
106
104
@@ -116,21 +114,21 @@ private void smelt() {
116
114
if (!"Tin ore" .equals (getInventory ().getSelectedItemName ())) {
117
115
getInventory ().getItem ("Tin ore" ).interact ("Use" );
118
116
} else if (getObjects ().closest ("Furnace" ).interact ("Use" )) {
119
- Sleep .sleepUntil (() -> getInventory ().contains ("Bronze bar" ), 5000 ,500 );
117
+ Sleep .sleepUntil (() -> getInventory ().contains ("Bronze bar" ), 5000 , 600 );
120
118
}
121
119
}
122
120
123
121
private void prospect (Rock rock ) {
124
122
RS2Object closestRock = rock .getClosestWithOre (getBot ().getMethods ());
125
123
if (closestRock != null && closestRock .interact ("Prospect" )) {
126
- Sleep .sleepUntil (this ::pendingContinue , 6000 ,500 );
124
+ Sleep .sleepUntil (this ::pendingContinue , 6000 , 600 );
127
125
}
128
126
}
129
127
130
128
private void mine (Rock rock ) {
131
129
RS2Object closestRock = rock .getClosestWithOre (getBot ().getMethods ());
132
130
if (closestRock != null && closestRock .interact ("Mine" )) {
133
- Sleep .sleepUntil (this ::pendingContinue , 6000 ,500 );
131
+ Sleep .sleepUntil (this ::pendingContinue , 6000 , 600 );
134
132
}
135
133
}
136
134
}
0 commit comments