Jump to content

OSBot 2.4.103 - More WebWalking and GrandExchange


Alek

Recommended Posts

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
 
 
Happy Botting.
 
  • Like 15
Link to comment

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
Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...