base of fletching/cooking/herblore/crafting
Purpose: making your client.java cleaner
Difficulty: 1/10.....
Assumed Knowledge: copy and past and be a bit smart...
Server Base: project-rs(winterlove)
Classes Modified: client.java
credits: me made this myself was pretty easy though..
ok this is just the basic of it you will need to make it yourself
by using item on item or item on object.
add this at client.java
Code:
public void craft(int anim, int additem, int delitem, int amount, int skill, int xp, int timer)
{
if (actionTimer == 0) {
startAnimation(anim);
addItem(additem, amount);
deleteItem(delitem,getItemSlot(delitem),amount);
actionTimer = timer;
addSkillXP(xp + playerLevel[skill], skill);
}
}
this works like this
craft(1, 2, 3, 4, 5, 6, 7)
1:animation id
2:additem id
3:delete item id
4:amount of delete item and add item
5:what skill you want to give the xp to
6: amount of xp you want to give
7:timer how long you need to wait to make a new one
don't blame me this is my actually first tut that is a bit good...