mirror of
https://github.com/2006Scape-Scripts/ParaScript.git
synced 2026-12-05 19:01:55 +00:00
Check is script should be paused before starting
This commit is contained in:
1 parent
dc2f62ae24
commit
60ae2c1be0
2 files changed
+4
-2
No files matched your search
@@ -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