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