Tyrin To Implement A Custom Package But Can't..
I Can Sent A Package Client to Server but Can't Send Server to Client...
Following That Way:
lib.packet.lua
adding:
Code:
gPacketType.kPacket_Verification_Request = { id=0xFA, size=2 }
and
net.other.lua
adding:
Code:
function gPacketType.kPacket_Verification_Request()
print("######################### Verification Requested");
end
And Server Side
Code:
public sealed class VerificationRequest : Packet
{
public VerificationRequest()
: base(0xFA, 2)
{
Console.WriteLine("Sending Verification Request.");
m_Stream.Write((bool)true);
m_Stream.Fill();
}
}
//And Sending Packet To Client.
Code:
static void EventSink_Login(LoginEventArgs e)
{
e.Mobile.Send(new VerificationRequest());
}
Console Outputs: Sending Verification Request.
But Client Command Output Is Not Working, it must be: ######################### Verification Requested
Where I'm Doing Wrong?
Regards.