I noticed recently that DangerZone's 508 DOES NOT have a npcdrops.cfg/xml to make drops from. So here is a little tutorial on how to add them.
Difficulty: 2
In this tutorial I will use a Chicken as the NPC (id 41) so replace the 41s with your NPC id.
1. navigate to palidino76.rs2.npcs in your source folder.
2. open up NPC.java with your editor of choice.
3. search this:
Code:
public void appendNpcDrops() {
4. Then scroll down to this:
Code:
case 5253:
if (Misc.random(10) == 5)
Server.engine.items.createGroundItem(10581, 1, absX, absY, heightLevel, p.username);
break;
5. Under the break type this:
Code:
case 41:
Engine.items.createGroundItem(526, 1, absX, absY, heightLevel, p.username);
Engine.items.createGroundItem(995, Misc.random(25), absX, absY, heightLevel, p.username);
break;
6. Now I'll explain this a little bit more.
- REMEMBER 41 is the id of a Chicken, so change this to your NPC's id.
Code:
Engine.items.createGroundItem(526, 1, absX, absY, heightLevel, p.username);
- Tells the system to create 1 pile of bones (id 526) at the height, and coordinates of the dead chicken.
Code:
Engine.items.createGroundItem(995, Misc.random(25), absX, absY, heightLevel, p.username);
- Same as above except with gold (id 995). IMPORTANT The (25) means its drops UP TO 25 gold in random amounts.
- I shouldn't even have to explain.
Just edit this code to your liking and you are done!
PLEASE DON'T LEAVE JERK COMMENTS I AM ONLY TRYING TO HELP PEOPLE!!!
CREDITS:
90% William'
10% Me