Skip 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.

Area class (with plane)

Featured Replies

the osbot 2 area class does not support planes, so i made my own

package data;

import org.osbot.rs07.api.map.Position;
import org.osbot.rs07.api.model.Entity;
import org.osbot.rs07.utility.Area;

public class RS2Area {

	public final Area area;
	public final int plane;
	
	public RS2Area(Area area, int plane) {
		this.area = area;
		this.plane = plane;
	}
	
	public boolean contains(Position pos) {
		return area.contains(pos) && pos.getZ() == plane;
	}
	
	public boolean contains(Entity entity) {
		return area.contains(entity) && entity.getPosition().getZ() == plane;
	}
	
}

 

the osbot 2 area class does not support planes, so i made my own

package data;

import org.osbot.rs07.api.map.Position;
import org.osbot.rs07.api.model.Entity;
import org.osbot.rs07.utility.Area;

public class RS2Area {

	public final Area area;
	public final int plane;
	
	public RS2Area(Area area, int plane) {
		this.area = area;
		this.plane = plane;
	}
	
	public boolean contains(Position pos) {
		return area.contains(pos) && pos.getZ() == plane;
	}
	
	public boolean contains(Entity entity) {
		return area.contains(entity) && entity.getPosition().getZ() == plane;
	}
	
}

 

 

Yea why areas dont have planes in osb api is beyond me. :P

  • 3 weeks later...

i've worked with a few api's now and i found that i've had better success with my scripts when i separated the plane and the area, especially in my rooftop agility script. speaking of rooftop agility, look for the beta release in the near future! i just have to convert it from the api it is currently written for. long live mirror mode!

Edited by shiny greninja

  • Author

i've worked with a few api's now and i found that i've had better success with my scripts when i separated the plane and the area, especially in my rooftop agility script. speaking of rooftop agility, look for the beta release in the near future! i just have to convert it from the api it is currently written for. long live mirror mode!

 

pls

 

78772cc4737f8f817de274fdc61552a9.png

 

all courses supported.  look for release soon

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

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.