FriendAddRequest packet fix.

Author: rocknowx
Source: https://forums.l2junity.org/index.php?topic=203.0#forum

Contributed by gigilo1968.
This commit is contained in:
MobiusDev
2016-07-30 13:22:27 +00:00
parent 50e78a61ad
commit 5d023ed751
2 changed files with 3 additions and 2 deletions

View File

@@ -36,7 +36,8 @@ public final class RequestAnswerFriendInvite implements IClientIncomingPacket
@Override @Override
public boolean read(L2GameClient client, PacketReader packet) public boolean read(L2GameClient client, PacketReader packet)
{ {
_response = packet.readC(); packet.readC();
_response = packet.readD();
return true; return true;
} }

View File

@@ -36,8 +36,8 @@ public class FriendAddRequest implements IClientOutgoingPacket
{ {
OutgoingPackets.FRIEND_ADD_REQUEST.writeId(packet); OutgoingPackets.FRIEND_ADD_REQUEST.writeId(packet);
packet.writeC(0x01);
packet.writeS(_requestorName); packet.writeS(_requestorName);
packet.writeD(0x00);
return true; return true;
} }
} }