UseItemPacket help
Just wondering if anyone out there might be able to help out. I keep getting kicked, and think it might have something to do with the useitem packet.
Its format is as follows:
The issue is with the last useType byte field. The only value that seems to work is to set it to 1, but I believe there might be more possible values, since a byte can have 256 different values.
Its format is as follows:
Code:
time = in.readInt(); objectId = in.readInt(); slotId = in.readUnsignedByte(); itemType = in.readShort(); loc = new Location(in); useType = in.readByte();