mirror of
https://github.com/2006Scape-Scripts/ParaScript.git
synced 2026-07-03 00:38:36 +00:00
Add check for user logged in while walking
This commit is contained in:
@@ -22,11 +22,13 @@ public class Bank implements Strategy {
|
||||
Variables.pathToWalk = new TilePath(Variables.VARROCK_EAST_MINE_PATH_TO_BANK);
|
||||
Variables.setStatus("banking items");
|
||||
while (Variables.pathToWalk != null && !Variables.pathToWalk.hasReached()) {
|
||||
if (!Game.isLoggedIn()) new HandleLogin().execute();
|
||||
Variables.pathToWalk.traverse();
|
||||
Time.sleep(2000, 3000);
|
||||
}
|
||||
depositItems();
|
||||
}
|
||||
|
||||
public void depositItems() {
|
||||
Npc banker[] = Npcs.getNearest(494);
|
||||
|
||||
|
||||
@@ -24,6 +24,7 @@ public class Walk implements Strategy {
|
||||
Variables.pathToWalk = new TilePath(Variables.VARROCK_EAST_BANK_PATH_TO_MINE);
|
||||
//Variables.setBotStatus("walking to " + Variables.getTree().getName());
|
||||
while (Variables.pathToWalk != null && !Variables.pathToWalk.hasReached()) {
|
||||
if (!Game.isLoggedIn()) new HandleLogin().execute();
|
||||
Variables.pathToWalk.traverse();
|
||||
Time.sleep(2000, 3000);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user