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_63192

Hey guys..

Had the need to re-write SlayerTasks.java for someone, figured I'd share it.

It includes a kill requirement - if your server doesn't have that, just set the KC requirement to 0 or properly remove it if you know what you're doing :) 

This is the hidden content, please

Adapted Slayer.java assignTask() Method to use the new data.. This is lazy work since I just changed where it gets the info from

This is the hidden content, please

 

  • 3 months later...
  • 2 months later...
  • 1 month later...
  • 3 months later...
comment_80752

Ahh this really isn't great enumerations are a strong way to give constants a bit more flavor context but that is really where it should end your packing so much stuff in your enum class is defeating the purpose of objective based programing. The point is to make things clean and simple without over engineering it, Java is already verbose enough think lazy when you create things it truly is the best practice.

You have multiple methods doing the exact same check it can be condensed into one.

This is the hidden content, please

If data already exists don't duplicate it also this method and its call isn't needed to populate static collections you can simply call a static block

 

This is the hidden content, please

  

This is the hidden content, please

Here you are using a while loop creating an imposed recursive iteration check, we have had Streams since java 8 should check into them you can filter out your data sets so they only contain what is currently usable.

 

This is the hidden content, please

This is opening up a chance for a null pointer exception look into Optionals also don't use ordinal() it value is exclusively order specific and any changes to the constants stack will break what is returned.

 

This is the hidden content, please

 

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