Hi There,
I've got a question...
Can somebody tell me, for what this "packet.AddBlock(12345678);" is?
Which code I have to enter there?
Thanks.
I've got a question...
Can somebody tell me, for what this "packet.AddBlock(12345678);" is?
Which code I have to enter there?
Thanks.
Code:
public void Send_Login(Socket cSocket)
{
try
{
//23601323 4352 4275522426 0 username password nickname 1 22
// 4199457 4352 3784474185 0 username password nickname 1 22
// 123856874 4352 12345678 0 '.$this->username.' '.$this->password.' '.$this->nickname.' 1 40
Encrypt packet = new Encrypt();
packet.newPacket(4352);
packet.AddBlock(12345678);//For what is this?
packet.AddBlock(0);
packet.AddBlock(username);
packet.AddBlock(password);
packet.AddBlock(nickname);
packet.AddBlock(1);
packet.AddBlock(22);
byte[] fpacket = packet.getPacket();
cSocket.Send(fpacket);
Console.WriteLine(nickname + "\t:\tLoginPacket sent.");
}
catch
{
}
}