mirror of
https://github.com/2006Scape-Scripts/ParaScript.git
synced 2026-07-03 08:39:12 +00:00
Check is script should be paused before starting
This commit is contained in:
@@ -11,7 +11,8 @@ public class Bank implements Strategy {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean activate() {
|
public boolean activate() {
|
||||||
return Game.isLoggedIn()
|
return Variables.running
|
||||||
|
&& Game.isLoggedIn()
|
||||||
&& (Variables.getStatus() == "none" || Variables.getStatus() == "banking items")
|
&& (Variables.getStatus() == "none" || Variables.getStatus() == "banking items")
|
||||||
&& Inventory.isFull();
|
&& Inventory.isFull();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -11,7 +11,8 @@ public class Walk implements Strategy {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean activate() {
|
public boolean activate() {
|
||||||
return Game.isLoggedIn()
|
return Variables.running
|
||||||
|
&& Game.isLoggedIn()
|
||||||
&& (Variables.getStatus() == "none" || Variables.getStatus() == "walking to mine")
|
&& (Variables.getStatus() == "none" || Variables.getStatus() == "walking to mine")
|
||||||
&& !Inventory.isFull()
|
&& !Inventory.isFull()
|
||||||
&& Variables.VARROCK_EAST_BANK_ZONE.inTheZone();
|
&& Variables.VARROCK_EAST_BANK_ZONE.inTheZone();
|
||||||
|
|||||||
Reference in New Issue
Block a user