Check is script should be paused before starting

This commit is contained in:
RedSparr0w
2019-10-14 19:01:09 +13:00
parent dc2f62ae24
commit 60ae2c1be0
2 changed files with 4 additions and 2 deletions
+2 -1
View File
@@ -11,7 +11,8 @@ public class Bank implements Strategy {
@Override
public boolean activate() {
return Game.isLoggedIn()
return Variables.running
&& Game.isLoggedIn()
&& (Variables.getStatus() == "none" || Variables.getStatus() == "banking items")
&& Inventory.isFull();
}
+2 -1
View File
@@ -11,7 +11,8 @@ public class Walk implements Strategy {
@Override
public boolean activate() {
return Game.isLoggedIn()
return Variables.running
&& Game.isLoggedIn()
&& (Variables.getStatus() == "none" || Variables.getStatus() == "walking to mine")
&& !Inventory.isFull()
&& Variables.VARROCK_EAST_BANK_ZONE.inTheZone();