September 15, 201510 yr 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, 201510 yr by Viliuks
September 15, 201510 yr Author 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.
September 15, 201510 yr Author 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
September 15, 201510 yr 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, 201510 yr by fixthissite
September 15, 201510 yr There's like a 80 tile difference so you should create a path, localwalker can't walk outside of the loaded region.
Create an account or sign in to comment