Thread: [Help] CookingManager

Results 1 to 5 of 5
  1. #1 [Help] CookingManager 
    Registered Member
    Mocro's Avatar
    Join Date
    Nov 2007
    Posts
    532
    Thanks given
    28
    Thanks received
    11
    Rep Power
    125
    i added allot of skills like woodcutting mining and fishing but now im stuck at cooking im trying to add this :

    http://www.rune-server.org/runescape...ng-events.html

    and this is the error :

    Code:
                    Errors
    .\palidino76\rs2\io\packets\ItemOnObject.java:32: cannot find symbol
    symbol  : variable itemId
    location: class palidino76.rs2.io.packets.ItemOnObject
                    CookingManager.handleItemOnObject(p, itemId, objectId);
                                                         ^
    .\palidino76\rs2\io\packets\ItemOnObject.java:32: cannot find symbol
    symbol  : variable objectId
    location: class palidino76.rs2.io.packets.ItemOnObject
                    CookingManager.handleItemOnObject(p, itemId, objectId);
    I did import cookingmanager and it has handleitemonobject
    but still it says cannot find symbool :

    Code:
    	public static void handleItemOnObject(Player p,int itemId, int objectId) {
    		if(objectId == stove()) {
    			if (stove() != -1 || objectId != -1) {
    				handleCooking(p, itemId, 1);
    			}
    		}
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    Apr 2009
    Age
    30
    Posts
    106
    Thanks given
    0
    Thanks received
    6
    Rep Power
    12
    In ItemOnObject.java
    Search for
    Code:
    int objectId = player.getByteVector().readUnsignedWordA();
    Under that add
    Code:
    int itemId = player.getByteVector().readUnsignedWord();
    Reply With Quote  
     

  3. #3  
    Registered Member
    Nando's Avatar
    Join Date
    Feb 2009
    Age
    29
    Posts
    3,517
    Thanks given
    2,439
    Thanks received
    1,108
    Rep Power
    5000
    case sensitive


    Reply With Quote  
     

  4. #4  
    Registered Member
    Mocro's Avatar
    Join Date
    Nov 2007
    Posts
    532
    Thanks given
    28
    Thanks received
    11
    Rep Power
    125
    Quote Originally Posted by Drowning View Post
    In ItemOnObject.java
    Search for
    Code:
    int objectId = player.getByteVector().readUnsignedWordA();
    Under that add
    Code:
    int itemId = player.getByteVector().readUnsignedWord();
    Thank you
    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    Apr 2009
    Age
    30
    Posts
    106
    Thanks given
    0
    Thanks received
    6
    Rep Power
    12
    Quote Originally Posted by Mocro View Post
    Thank you
    no problem.
    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
  •