package parachute.scripts.strategies;

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

public class CommandEvent implements Strategy {

	@Override
	public boolean activate() {
		if (Inventory.isFull()) {
			return true;
		}
		return false;
	}

	@Override
	public void execute() {
		Keyboard.getInstance().sendKeys("::empty");
		Time.sleep(1000, 1500);
	}

}

@@ -19,16 +19,28 @@
 scripts.
+pwoodcutter.
 strategi
@@ -138,16 +138,60 @@
 yboard;%0A
+import org.parabot.environment.input.Mouse;%0A
 import o
@@ -241,16 +241,56 @@
 rategy;%0A
+import org.rev317.min.api.methods.Game;%0A
 import o
@@ -325,16 +325,156 @@
 ventory;
+%0Aimport org.rev317.min.api.methods.Players;%0A%0Aimport parachute.scripts.pwoodcutter.main.Boot;%0Aimport parachute.scripts.pwoodcutter.main.Data;
 %0A%0Apublic
@@ -515,17 +515,16 @@
 ategy %7B%0A
-%0A
 %09@Overri
@@ -561,12 +561,15 @@
 %7B%0A%09%09
-if (
+return 
 Inve
@@ -586,90 +586,333 @@
 ll()
-) %7B%0A%09%09%09return true;%0A%09%09%7D%0A%09%09return false
+ && Boot.Method == %22Empty%22;%0A%09%7D%0A%0A%09@Override%0A%09public void execute() %7B%0A%09%09if (Game.getOpenBackDialogId() == Data.chatboxid) %7B%0A%09%09%09Mouse.getInstance().click(220, 447, true)
 ;%0A
+%09
 %09%7D%0A
-%0A%09@Override%0A%09public void execute(
+%09%09if (Game.getOpenBackDialogId() == Data.chatboxfullid) %7B%0A%09%09%09Mouse.getInstance().click(273, 444, true);%0A%09%09%7D%0A%09%09if (Game.getOpenBackDialogId() == -1
 ) %7B%0A%09%09
+%09
 Keyb
@@ -951,16 +951,20 @@
 mpty%22);%0A
+%09%09%7D%0A
 %09%09Time.s
@@ -981,14 +981,73 @@
  1500);%0A
+%09%09System.out.println(Players.getMyPlayer().getLocation());%0A
 %09%7D%0A%0A%7D%0A

Update CommandEvent.java