Custom Packet

HuzarO

Vassal
Customer
Hi,
I would like to know if there is any way to add custom network packet to the server. I have it ready on client side to receive and send my custom packets, only one part is missing, which is ability on server side to be able to accept that packet from client. How I can add that?
 
Hi,
I would like to know if there is any way to add custom network packet to the server. I have it ready on client side to receive and send my custom packets, only one part is missing, which is ability on server side to be able to accept that packet from client. How I can add that?
by scripts
we have
// RequestYourPacket
public void OnReceiveExPacket_0x0106(ScriptExPacket packet) {
if (!isActive())
return;
GameClient client = packet.getClient();
final Player player = client.getActiveChar();
if (player == null)
return;
sendMyData(player);
}
 
Back
Top