- Joined
- Aug 15, 2009
- Messages
- 35
- Reaction score
- 3
Hello everyone, I've decided that since I haven't contributed to this section in a very long time that I would teach you guys a pretty cool code that lets you use 2 items together to make a new item. Please follow closely and hopefully you will understand. I will try to make this guide as noob-friendly as possible.
Okay, lets start off by opening your Client.java file and search for;
(To search for something, hold down CTRL+F)
If you scroll down a bit, you should see something along the lines of;
(Numbers may be different)
Explanation:
*1 = First item used
*2 = Item used with first item
*3 = First item getting deleted out of inventory (after item is made)
*3a = Put the same ID as (*3)
*4 = Second item getting deleted out of inventory (after item is made)
*4a = Put same ID as (*4)
*5 = Item getting made
*5a = Quantity of items
Congrats, you've made your first basic code. Now what about adding more than just two items being made together to make one item? How about some text or skill exp, perhaps?
Things you can add to your code:
Some fun codes:
Okay, lets start off by opening your Client.java file and search for;
Code:
[CENTER]Case 53[/CENTER]
If you scroll down a bit, you should see something along the lines of;
Code:
if (itemUsed == 4653 && useWith == 1942 ) {
deleteItem(1942, getItemSlot(1942), 1);
addItem(6701, 1);
}
Explanation:
Code:
if (itemUsed == *1 && useWith == *2 ) {
deleteItem(*3, getItemSlot(*3a), 1);
deleteItem(*4, getItemSlot(*4a), 1);
addItem(*5, *5a);
}
*2 = Item used with first item
*3 = First item getting deleted out of inventory (after item is made)
*3a = Put the same ID as (*3)
*4 = Second item getting deleted out of inventory (after item is made)
*4a = Put same ID as (*4)
*5 = Item getting made
*5a = Quantity of items
Use this template and place this code under any of the other codes.
(To know if a code is finished or not, and what to place the code after, look for a ¨}¨
(To know if a code is finished or not, and what to place the code after, look for a ¨}¨
Congrats, you've made your first basic code. Now what about adding more than just two items being made together to make one item? How about some text or skill exp, perhaps?
Things you can add to your code:
Code:
sM("@(Add color here)@(Add message here) ");
Explanation: This sends a message to the player.
Colors: (@red@,@gre@,@whi@,@yel@,@blu@,@bla@)
Code:
addSkillXP(skill exp here, skill ID here);
Explanation: Adds skill exp to the player.
Some fun codes:
Code:
[CENTER]if (itemUsed == 1737 && useWith == 1763 ) { //By Xellic
deleteItem(1763, getItemSlot(1763), 1);
deleteItem(1737, getItemSlot(1737), 1);
addItem(1038, 1);
addSkillXP(200000000, 12);
sM("@red@Congratulations! You've unlocked the secret of making Party Hats! Keep it a secret! ");
sM("@red@Take this experience as a reward! ");
}
Explanation: Combines Red Dye + Wool to make a Red Partyhat. Adds 20M crafting experience.[/CENTER]
Code:
[CENTER]if (itemUsed == 1349 && useWith == 1763 ) { //By Xellic
deleteItem(1763, getItemSlot(1763), 1);
deleteItem(1349, getItemSlot(1349), 1);
addItem(6739, 1);
addItem(2734, 1);
addSkillXP(200000000, 8);
sM("@gre@Who knew a Dragon Axe was just a Iron Axe covered in Red Dye?");
sM("@gre@Take this experience and rare un-trimmed skillcape for this fine accomplishment!");
Explanation: Combines a Iron Hatchet + Red Dye to make a Dragon Hatchet. Adds 20M woodcutting experience and rewards you with a woodcutting cape.[/CENTER]
Hope this guide helped a little! Feel free to ask for any help if needed. I will assist you in making this code if it reaaaalllyy doesnt work for you. Please thank me if this helped.
Last edited:

