Thread: ItemOnObject packet!!

Results 1 to 2 of 2
  1. #1 ItemOnObject packet!! 
    Banned

    Join Date
    Jan 2009
    Posts
    777
    Thanks given
    74
    Thanks received
    61
    Rep Power
    0
    I have this:

    Code:
    public void processPacket(Client c, int packetType, int packetSize) {
    	int itemId = c.getInStream().readUnsignedWord();
    	int objectId = c.getInStream().readSignedWordBigEndian();
    	Misc.println("Object ID: "+objectId+" Item ID: "+itemId);
    }
    When I use an item with an object it doesn't print out the correct itemId but it does print out the correct objectId, I am quite sure those are the right streams i should be using. Can anyone help?

    The outprint when using a firecape on a range:
    Code:
    Object ID: 2728 Item ID: 3214
     

  2. #2  
    Banned

    Join Date
    Jan 2009
    Posts
    777
    Thanks given
    74
    Thanks received
    61
    Rep Power
    0
    fixed
     


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
  •