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.

Array of Positions/Areas

Featured Replies

Hi Guys,

I have a basic understanding of Arrays in a sense that I know it's a list of stuff.

I'm writing an agility script and I'm doing checks to see if Area contains my play in order to move on, but I wanted to try and create it as a list, in which it would need to verify based on like a queue or priority system to move forward to next area.

 

unknown.png

 

Any help would be appreciated!

 

 

You could create a class to represent a "step" in the agility course. This class would include the Area that indicates which step it is, as well as a Position and String (action) describing how to complete this "step".

Then you can simply loop thru a list of 'steps', find whichever step you need to solve by checking if your player is in Area of that step, and dynamically solve it by getting the object at the specified position, and using the specified action on that object. If no steps are found for your position, you probably failed or completed your lap, so in that case make your way back to the start.

Edited by FrostBug

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.