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.

Snippet; API Suggestions.

Featured Replies

My suggestion is to get a github or even a development section to allow users make additions to the API

 

Ex. I could contribute to the area class.

package org.osbot.script.rs2.utility;import java.util.ArrayList;import java.util.Arrays;import org.osbot.script.rs2.map.Position;/** * Area class to represent Positions on the map * @author Tanner (NissanNut) * */public class Area {		private ArrayList<Position> positions;	private int plane;		/**	 * Constructor set by an array w/plane	 * @param positions	 * @param plane	 */	public Area(Position[] positions, int plane){		setPositions(positions);		setPlane(plane);	}		/**	 * Constructor set by an array	 * @param positions	 */	public Area(Position... positions){		this(positions, 0);	}		/**	 * Adds a position to the area	 * @param position	 */	public void add(Position position){		positions.add(position);	}		/**	 * Adds a x/y position to the area	 * @param x	 * @param y	 */	public void add(int x, int y){		add(new Position(x, y, plane));	}	/**	 * Adds multiple positions	 * @param positions	 */	public void add(Position... positions){		this.positions.addAll(Arrays.asList(positions));	}		/**	 * Adds another area	 * @param area	 */	public void add(Area area){		add(area.getPositions());	}		/**	 * Checks if the area contains a position	 * @param position	 * @return <tt>true</tt> if area contains the position, else <tt>false</tt>	 */	public boolean contains(Position position){		for (Position p : positions){			if (p.equals(position))				return true;		}		return false;	}		/**	 * Checks if the area contains a position	 * @param x	 * @param y	 * @return <tt>true</tt> if area contains the position, else <tt>false</tt>	 */	public boolean contains(int x, int y){		return contains(new Position(x, y, plane));	}		/**	 * Checks if the area contains one out of a group of positions	 * @param positions	 * @return <tt>true</tt> if area contains a position, else <tt>false</tt>	 */	public boolean contains(Position... positions){		for (Position p : positions){			if (contains(p))				return true;		}		return false;	}		/**	 * Gets the nearest position from the area	 * @param position	 * @return the nearest position	 */	public Position getNearestPosition(Position position){		Position nearest = null;		for (Position p : positions){			if (nearest == null || position.distance(p) < position.distance(nearest))				nearest = p;		}		return nearest;	}		/**	 * Gets the nearest position from the area	 * @param x	 * @param y	 * @return the nearest position	 */	public Position getNearestPosition(int x, int y){		return getNearestPosition(new Position(x, y, plane));	}		/**	 * @return the plane	 */	public int getPlane() {		return plane;	}	/**	 * @param plane the plane to set	 */	public void setPlane(int plane) {		this.plane = plane;	}	/**	 * @return the positions	 */	public Position[] getPositions() {		return (Position[]) positions.toArray();	}	/**	 * @param positions the positions to set	 */	public void setPositions(Position[] positions) {		this.positions.addAll(Arrays.asList(positions));	}		@Override	public String toString(){		return "[Area: " + "Plane " + plane + "; " + positions.size() + " Positions]";	}		@Override	public boolean equals(Object o){	    return ((Area) o).getPositions().equals(getPositions());	}}

 

 

the thing with an open source API and 3rd party contributions is that it relies on good quality contributions being made which is rarely going to be the case

the thing with an open source API and 3rd party contributions is that it relies on good quality contributions being made which is rarely going to be the case

It's not hard to have script writers have access to denying bad code. Like wikipedia pretty much.

  • Developer

We won't make the API open source, you will have to wait for us to add features you're missing. Feel free to contribute any suggestions and we'll have them on our todo list.

We won't make the API open source, you will have to wait for us to add features you're missing. Feel free to contribute any suggestions and we'll have them on our todo list.

Oh well, can you make a subsection in suggestions for API only? There's quite a few things that can still be added.

  • Developer

The official script developers will be our main board of feedback in the future for needed API features, but for now we'll make a separate board for it. Thanks for the suggestions :)!

Guest
This topic is now closed to further replies.

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.