whipz Posted March 6, 2017 Posted March 6, 2017 hey guys, I have been trying to get web walking to work with teleports and amulets to save me time making my own paths and interactions for heaps of walking; I swear i saw someone say that web walking does that automatically; So my question is, how exactly do I get it to do that ? Do i just have the items in inventory or equipped (when its an amulet or ring) ? Thanks for any help !
k9thebeast Posted March 6, 2017 Posted March 6, 2017 I've heard you need to configure something in webwalk settings, but will leave it to someone more experienced to answer 1
whipz Posted March 6, 2017 Author Posted March 6, 2017 1 minute ago, Chris said: use WebWalkEvent and PathPreferenceProfile Does this also work with equipment eg. amulets and rings ?
whipz Posted March 6, 2017 Author Posted March 6, 2017 WebWalkEvent event = new WebWalkEvent(Area2); event.setPathPreferenceProfile(PathPreferenceProfile.DEFAULT.setAllowTeleports(true)); event.getWalking().webWalk(Area2); i suppose going to test if it uses amulets and stuff; @Chris does this look right ?
whipz Posted March 6, 2017 Author Posted March 6, 2017 Doesnt seem to work just sits there spamming magic tab and opening inventory tab ):
Chris Posted March 6, 2017 Posted March 6, 2017 something like this public void webToDestination(Position destination){ //log("Walking to " + destination); WebWalkEvent event = new WebWalkEvent(destination); PathPreferenceProfile ppp = new PathPreferenceProfile(); ppp.setAllowTeleports(true); event.setPathPreferenceProfile(ppp); event.prefetchRequirements(getBot().getMethods()); execute(event); }