Here is it it's based off of a drop system.
It gives burning and nonburning
99% all raw items.
Credits
owned_pl0x for his thieving base
Me for converting it to cooking then adding all these
Download the cooking class
place it in packets
[Only registered and activated users can see links. ]
Alright now that you have that new class
Go into itemonobject.java
This is your part im not giving you everything.
import
Code:
import palidino76.rs2.io.packets.Cooking;
Right in
public void handlePacket(Player p, int packetId, int packetSize) {
add
Code:
Cooking co = new Cooking();
then heres your part you need to add the offical cooking.
heres a base i did monkfish for you
Code:
if (p.itemId == 389 && p.clickId == 2728) {
if (p.skillLvl[7] >= 62) {
pi.deleteItem(p, 389, 1);
p.addSkillXP(150, 7);
p.requestAnim(883, 0);
pi.addItem(p, co.getMonk(), 1);
p.frames.sendMessage(p, "You cook the fish");
}else if (p.skillLvl[7] <= 61) {
p.frames.sendMessage(p, "You need at lease 62 cooking to cook these.");
}
}
itemid is your raw item
see the clickid 2728 thats the range in cathelbury
skilllvl7 explains for itself
62 is the skill lvl required you need to change that for everylvl you want
deleteitem you gotta have it the same as the itemid
addskillxp(150,7); is adding 150 xp to your 7th skill which is cooking
requestanim is the cooking on range animation
This part you might get confused
pi.addItem(p,co.getMonk(), 1);
thats adding the item from the method i did
check in the class you just added and search
getmonk
it will show you i made it easy for
randomPike it's getPike if you want to do that fish
So you need to change it per fish
p.frames.sendMessage(p, "you cook the fish"); is sayying
you cooked the fish
then again the skill level for the 61 you need to change it 1 down from the
skill level you put
then the next sendmessage is telling you, you need the required cooking level
to cook the food.