I did not leech this from mopar, I am the same person.
Difficulty: 5/10
Server Base: Devolution, others.
Classes Modified: Client.Java
What this tutorial would teach: This tutorial will teach you how to make more bones get buried and more food to eat, there can be more but that's all I can think of.
Burying BONES
Step 1:
First of all go open your client.java and search for:
Code:
public void buryItem
You'll see some examples already like this one:
Code:
case 526:
prayerMessage(100);
break;
Step 2:
Next step, you saw the example. Right? Now copy that whole code again after the "break;"
Now let me explain what the other codes are for.
case 526 is what the item id is. [ THE BONE ID ]
prayerMessage(100) is how much prayer experience it would give, so just change 100 to whatever you like.
So an example would look like this: [ To tell you, this is a dagannoth bone. ]
Code:
case 6729:
prayerMessage(650);
break;
More Food To Eat.
This next one is similar to the tutorial above, but just a little different.
Step 1:
Scroll down a bit more, and you'll probably see a code similar to this:
Code:
case 315:
setAnimation(0x33D);
animationReset = System.currentTimeMillis() + 750;
currentHealth += 5;
if (currentHealth > playerLevel[playerHitpoints])
currentHealth = playerLevel[playerHitpoints];
sendMessage("You eat the shrimps");
break;
Now that code was for a shrimp.
Step 2:
Copy that code again and paste it after the "break;"
Now let me explain it to you.
SetAnimation is what the emote you would use to eat.
CurrentHealth += 5 is the health you would receive if you eat the food, so change the 5
Leave animationreset and the
Code:
if (currentHealth > playerLevel[playerHitpoints])
currentHealth = playerLevel[playerHitpoints];
Of course, sendMessage is the message you would receive
Now that you're done, save and COMPILE!
Enjoy the food and the Bones!