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.

Help!

Featured Replies

how to make polygon near a tree or object

something like this or like alek's woodcutter which has a square over the tree

 

anyone have the code for it ?

 

RV1PKor.png

Edited by The King

get the position of the tree, make an instance of minimaptileDestination using that position and draw the destination :)

 

how to make polygon near a tree or object

something like this or like alek's woodcutter which has a square over the tree

anyone have the code for it ?

RV1PKor.png

Something like:

graphics.drawPolygon(treePosition.getPolygon(getBot()))

Edited by Explv

I tried making a polygon on the tree with the tree pos but it wasn't accurate and didnt cover/wrap the tree so if you want to do a bounding box or something instead it'd be something like

 
titan.draw(treevariable.getModel().getBoundingBox(treevariable.getGridX(), treevariable.getGridY(), treevariable.getZ()));
 

where titan. is my onPaint reference e.g (Graphics2D titan)

treevariable is your tree variable you get the gist 

I tried mate, sorry feels.png

 

if you do however want to still try the polygon stuff it's 

 

titan.draw(treevariable.getPosition().getPolygon(getBot()));

Edited by Saiyan

From Alek's woodcutter (pieced together):

 

GraphicUtilities.getModelBoundingBox(bot, o.getGridX(), o.getGridY(), o.getZ(), o.getModel());
g.drawRect(rectangle.x, rectangle.y, rectangle.width, rectangle.height);

 

  • Author

I tried making a polygon on the tree with the tree pos but it wasn't accurate and didnt cover/wrap the tree so if you want to do a bounding box or something instead it'd be something like

 
titan.draw(treevariable.getModel().getBoundingBox(treevariable.getGridX(), treevariable.getGridY(), treevariable.getZ()));
 

where titan. is my onPaint reference e.g (Graphics2D titan)

treevariable is your tree variable you get the gist 

I tried mate, sorry feels.png

 

if you do however want to still try the polygon stuff it's 

 

titan.draw(treevariable.getPosition().getPolygon(getBot()));

 

Thanks bro it works smile.png

 

From Alek's woodcutter (pieced together):

 

GraphicUtilities.getModelBoundingBox(bot, o.getGridX(), o.getGridY(), o.getZ(), o.getModel());
g.drawRect(rectangle.x, rectangle.y, rectangle.width, rectangle.height);

 

 

Bro thanks for that but it didn't work with me

correct me if i am wrong, 2d graphics is not working in the tree we need 3d.

Edited by The King

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.