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 on another Z plane

Featured Replies

Hey all, currently debugging some Area code.

	Position[] possArr = {new Position(x1, y1, 1), new Position(x2, y2, 1) etc ...};	
	Area areaPoly = new Area(posArr);

	@Override
	public void onPaint(Graphics2D g) {
		List<Position> posList = areaPoly.getPositions();
		g.setColor(Color.BLACK);
		
		boolean bool = areaPoly.contains(myPlayer());
		
		g.drawString(Boolean.toString(bool), 10, 20);
		
		for (Position pos : posList) {
			g.draw(pos.getPolygon(getBot()));
		}
		
	}

The area is being drawn but on the z=0 plane. My boolean displays true on the 0 plane, but false on same spot on the 1 plane.

Any workarounds?

Edited by Athylus

show line where you initialize your Area

Position[] areaPoly = {new Position(x1, y1, 1), new Position(x2, y2, 1) etc ...};

^not this thingy

by default, z coordinate is set to 0

have u tried areaPoly.setPlane(1) then painting it

  • Author

Setplane is working, thanks! I thought that setting that Z coordinate would be enough. Great!

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.