mirror of
https://github.com/2006Scape-Scripts/ParaScript.git
synced 2026-07-02 16:49:02 +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
|
||||
public boolean activate() {
|
||||
return Game.isLoggedIn()
|
||||
return Variables.running
|
||||
&& Game.isLoggedIn()
|
||||
&& (Variables.getStatus() == "none" || Variables.getStatus() == "banking items")
|
||||
&& Inventory.isFull();
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user