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.

[WIP] selection library, click & point, select it in game

Featured Replies

SAPI

 

Hello world.

 

Here's a sneak peak of a little library I'm working on, its goal is to simplify high-level interaction between bot/script and game,

useful when you need a superficial game variable but don't have the time or knowledge to fetch it via code or a clunky GUI.

 

Currently, the following types are selectable (with more to come):

  • Entities
  • Widgets
  • Positions
  • Bank slots
  • Inventory slots
  • Prayer buttons
  • Magic spells

 

Currently, the following brushes are available (with more to come):

  • Point
  • Shapes: Arc2D, Ellipse2D, Rectangle2D, RoundRectangle2D

 

The library will be free & available for everyone. No ETA but shouldn't be too long.

 

Code example

@ScriptManifest(author = "Botre", info = "", logo = "", name = "Example Script", version = 0)
public class Example extends Script {

	private Sapi sapi;
	
	@Override
	public void onStart() throws InterruptedException {
		super.onStart();
		// Initialize API.
		sapi = new Sapi(this);
		// Add a filter to the inventory module: only empty slots are made selectable.
		sapi.getInventorySlotModule().getFilters().add(slot -> slot.isEmpty());
		// Change the painter.
		 sapi.getInventorySlotModule().setPainter(new DefaultItemContainerSlotPainter(this) {
			 @Override
			public void paint(Graphics2D g2d, ItemContainerSlot object) {
				g2d.setColor(Color.BLUE);
				g2d.drawString(object.getItem().getName(), 0, 0);
				super.paint(g2d, object);
			}
		 });
		// Activate the module / enable selection. 
		sapi.getInventorySlotModule().setActive(true);
		// Start the API.
		sapi.start();
	}
	
	@Override
	public void onExit() throws InterruptedException {
		super.onExit();
		// Stop API.
		sapi.stop();
	}
	
	@Override
	public int onLoop() throws InterruptedException {
		// Iterate over selected items.
		for (ItemContainerSlot slot : sapi.getInventorySlotModule().getSelected()) {
			log(slot.getItem().getName());
		}
		return 500;
	}
	
	@Override
	public void onPaint(Graphics2D g2d) {
		super.onPaint(g2d);
		sapi.getInventorySlotModule().paintBrush(g2d);
		sapi.getInventorySlotModule().paintSelected(g2d);
	}
	
}

Screenshots

 

93626a912cef04b05431595d411e7352.gif

 

8fd9c9dbe2b16361246af33a059d10fb.gif

 

b4f2ce5b9761e6907efd663430bb8fc6.gif

 

c4b9d759da808bf018ad811fef0f34c3.gif          e2a8e01e6793123522d47f46a3748729.gif

 

c3be1dbdea81da7b22d8af557ef80116.gif  

Edited by Botre

  • Author

but why tho?

 

"Select the safespot you'd like to use"

"Draw the path you would like to record"

"Select the entity you would like to attack"

"Select the item you'd like to alch"

"Select your special attack weapon"

"Select the food you would like to eat"

"Select all positions to avoid"

"Select the rocks you would like to mine"

"Select the fishing spots to avoid"

"Select your mule character"

 

Etcetera.

 

I hate when GUI's make me type.

I hate to update comboboxes.

 

 

Etcetera,

"Select the safespot you'd like to use"

"Draw the path you would like to record"

"Select the entity you would like to attack"

"Select the item you'd like to alch"

"Select your special attack weapon"

"Select the food you would like to eat"

"Select all positions to avoid"

"Select the rocks you would like to mine"

"Select the fishing spots to avoid"

"Select your mule character"

 

Etcetera.

 

I hate when GUI's make me type.

I hate to update comboboxes.

 

 

Etcetera,

Explv has that shit on his location assistant :doge:

Nope doge.png

yeah he do, you just click on a tile and it marks it. :doge:

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.