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.

interaction with object using position

Featured Replies

for example,

there are multiple objects with the same id in a certain location. But I only want to interact with the object that has a specific position x,y,z. What code could i use for this?

 

Because it will automatically interact with all he objects... something i dont want :(

for example,

there are multiple objects with the same id in a certain location. But I only want to interact with the object that has a specific position x,y,z. What code could i use for this?

 

Because it will automatically interact with all he objects... something i dont want sad.png

 

 

here:

getObjects().closest(new Filter<RS2Object>() {
        @Override
	public boolean match(RS2Object o) {
	      if(o != null && o.getName().equals("NAME HERE") && o.getPosition().equals(new Position(X,Y,Z)))
	            return true;
	      return false;
	}
});

This <3

here:

getObjects().closest(new Filter<RS2Object>() {
        @Override
	public boolean match(RS2Object o) {
	      if(o != null && o.getName().equals("NAME HERE") && o.getPosition().equals(new Position(X,Y,Z)))
	            return true;
	      return false;
	}
});
Why don't you just use the position filter that is now in the api?

Why don't you just use the position filter that is now in the api?

if i knew about it, i would utilise it ;) 

Why don't you just use the position filter that is now in the api?

 

Since Osbot api breaks every time now and then, I prefer you to use custom make mehods ;)

and there are way too many option too choose from in the API xD

 

They should delete atleast 50% and fix the rest what is left.

 

Thats why 

 

Khaleesi

Since Osbot api breaks every time now and then, I prefer you to use custom make mehods wink.png

and there are way too many option too choose from in the API xD

 

They should delete atleast 50% and fix the rest what is left.

 

Thats why 

 

Khaleesi

 

its a simple interface. Interfaces dont break. What break more are like methods.

Yes way to many option but its better then before with have almost no option.

its a simple interface. Interfaces dont break. What break more are like methods.

Yes way to many option but its better then before with have almost no option.

 

Basic options + Fitler would be more then enough.

Instead they gave the scripters 50 options -_-

 

i've a lot breaking and failing -_-

rather make all myself <3

  • Author

could u guys pls give an example on how to use the PositionFilter?

could u guys pls give an example on how to use the PositionFilter?

 

Entity door = objects.closest(new Area(3207,3214,3208,3214),"Door");

This will interact with the door at those certain points and only that door.

 

http://osbot.org/api/org/osbot/rs07/api/filter/PositionFilter.html

getObjects().closest(new PositionFilter<RS2Object>(new Position(0,0,0)));

 

could u guys pls give an example on how to use the PositionFilter?

 if not use this one same shit 

 

 

 

here:

getObjects().closest(new Filter<RS2Object>() {
        @Override
	public boolean match(RS2Object o) {
	      if(o != null && o.getName().equals("NAME HERE") && o.getPosition().equals(new Position(X,Y,Z)))
	            return true;
	      return false;
	}
});

 

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.