Vilius Posted September 15, 2015 Share Posted September 15, 2015 (edited) WALK_TO_BANK("WalkToBank") { @Override public boolean canProcess(main script) { boolean inAreaPickup = !script.BANKZONE.contains(script.myPlayer().getPosition()) && script.inventory.isFull(); return inAreaPickup; } @Override public void process(main script) { if(!script.myPlayer().isMoving()){ script.getLocalWalker().walk(3183, 3437); } } }, i'm not sure whats happening, tried everything checked if everything is starting doing its things. But when inventory is full and its not in bankzone it doesn't walk to the bank. Even when inAreaPickup is true. Maybe something is wrong with LocalWalker? Even the almighty fixthissite doesn't know whats happening. Edited September 15, 2015 by Viliuks Quote Link to comment Share on other sites More sharing options...
Muffins Posted September 15, 2015 Share Posted September 15, 2015 Doesn't localwalker have to be onscreen for it to walk to the specific tile? Quote Link to comment Share on other sites More sharing options...
Vilius Posted September 15, 2015 Author Share Posted September 15, 2015 Doesn't localwalker have to be onscreen for it to walk to the specific tile? Well its walking to the fish zone when its not on screen. Quote Link to comment Share on other sites More sharing options...
Flamezzz Posted September 15, 2015 Share Posted September 15, 2015 log to make sure it executes and log the return value of localWalker.walk 1 Quote Link to comment Share on other sites More sharing options...
Vilius Posted September 15, 2015 Author Share Posted September 15, 2015 log to make sure it executes and log the return value of localWalker.walk I tried logging everything, but don't seem to understand what do you want me to log with localwalker? WALK_TO_FISH("WalkToFish") { @Override public boolean canProcess(main script) { boolean inArea = script.ZONE.contains(script.myPlayer().getPosition()); return !inArea; } @Override public void process(main script) { if(!script.myPlayer().isMoving()){ script.getLocalWalker().walk(3109, 3433); } } }, This is how my walk to fish code looks like, it works. It goes where I want it to go Quote Link to comment Share on other sites More sharing options...
fixthissite Posted September 15, 2015 Share Posted September 15, 2015 (edited) In detail, he has 2 different walking states: WALK_TO_SPOT and WALK_TO_BANK. He is using the same method for spot as he is for bank. It walks to spot, but it will not walk to bank, although WALK_TO_BANK is the current state and canProcess returns true. Edited September 15, 2015 by fixthissite 1 Quote Link to comment Share on other sites More sharing options...
Flamezzz Posted September 15, 2015 Share Posted September 15, 2015 There's like a 80 tile difference so you should create a path, localwalker can't walk outside of the loaded region. 1 Quote Link to comment Share on other sites More sharing options...