January 27, 20179 yr Pretty much explains for itself, probably missed something easy but whatever. https://i.gyazo.com/0a7eda278dde65adb81946e74c60d26b.mp4 my code: So basically it walks down and starts walking to giantarea, but then suddenly starts climbing up (though i dont have any climb up code added yet???) Shit logic i know @Override public int onLoop() throws InterruptedException{ if(getInventory().contains("Trout")) { getWalking().webWalk(doorArea); } if(doorArea.contains(myPosition()) && !ladderAreaUp.contains(myPosition())) { Entity door = objects.closest("Door"); if (door.hasAction("Open")) { door.interact("Open"); sleep(3000); } } if(ladderAreaUp.contains(myPosition()) && !doorArea.contains(myPosition())) { Entity ladder = objects.closest("ladder"); if (ladder.hasAction("Climb-down")) { ladder.interact("Climb-down"); sleep(3000); } } if(ladderAreaDown.contains(myPosition())) { getWalking().webWalk(giantArea); } { } return random(500,1000); } Edited January 27, 20179 yr by atoo
January 27, 20179 yr if(getInventory().contains("Trout")) { getWalking().webWalk(doorArea); } That portion of code is checked constantly, and since you have Trout in the inventory obviously, it webWalks walks back to the 'giantarea'. webWalk handles ladders I'm pretty sure. EDIT: You might want to nest multiple If functions if you do indeed need to get through the door yourself; so like: If !giantArea.contains(myPlayer) && !doorArea.Contains(myPlayer) && getInventory.contains("Trout") { ... } so that once you're in the dungeon, it doesn't walk out immediately. There's cleaner/better logic but I'm studying for an exam right now and cba to write it out; I'm sure you can get it though! Edited January 28, 20179 yr by Magarac
January 28, 20179 yr Cant you use web walk to just walk straight to hill giants ? and if its the one near varrock (if it does walk there) youd only need to make sure the invent contained the key;
January 28, 20179 yr Author Thanks for both replies, didnt know webwalk did everything for me. Thanks guys!