package parachute.scripts.pwoodcutter.strategies;

import org.parabot.environment.api.utils.Time;
import org.parabot.environment.input.Mouse;
import org.parabot.environment.scripts.framework.Strategy;
import org.rev317.min.api.methods.Bank;
import org.rev317.min.api.methods.Inventory;
import org.rev317.min.api.methods.Menu;
import org.rev317.min.api.methods.Players;
import org.rev317.min.callback.MenuAction;

import parachute.scripts.pwoodcutter.main.Data;

public class TeleEvent implements Strategy {

	@Override
	public boolean activate() {
		return !Data.chosenRegion.isInRegion() && !Inventory.isFull() && !Bank.isOpen();
	}

	@Override
	public void execute() {
		if (Data.Location == "VEOaks") {
			Mouse.getInstance().click(740, 185, true);
			Time.sleep(1000);
			Mouse.getInstance().click(568, 357, true);
			Time.sleep(1000);
			Mouse.getInstance().click(265, 384, true);
			Time.sleep(1000);
			Mouse.getInstance().click(265, 384, true);
			Time.sleep(3000);
		}
		if (Data.Location == "DWillows") {
			Mouse.getInstance().click(740, 185, true);
			Time.sleep(1000);
			Mouse.getInstance().click(568, 357, true);
			Time.sleep(1000);
			Mouse.getInstance().click(265, 384, true);
			Time.sleep(1000);
			Mouse.getInstance().click(265, 401, true);
			Time.sleep(3000);
		}
	}
}

@@ -1280,13 +1280,319 @@
 0);%0A%09%09%7D%0A
+%09%09if (Data.Location == %22SYews%22) %7B%0A%09%09%09Mouse.getInstance().click(740, 185, true);%0A%09%09%09Time.sleep(1000);%0A%09%09%09Mouse.getInstance().click(568, 357, true);%0A%09%09%09Time.sleep(1000);%0A%09%09%09Mouse.getInstance().click(265, 384, true);%0A%09%09%09Time.sleep(1000);%0A%09%09%09Mouse.getInstance().click(260, 414, true);%0A%09%09%09Time.sleep(3000);%0A%09%09%7D%0A
 %09%7D%0A%7D%0A

Update TeleEvent.java