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.

FrostBug

Scripter III
  • Joined

  • Last visited

Everything posted by FrostBug

  1. FrostBug replied to Stark's topic in Projects
    Why Dijkstra? Using a heuristic based algorithm would likely be a lot faster. (A* might outperform Dijkstra quite a bit with an accurate heuristic)
  2. Thanks for this Alot of people might want to remove the f2p worlds, though
  3. FrostBug replied to Toph's topic in Snippets
    Ah.. Should have checked the Snippets section yesterday when I needed this; Anyway, I've made a similar implementation; I suppose people can choose what fits their needs import java.util.ArrayList; import java.util.List; import org.osbot.script.mouse.RectangleDestination; import org.osbot.script.rs2.Client; import org.osbot.script.rs2.ui.Option; /** * * @author FrostBug */ public class Menu { private List<Option> options; private List<String> strOptions; private int x, y, width; private Client client; private static final int OPTION_HEIGHT = 15; private static final int TOP_PADDING = 19; private Menu(Client client) { this.strOptions = new ArrayList<>(); this.options = client.getMenu(); this.x = client.getMenuX(); this.y = client.getMenuY(); this.width = client.getMenuWidth(); this.client = client; for (Option o : options) { strOptions.add(o.action); } } public static Menu getActiveMenu(Client client) { if (client.isMenuOpen()) { return new Menu(client); } else { return null; } } public boolean hasOption(String action) { return strOptions.contains(action); } private RectangleDestination getDestinationRect(int index) { return new RectangleDestination(x + 4, y + TOP_PADDING + (index * OPTION_HEIGHT), width - 8, OPTION_HEIGHT); } public boolean moveMouseToOption(String action, boolean click) throws InterruptedException { int index = strOptions.indexOf(action); boolean success; if (index > -1 && client.isMenuOpen()) { RectangleDestination rect = getDestinationRect(index); success = client.moveMouse(rect, false); if (click && success) { client.clickMouse(false); } } return success; } public boolean isMouseOnOption(String action) { RectangleDestination rect = getDestinationRect(strOptions.indexOf(action)); return client.isMenuOpen() && rect.destinationReached(client.getMousePosition()); } }

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.