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.

Local and SDN Resource Loading

Featured Replies

OSBot has a Script method called getScriptResourceAsStream; its purpose is to write code once no matter if the script is in a jar, zip, class files, local, or on the SDN. Namely, this topic will show you how to set up your packaging for compatibility between local and SDN resource loading.

Since the SDN requires a specific package structure, your local project will need to be the same. The format is:

ModuleName/src,resources/files

For instance:

MacroSlayer/src/Main.java
MacroSlayer/resources/image.png

For instance, this is what it should look like:
image.png.022e9a60671d18b3d87d10413c4637ea.png

 

Now the InputStream returned from getScriptResourceAsStream should be of the following format:

 

getScriptResourceAsStream("resources/image.png")


For instance, this user's script has this code which works both locally and on the SDN:

image.png.95e116bc29443baf22572ea95991df52.png

 

Using this method will simplify your development process when using resources.

 

  • Maldesto locked and pinned this topic
  • Maldesto unpinned this topic
Guest
This topic is now closed to further replies.

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.