Author Topic: [How to]~adding real herblore~[How to]  (Read 70 times)

post

  • Newbie
  • *
  • Posts: 18
    • View Profile
[How to]~adding real herblore~[How to]
« on: January 12, 2011, 12:40:08 am »
This is how to add real (vial of water on herb) Herblore.

Open up your source and go to client.java

Now search for: case 53

Then someone below that add this:

if (itemUsed == XXXX && useWith ==ZZZZ) {
               deleteItem(XXXX, getItemSlot(XXXX), 1);
deleteItem(ZZZZ, getItemSlot(ZZZZ), 1);
               addItem(YYYY, 1);
addSkillXP(200000000, 12);
sM("You add the gerb to the water");
sM("You get some xp ");
            }
*please note:
Where you see XXXX replace that with the vial of water id
Where you see ZZZZZ replace it with the id of a herb
Where you see YYYY replace it with a pointion id
This part: addSkillXP(200000000, 12); can be edited
The 12 is the skill number and the 200000000 i the amount of xp(i used crafting in this xample)


Thanks for reading

Share on Bluesky Share on Facebook