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.

How do I create PolygonArea?

Featured Replies

public PolygonArea test = new PolygonArea();

this is as far as i got. would be really cool to use some polygons instead of the boring old area boxes i'm using right now. also if anyone knows how to detect when the player is stunned (for thieving release) and how to tell which gyr falcon is mine (detecting the yellow arrow above it, for a hunter release)

 

edit: just incase it's unclear i want to add points to make a polygon not just declare it like i've already done.

Edited by shiny greninja

just do

Area area = new Area(new Position[] {add your positions here});

or you can make the position array a variable and do it that way

Edited by Novak

use any of the following parameters:

 

b4828e6997.png

 

So:

 

PolygonArea poly = new PolygonArea(new Position[] {new Position(1,1,0), new Position(1,1,0), new Position(1,1,0)});

 

 

change the positions and add more etc :P

Edited by Precise

  • Author

use any of the following parameters:

 

b4828e6997.png

 

So:

 

PolygonArea poly = new PolygonArea(new Position[] {new Position(1,1,0), new Position(1,1,0), new Position(1,1,0)});

 

 

change the positions and add more etc tongue.png

thanks this is exactly what i was looking for :D i'm still new to osbot's api. it's almost identical to others but some things are done slightly differently. this was one of them. thanks again!

 

just do

Area area = new Area(new Position[] {add your positions here});

or you can make the position array a variable and do it that way

thanks for the fast reply! 2 different reputable responses, now i can't decide which one to use. i could use both since there's 2 different polygons in the location i'm finishing (for dat rooftop script haha)

For stun detection there is probably a config variable. But if you don't want to go into that, you can simply check the height of your players model (the stun particles become part of the player model, I assume).

Something like myPlayer().getModelHeight() > defaultHeight.

 

You'll have to check what the default model height is for your player while it's not stunned. This may differ depending on hair/helm, though.

Alternatively, check the verticecount on the model.

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.