Jump to content
View in the app

A better way to browse. Learn more.

OSBot :: 2007 OSRS Botting

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

How to handle trees that grab you?

Featured Replies

I kind of assumed it would be handled in the webwalking since it's so fancy. However, if you walk by draynor, and it runs into one of the tree npcs, it will literally just kill you in that spot over and over. Anyone have a workaround?

create your own solution to handle the obstacle? 

 

add it into the break condition if the tree is X distance away and handle it yourself 

fail safe if ur hp bar is visable run away to square ... , ... 

fail safe if ur hp bar is visable run away to square ... , ... 

 

hmm if he is around that area, what if he is attacked by the guards on the way?

isUnderAttack
public boolean isUnderAttack()
Whether the character is under attack.
Returns:
True if the hitbar is not visible OR the hitbar is visible and this character is interacting with another character.

hmm if he is around that area, what if he is attacked by the guards on the way?

u can add a area to it, using explv tool: http://explv.github.io/

isUnderAttack
public boolean isUnderAttack()
Whether the character is under attack.
Returns:
True if the hitbar is not visible OR the hitbar is visible and this character is interacting with another character.

u can add a area to it, using explv tool: http://explv.github.io/

 

 

Just check for that darn tree haha

Just check for that darn tree haha

there a few of them so better to just add the whole draynor manor area

there a few of them so better to just add the whole draynor manor area

 

In general i personally don't recommend walking to current location + x because it will not work with WalkingEvent if the tile is not walkable which can be the case because you base it on current location + x

 

Just my two cents

  • Author

In general i personally don't recommend walking to current location + x because it will not work with WalkingEvent if the tile is not walkable which can be the case because you base it on current location + x

 

Just my two cents

exactly where im currently at lol

what im thinking:

if tree is north - walk west/east

if tree is west/east walk north

just figured someone had already written the code ;)

Edited by dmm_slaver

  • Author

create your own solution to handle the obstacle? 

 

add it into the break condition if the tree is X distance away and handle it yourself 

How to add it into the break condition so it stops the webwalk?

  • Author

hmm maybe i am using it incorrectly

 

 

[iNFO][bot #1][11/27 11:47:10 AM]: java.lang.NullPointerException

at org.osbot.rs07.event.WebWalkEvent.execute(ji:29)
at SharkMuler.onLoop(SharkMuler.java:134)
at org.osbot.rs07.event.ScriptExecutor$InternalExecutor.run(mh:48)
at java.lang.Thread.run(Thread.java:745)
 

 

WebWalkEvent ev = new WebWalkEvent(edgeLever);
                        ev.setBreakCondition(new Condition() {
                            @[member=Override]
                            public boolean evaluate() {
                                return myPlayer().isHitBarVisible();
                            }
                        });
                        ev.execute();

at SharkMuler.onLoop(SharkMuler.java:134)

is 

 

ev.execute();

 

hmm maybe i am using it incorrectly

 

WebWalkEvent ev = new WebWalkEvent(edgeLever);
                        ev.setBreakCondition(new Condition() {
                            @[member='Override']
                            public boolean evaluate() {
                                return myPlayer().isHitBarVisible();
                            }
                        });
                        ev.execute();

at SharkMuler.onLoop(SharkMuler.java:134)

is 

 

ev.execute();

execute(ev);

  • Author

execute(ev);

 Okay I am more confused now. It seems to be working, slightly. 

 

                        WebWalkEvent ev = new WebWalkEvent(edgeLever);
                        ev.setBreakCondition(new Condition() {
                            @[member=Override]
                            public boolean evaluate() {
                                log("Check");
                                return myPlayer().isHitBarVisible();
                            }
                        });
                        execute(ev);

when im walking normally, it says "check" every couple of steps. However, it seems to only check while i am moving. So if I get stuck behind the tree, and it's smacking me for 3 damage every tick, its just sitting there, and its not saying "check" at all until i pause the bot and move manually or it dies. 

 Okay I am more confused now. It seems to be working, slightly. 

 

                        WebWalkEvent ev = new WebWalkEvent(edgeLever);
                        ev.setBreakCondition(new Condition() {
                            @[member='Override']
                            public boolean evaluate() {
                                log("Check");
                                return myPlayer().isHitBarVisible();
                            }
                        });
                        execute(ev);

when im walking normally, it says "check" every couple of steps. However, it seems to only check while i am moving. So if I get stuck behind the tree, and it's smacking me for 3 damage every tick, its just sitting there, and its not saying "check" at all until i pause the bot and move manually or it dies. 

Add me on skype.

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.