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_63110

Hey everyone.

I bet all of you have come across the need to select a random item from a group before.

You'll see this in many areas of your server. Most prominently in your mystery / donator box files, raid rewards and crystal chest too!

An example of an item group is:

This is the hidden content, please

Now, we have a group that includes two items. The most common way of selecting a random reward (You'll see this EVERYWHERE) is;

This is the hidden content, please

This will work. However, it's ugly! There are always ways to improve.

Here is a new method for you.. I've added mine into Misc.java. 

This is the hidden content, please

Now, lets select a random item from our group using this new method!

(If added in Misc.java)

This is the hidden content, please

How much cleaner is that!

You can then use the item however you want. 

E.g.

This is the hidden content, please


Thank you!

 

  • 7 months 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.