Jump to content
View in the app

A better way to browse. Learn more.

RuneSuite RSPS Development

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.

Featured Replies

Posted
comment_63117

Welcome!

Today I'll be showing a SUPER simple way to replace the old, outdated and frankly terrible way that most Ruse servers handle launching URLs.

First off, go ahead and create a new packet in your PacketSender (May be called PacketHandler).

This is the hidden content, please

I called mine openURL. (Big brain, I know!)

Next, you'll want to head over to your Client Configuration file. Scroll to the bottom, and you'll see a load of seemingly confusing numbers.

You can usually find them easily:

This is the hidden content, please

Find one that is currently 0

I have chosen packet 220.

Next, do a search in Client.java for:

This is the hidden content, please

 

E.g.
image


If you don't find anything, open up your PacketHandler / PacketSender again. 

Search for the packet number you've selected.

image

Again, hopefully nothing is found.. Great!

If you did find that the packet you selected is already in use, select a new number and try again.

Once you find the unused number, change the 0 to -1. This allows the packet to accept non specific data.

Bare in mind that the first number of each row ends in a 0.

E.g...
 

This is the hidden content, please

Now, we need to finish the packet code in PacketSender.

This is the hidden content, please

That's the packet done! You'll be able to use this anywhere.

E.g:

This is the hidden content, please

Now, head back to your Client.java file and do another search.

This time, we're searching for:

This is the hidden content, please


image

This is where your client handles the information that it receives from packets.

We'll need to make a new case for the packet number that you selected (As shown in the image above).

Now, here is the code annotated:

This is the hidden content, please

That's it! You should be good to go.

I would suggest wrapping the above code in a try / catch block in case you pass a non-valid URL.

Here is an example command that utilises this new ability..

This is the hidden content, please

You should update any existing command such as ::donate or ::store so that they open using the native way!


Done <3 

  • 7 months later...
  • 1 year later...

Create an account or sign in to comment

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.