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.

Making sure Im in the right position

Featured Replies

Hey guys, the noob here again!
 

 

So I want to make sure that my character is in a certain position, and if he isn't, I want the script to stop.

 

This is what I have.

 	if (myPlayer().getPosition() != myPosition(X, Y, 0)) {
      		log("We are not in position! Stopping script!");
      	}
      	else {
      		log("We are in position! Moving on!");
      	}

When I type this I get a red squiggly under the "myPosition" part.

 

My question is:

 

How do I fix this so that the script will check that my character is in a certain position?

 

I have added "import org.osbot.rs07.api.map.Position;" to the top of the script.

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.