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.

How to draw my path?

Featured Replies

Hello so i wanted to draw my path for debugging resons  cuz it sometimes doesn't work properly but don't know where to start i know how to draw my current location but how to draw my path?

 

Thanks for help that i will hopefully get :)

Hello so i wanted to draw my path for debugging resons  cuz it sometimes doesn't work properly but don't know where to start i know how to draw my current location but how to draw my path?

 

Thanks for help that i will hopefully get smile.png

 

Use explv location assitant or Divine Utility.

Hello so i wanted to draw my path for debugging resons  cuz it sometimes doesn't work properly but don't know where to start i know how to draw my current location but how to draw my path?

 

Thanks for help that i will hopefully get smile.png

 

You can use "Explv's Location Assistant" in the Other section, and just copy-paste your path, it will show on screen.

  • Author

No no i mean like when im using my own script  i need onPaint method to draw my path to some kind of area or something like that

 

No no i mean like when im using my own script  i need onPaint method to draw my path to some kind of area or something like that

 

Do you mean a predefined path? Or colour all the tiles that your player walks to?

Edited by Explv

Do you mean a predefined path? Or colour all the tiles that your player walks to?

 

Colouring every tile that your player walks to:

private final List<Position> WALKED_POSITIONS = new ArrayList<>();

@Override
public void onPaint(Graphics2D g){

   updateWalkedPositions();
   drawWalkedPositions(g); 
}

private void updateWalkedPositions(){

    if(!WALKED_POSITIONS.contains(myPosition())) WALKED_POSITIONS.add(myPosition());
}

private void drawWalkedPositions(Graphics2D g){

    for(Position position : WALKED_POSITIONS) fillPositionOnScreen(position, g); 
}

private void fillPositionOnScreen(Position position, Graphics2D g){

    Polygon polygon = position.getPolygon(script.getBot());
    g.fillPolygon(polygon.xpoints, polygon.ypoints, polygon.npoints);
}

Edited by Explv

You can can draw your own position then all you do is the same logic but use a for loop and just loop through your array of position and display them

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.