In 474 protocol this packet is almost the same as in 317 protocol but
i are making a tut on it because of the people that had not discovered
this jet.
Packet ID: 31
Packet Format:
Code:
Opcode 31
Signed WordBigEndianA : Object X
Unsigned Word : Object ID
Unsigned WordA : Object Y
Code for ClientPackets.java:
Code:
public static final int FIRST_CLICK_OBJ = 31;
Code for RSPlayer.handleData:
Code:
case ClientPackets.FIRST_CLICK_OBJ:
int objectX = inStream.readSignedWordBigEndianA();
int objectID = inStream.readUnsignedWord();
int objectY = inStream.readUnsignedWordA();
System.out.println("objclick X:"+objectX+" objclick id:"+objectID+" objclick Y:"+objectY);
ReplaceObject(objectX,objectY,3019,0);
break;