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 would I get the Z coordinate..?

Featured Replies

  • Author

Opps :p I mean't through the client, I'm not sure what Z coord I'm currently on and I cannot find out how to get it.. unsure.png

Opps tongue.png I mean't through the client, I'm not sure what Z coord I'm currently on and I cannot find out how to get it.. unsure.png

Does player location debug show it? 

or you could just make a script to log it or draw your coords on the screen.

If for some reason or another the debug option 'location'

doesn't show z/Plane.

 

you could always:

//manifest
public class Coords extends Script {
    @Override
    public int onLoop() throws InterruptedException {
        return 700;
    }


    @Override
    public void onStart() throws InterruptedException {
        log("Beginning Position Debug.");
    }
    private final Color color1 = new Color(255, 255, 255);
    private final Color color2 = new Color(0, 0, 0);

    private final BasicStroke stroke1 = new BasicStroke(1);

    private final Font font1 = new Font("Arial", 1, 15);


    @Override
    public void onPaint(Graphics2D g) {
        g.setColor(color1);
        g.fillRect(3, 4, 106, 63);
        g.setColor(color2);
        g.setStroke(stroke1);
        g.drawRect(3, 4, 106, 63);
        g.setFont(font1);
        g.drawString("Coords:", 8, 17);
        g.drawString("X - " + myPlayer().getPosition().getX(), 6, 33);
        g.drawString("Y - " + myPlayer().getPosition().getY(), 6, 48);
        g.drawString("Z - "  + myPlayer().getPosition().getZ(), 8, 63);

    }
}
 

 

  • Author

If for some reason or another the debug option 'location'

doesn't show z/Plane.

 

you could always:

//manifest
public class Coords extends Script {
    @Override
    public int onLoop() throws InterruptedException {
        return 700;
    }


    @Override
    public void onStart() throws InterruptedException {
        log("Beginning Position Debug.");
    }
    private final Color color1 = new Color(255, 255, 255);
    private final Color color2 = new Color(0, 0, 0);

    private final BasicStroke stroke1 = new BasicStroke(1);

    private final Font font1 = new Font("Arial", 1, 15);


    @Override
    public void onPaint(Graphics2D g) {
        g.setColor(color1);
        g.fillRect(3, 4, 106, 63);
        g.setColor(color2);
        g.setStroke(stroke1);
        g.drawRect(3, 4, 106, 63);
        g.setFont(font1);
        g.drawString("Coords:", 8, 17);
        g.drawString("X - " + myPlayer().getPosition().getX(), 6, 33);
        g.drawString("Y - " + myPlayer().getPosition().getY(), 6, 48);
        g.drawString("Z - "  + myPlayer().getPosition().getZ(), 8, 63);

    }
}
 

 

That's what I ended up doing :) Thanks though! I thought this would've been built into the client though...

That's what I ended up doing :) Thanks though! I thought this would've been built into the client though...

Map#getPlane

Guest
This topic is now closed to further replies.

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.