package parachute.scripts.pwoodcutter.strategies;

import org.parabot.environment.api.utils.Time;
import org.parabot.environment.scripts.framework.Strategy;
import org.rev317.min.api.methods.Bank;
import org.rev317.min.api.methods.Inventory;

import parachute.scripts.pwoodcutter.main.Boot;
import parachute.scripts.pwoodcutter.main.Data;

public class BankEvent implements Strategy {

	@Override
	public boolean activate() {
		return Data.bankRegionDraynor.isInRegion() && Boot.Method == "Banking" && Inventory.isFull();
	}

	@Override
	public void execute() {
		if (Bank.isOpen()) {
			Bank.depositAllExcept(Data.hatchetsid);
		} else {
			Bank.open();
		}
		Time.sleep(1500);
	}

}

@@ -433,17 +433,23 @@
 rn Data.
-b
+chosenB
 ankRegio
@@ -453,15 +453,8 @@
 gion
-Draynor
 .isI
@@ -466,20 +466,20 @@
 on() && 
-Boot
+Data
 .Method 
@@ -620,16 +620,53 @@
 etsid);%0A
+%09%09%09Time.sleep(100);%0A%09%09%09Bank.close();%0A
 %09%09%7D else
@@ -711,11 +711,10 @@
 00);%0A%09%7D%0A
-%0A
 %7D%0A

Update BankEvent.java