import impsoft.nexus.bots.color.methods.*; import impsoft.nexus.bots.color.constants.Info; import impsoft.nexus.bots.color.methods.ColorScript; import impsoft.nexus.bots.color.scriptobjects.RGBCluster; import impsoft.nexus.bots.color.scriptobjects.*; import impsoft.nexus.bots.reflection.scriptobjects.walking.AryanPath; import impsoft.nexus.bots.reflection.scriptobjects.walking.AryanTile; public class EdgevilleYew extends ColorScript { public static double version = 1.0; public static String[] commands = new String[] {""}; public String author = "Beezkneez"; public String description = "Edgeville Yew Cutter v1.0"; private AryanTile bank = new AryanTile(3093, 3491, 0, this); private AryanTile half = new AryanTile(3093, 3477, 0, this); private AryanTile door1 = new AryanTile(3093, 3470, 0, this); private AryanTile tree1cord = new AryanTile(3086, 3479, 0, this); private AryanTile tree2cord = new AryanTile(3088, 3470, 0, this); private AryanTile door2 = new AryanTile(3090, 3470, 2, this); AryanPath toTrees = new AryanPath(new AryanTile[] {bank, half, door1, tree1cord},this); int check, logs, atTree1, atTree2; public boolean doStart(String cmd, String[] args) throws InterruptedException { return true; } private boolean chopTree() { RGBCluster tree1 = new RGBCluster(new RGB[]{new RGB(40, 48, 26)}, this); RGBCluster tree2 = new RGBCluster(new RGB[]{new RGB(72, 72, 29)}, this); // FILL IN HERE } private boolean inCombat() { return false; //FILL IN HERE } private void bank() { //fill in here } public void script() throws InterruptedException { log("Starting script..."); while(true){ if (!isLoggedIn()) { log ("Login"); sleep(5000); } if (inventoryCount() == 28) bank(); while (inventoryCount() < 28) { //has room for more trees if (chopTree()) { do { sleep(500); // if (inCombat()) // runAway(); } while (matching(getColor(treeXY.x, treeXY.y), new RGB(40, 48, 26), 5, 5, 5)); } } } } private XY treeXY; }