Public feed
#600063
public void doBarbarianFishing() throws InterruptedException {
while (Alive()) {
if (theTabs.InventoryV3.isFull() || !hasItem("rod") || !hasItem("feather")
|| theHPBars.failSafeInCombat()) {
new AryanPath(draynorBank, this).walkToEnd();
boolean hasRod = hasItem("rod");
boolean hasFeathers = hasItem("feather");
while (!theBank.isInterfaceIsUp()) {
RGB[] bankRGBs = new RGB[] { new RGB(88, 80, 77),
new RGB(81, 61, 9), new RGB(91, 67, 9),
new RGB(137, 132, 137) };
theSimpleRGBCluster.doActionAtRGBCluster(bankRGBs, "use",
"quickly");
sleep(random(1000, 1500));
if (!theBank.isInterfaceIsUp())
sleep(random(4000, 6000));
else
break;
}
if(!hasRod) {
theTabs.InventoryV3.doAction("", "store all", 28, true);
theBankV3.doWithDraw1("rod", true);
}else
if(!hasFeathers) {
theBankV3.doDepositAllBut(new String[] {"rod"});
theBankV3.doWithDraw10("feathers", true);
}else
theBankV3.doDepositAllBut(new String[] {"rod", "feathers"});
} else {
XY tempXY = fishSpotCluster.doTopTextAndMenu("rod", "rod");
if (tempXY != null) {
amFishing = true;
int inventoryCount = theTabs.Inventory.getCount();
Timer inventoryTimer = new Timer(0);
while (amFishing) {
if (theTabs.Inventory.getCount() > inventoryCount) {
inventoryCount = theTabs.Inventory.getCount();
inventoryTimer.reset();
}
if (inventoryTimer.timePassed() > 5000)
break;
if (theTabs.InventoryV3.isFull())
break;
}
amFishing = false;
}
}
sleep(100);
}
}