Thread: Decent Cooking

Results 1 to 4 of 4
  1. #1 Decent Cooking 
    Lighten
    Guest
    Posted on runestyle and fullmetalstscape forums.

    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.

    Post any errors.
    Reply With Quote  
     

  2. #2  
    Registered Member

    Join Date
    Jan 2008
    Posts
    2,345
    Thanks given
    20
    Thanks received
    575
    Rep Power
    1202
    You shouldve tooken some stuff that Encouragin released from his Cooking base, this is too unstable and cooking isnt really realistic this way...

    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  3. #3  
    Lighten
    Guest
    k Its pretty stable in my source tho.
    Reply With Quote  
     

  4. #4  
    Registered Member
    Abyssal head's Avatar
    Join Date
    May 2008
    Age
    29
    Posts
    1,255
    Thanks given
    14
    Thanks received
    22
    Rep Power
    238
    you did have to convert it from a THIEVING base? lol =.=

    [Only registered and activated users can see links. ]
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •