Alek Posted December 13, 2016 Share Posted December 13, 2016 I've decided to start cleaning up Web Walking because it was becoming a bit unmanageable with all the devs having a hand in it. The biggest problem was having half-written code which was being used as placers. Anything that was deprecated or removed was not functional at all. Additionally I've added some new methods to give scripters really great control of web walking through PathPreferenceProfile, notably the ignoreItems method. Crappy Example:Scripter doesn't want to bring you through Karamja as a shortcut over a concern of the volcano exploding. Scripter sets to ignore 995 (coins) meaning that if there are coins in your inventory, they will be "ignored" in the path calculation. The web walker will say "oh wow this dude is broke, we can't bring him through Karamja" and find an alternate route. Also I added a sellItem method. Changelog: -Removed Anti-Dragon shield requirement for traversing Brimhaven Dungeon -All skill checks are based on Dynamic level -Added PathPreferenceProfile setAllowObstacles(boolean) -Added PathPreferenceProfile setAllowTeleports(boolean) -Added PathPreferenceProfile ignoreItems(int... ids) -Streamlined a lot of the bloated methods, cleaned up back-end -Improved GrandExchange buyItem -Added GrandExchange sellItem -Deprecated PathPreferenceProfile avoidAllItemLinks -Deprecated PathPreferenceProfile addItemLinksToAvoid -Deprecated PathPreferenceProfile ignoreAllQuestLinks -Deprecated PathPreferenceProfile addQuestLinksToAvoid -Deprecated PathPreferenceProfile addSkillLinksToAvoid Development Download: http://osbot.org/devbuilds/osbot%202.4.103.jar Happy Botting. 15 Link to comment
Jamez Posted December 13, 2016 Share Posted December 13, 2016 (edited) First (Fu @@Mio) , nice update ^_^ Edited December 13, 2016 by Jamez 1 Link to comment
Juggles Posted December 14, 2016 Share Posted December 14, 2016 Thank you for the sellItem method! Link to comment
Satire Posted December 14, 2016 Share Posted December 14, 2016 Added GE sell item. After spending 30mins writing a function......GGWP Link to comment
Lewis Posted December 14, 2016 Share Posted December 14, 2016 now get an error with web walking [ERROR][Bot #1][12/14 03:50:08 PM]: Error executing event : org.osbot.rs07.event.WebWalkEvent@7c327aa java.lang.NullPointerException at org.osbot.rs07.event.WebWalkEvent.execute(ql:271) at org.osbot.rs07.event.EventExecutor$2.run(wh:269) at org.osbot.rs07.event.EventExecutor.execute(wh:120) at org.osbot.rs07.script.MethodProvider.execute(bo:580) at org.osbot.rs07.api.Walking.webWalk(fj:184) at script.onLoop(script.java:311) at org.osbot.rs07.event.ScriptExecutor$InternalExecutor.run(mm:90) at java.lang.Thread.run(Unknown Source) [INFO][Bot #1][12/14 03:50:08 PM]: Walking to shop [ERROR][Bot #1][12/14 03:50:08 PM]: Error on event onStart()! java.lang.NullPointerException at org.osbot.AB.getItems(bh:117) at org.osbot.UB.iiIiIiiiIIIi(ce:24) at org.osbot.ec.iiIiIiiiIIIi(e:48) at org.osbot.lPT7.iiIiIiiiIIIi(wn:1154) at org.osbot.rb.iiIiIiiiIIIi(wf:671) at org.osbot.rb.iiIiIiiiIIIi(wf:9) at org.osbot.W.iiIiIiiiIIIi(k:182) at org.osbot.rs07.event.WebWalkEvent.prefetchRequirements(ql:60) at org.osbot.rs07.event.WebWalkEvent.onStart(ql:260) at org.osbot.rs07.event.EventExecutor$2.run(wh:237) at org.osbot.rs07.event.EventExecutor.execute(wh:120) at org.osbot.rs07.script.MethodProvider.execute(bo:580) at org.osbot.rs07.api.Walking.webWalk(fj:184) at script.onLoop(script.java:311) at org.osbot.rs07.event.ScriptExecutor$InternalExecutor.run(mm:90) at java.lang.Thread.run(Unknown Source) im using this code to call webwalking: getWalking().webWalk(SHOP); or walking.webWalk(SHOP); both get the same errors Link to comment