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.

Script wont start

Featured Replies

So i've created many scripts before and even some released as well, i stopped making scripts for a bit now i'm back to do some more.

Not really sure what's going on but even when I retry to debug a log info on onstart method no response is taken at all.

Simple af fix.

Edited by Booleans YAY

private final RS2Object bankBooth = objects.closest("booth");
private final RS2Object fountainObject = objects.closest("Fountain");

Thats where your problem is. You need to set those objects in your code which executes in onLoop. Say the bank method you have, youd need to put the objects.closest("booth") there.

I'm on my phone so the formatting is a bit weird.

But it looks like at the bottom of your script you have two global variables bankBooth and fountainObject that store the results of calls to objects.closest

If that is the case, that is what is breaking your script. The objects variable will not be initialised before onStart is called, so your script will break.

You should move those variables to onStart or onLoop

15 minutes ago, Booleans YAY said:

private final RS2Object bankBooth = objects.closest("booth"); private final RS2Object fountainObject = objects.closest("Fountain");

Those should be in the onloop().

  • Author

I figured it out myself, I thought maybe moving them would give a better appealing format to reading the script.
Anyways thanks for inputs.

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.