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_36081

Mornin fella's, this snippet is nothing special but a lot of people are not aware of how simple this could be done and therefor I release this snippet to show you/them.
Received several requests to add this for 20-30$ whilst it's not even worth a dime...

Example from OSRS Wiki I am talking about: https://oldschool.runescape.wiki/w/Dragonbane_weapons

The base I use as example will be Ascend or SpecialPKz, a PI based 317...


First, you want to declare a list of NPC's... you can do this anywhere you want but I personally prefer NPC.java as it's the most logic place to declare it (in my opinion)..

This is the hidden content, please

 

This is the hidden content, please

Add it anywhere in the code... I removed a part of the list for 181, adapt it to your own ID's and add accordingly.

Now, how does one apply this to an item?
As simple as the Ctrl C + Ctrl V you did before...

Go into AttackNPC.java

Find

This is the hidden content, please

Underneath you see a bunch of cases..

Add a new case and declare the damage including the check for wether the NPC isDemon or isDragon...
In my case I show you the preview of my Dragon Hunter Lance:

This is the hidden content, please

(can copy/paste it in)

As you can see, the case & lastWeaponUsed correspond to the Item you're using to fight the NPC, the && defender.isDragon() check simply looks through all those cases... if the NPC you are fighting is any of these ID's then it amplifies the Damage & Accuracy..
This can be done for anything... just make one of those lists, name it accordingly and apply it this way.

Enjoy.

Edited by Tutus Frutus

  • Replies 43
  • Views 5.1k
  • Created
  • Last Reply

Top Posters In This Topic

  • 7 months later...
  • 3 weeks later...
  • 2 weeks later...
  • 2 weeks later...
  • 2 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.