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.RGB; import impsoft.nexus.bots.reflection.scriptobjects.walking.AryanPath; import impsoft.nexus.bots.reflection.scriptobjects.walking.AryanTile; public class edgevilleyewcutter 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); RGB tree1; RGB tree2; int check, logs, atTree1, atTree2; private long rsleep(int min, int max) throws InterruptedException { long time = random(min, max); sleep(time); return time; } public boolean doStart(String cmd, String[] args) throws InterruptedException { return true; } public void script() throws InterruptedException { log("Starting script..."); setTab(Info.TAB_INVENTORY); while(isLoggedIn()){ RGBCluster tree1 = new RGBCluster(new RGB[]{new RGB(40, 48, 26)}, this); RGBCluster tree2 = new RGBCluster(new RGB[]{new RGB(72, 72, 29)}, this); toTrees.walkToEndTile(); sleep(500); atTree1 = (atTree1 + 1); sleep(10000); if(((tree1.doTopTextAndMenu("Yew", "Chop") == false)&&(atTree1 == 1)&&(atTree2 == 0))){ tree2cord.walkTo(); atTree2 = (atTree2 + 1); atTree1 = (atTree1 - 1); tree2.gatherNewPoints(20); tree2.doTopTextAndMenu("Yew", "Chop"); sleep(10000); if(((tree1.doTopTextAndMenu("Yew", "Chop") == false)&&(atTree2 == 1)&&(atTree1 == 0))){ tree1cord.walkTo(); atTree2 = (atTree1 + 1); atTree1 = (atTree2 - 1); tree2.gatherNewPoints(20); tree2.doTopTextAndMenu("Yew", "Chop"); } }else{ tree1.gatherNewPoints(20); tree1.doTopTextAndMenu("Yew", "Chop"); } } } }