rendered paste bodyimport impsoft.nexus.bots.color.structures.RGB;
import impsoft.nexus.bots.color.ColorBot;
import impsoft.nexus.bots.color.scriptable.ColorScript;
import
impsoft.nexus.bots.color.scriptable.interfaces.AutoPaint;
import
impsoft.nexus.bots.color.scriptable.interfaces.ChatListene
r;
import
impsoft.nexus.bots.color.scriptable.components.tab.*;
import
impsoft.nexus.bots.color.scriptable.objects.EdgeRGBCluster
;
import impsoft.nexus.bots.color.util.Timer;
import impsoft.nexus.bots.reflection.structures.AryanTile;
import java.awt.*;
public class willowlongbowfletcher extends ColorScript {
public willowlongbowfletcher(ColorBot b) {
super(b);
}
public static double version = 2;
public static String author = "S R 24";
public static String description = "Start at
Draynor Bank";
public String StatusTop = "Starting Script...";
// public String StatusTop = "Banking...";
// public String StatusTop = "Withdrawing Logs";
// public String StatusTop = "Fletching Logs";
public boolean SandBitch = false;
public boolean Dead = false;
public int Bowscut = 0;
public String Status = "idle...";
Timer startTime = new Timer(0L);
AryanTile Pspot = new AryanTile(3092, 3242 );
public void script() throws InterruptedException {
StatusTop = "Starting all randoms";
startAllRandoms();
theTabs.Options.setRun(true);
while (true) {
if
(getLocation().distanceTo(Pspot) < 10) {
} else {
theWorldMap.walkTo(Pspot);
}
}
}
public void chat(String chat) throws
InterruptedException {
if (chat.contains("strange place")) {
SandBitch = true;
}
if (chat.contains("are dead")) {
Dead = true;
}
}
public void sandBitch() throws
InterruptedException {
StatusTop = "Stupid Bitch.... Going
back.";
theTabs.Magic.selectSpell(MagicTab.HOME_TELE);
sleep(random(15000, 20000));
theWorldMap.walkTo(Pspot);
SandBitch = false;
}
public void DeadWalk() throws InterruptedException
{
if (Dead == true) {
StatusTop = "Died... Walking back
to Bank.";
theWorldMap.walkTo(Pspot);
Dead = false;
}
}
public void click() throws InterruptedException {
StatusTop = "Fletching Logs";
Rectangle Longbow = new Rectangle(215,
385, 84, 42);
theTabs.Inventory.doAction("nife", "se",1,
false);
sleep(random(1500, 2500));
theTabs.Inventory.doAction("ogs", "Use",1,
false);
sleep(random(1500, 2500));
mouseClickRight(Longbow);
sleep(random(1500, 3000));
theMenuFinder.doMenu("Make 50");
CheckIfMade();
}
public void CheckIfMade() throws
InterruptedException {
while (SandBitch == false && Dead ==
false) {
while
(theTabs.InventoryV3.count("Willow longbow") < 27) {
log("Still working...");
sleep(1500);
}
log("Done, banking!");
bankstuff();
}
if (SandBitch == true) {
sandBitch();
}
if (Dead == true) {
DeadWalk();
}
}
public void bankstuff() throws
InterruptedException {
StatusTop = "Banking...";
//theWorldMap.walkTo(Pspot); *took out to
fix banking errors
theBankV3.doDepositAllBut(new String[] {
"knife" });
//theWorldMap.walkTo(Pspot); *took out to
fix banking errors
theBankV3.doWithDrawAll("Willow logs",
true);
click();
}
}