Posted August 20, 20195 yr 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 Sign In or Sign Up This is the hidden content, please Sign In or Sign Up 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 Sign In or Sign Up 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 Sign In or Sign Up (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 August 20, 20195 yr by Tutus Frutus
April 1, 20205 yr comment_49345 Thank you!! It's kind of funny how I was looking for exactly this...and..here it is!
May 9, 20205 yr comment_54862 Good stuff. A long switch statement of IDs is quite difficult to maintain so it might be worth using the NPC cache definitions to use names of NPCs instead. I.e if the NPC name contains "wyrm" or "dragon" but it really isn't a super huge deal at this level. Well done
Create an account or sign in to comment