All pastes #803842 Raw Edit

Miscellany

public javascript v1 · immutable
·published 2007-12-02 17:51 UTC
rendered paste body
public void ChopWillows() throws InterruptedException {        while (Fight() == false && EntDetection() == false && NeedToBank() == false) {            getAxeCount();            status = "Cutting Wood";            FailSafe();            theWillow.setSortingFromCenter(true);            theWillow.doTopText("Chop down wil");            EntDetection();            log("Choping Willows.");            sleep(random(5000, 8000));            CheckLocation();            while(getAnimation() == 867){                sleep(1000);            }            if (Fight() == true) {                theTabs.Options.setRun(true);                theWorldMap.walkTo(RunAwayZone);                sleep(random(3000, 5000));                theWorldMap.walkTo(TreeTile);                if(autoCut == true) {                    treeCheck();                } else {                    ChopWillows();                }            }            if (EntDetection() == true) {                log("Ent! Running away");                theWorldMap.walkTo(RunAwayZone);                sleep(random(10000, 15000));                theWorldMap.walkTo(TreeTile);                EntDetected++;                ChopWillows();            }            if (NeedToBank() == true) {                Bank();            }        }    }