Apple Pie is amazing!!!!
I am not a noob, i know how to reflect projects ya know. There would be no credits given to you because I did not use your dll.Quote:
Want to give some credit for that? (unless that's matt- if it is- good work ^^,)
[Only registered and activated users can see links. Click Here To Register...]
public static void GameConnect(GameClient Client, byte[] Packet)
{
Client.Identifier = BitConverter.ToUInt32(Packet, 8);
uint Key2 = BitConverter.ToUInt32(Packet, 4);
(Client.Socket.Crypto as ConquerStanderedCipher).SetKeys(Client.Identifier, Key2);
AuthClient authData;
if (Kernel.AuthPool.TryGetValue(Client.Identifier, out authData))
{
Client.Username = authData.Username;
Client.Password = authData.Password;
Kernel.AuthPool.Remove(authData.Identifier);
if (Database.LoadCharacter(Client))
{
Kernel.GamePool.ThreadSafeAdd<uint, GameClient>(Client.Identifier, Client);
Kernel.UpdateGameClients();
Client.Send(PacketBuilder.CharacterInfo(Client));
Client.Send(new MessagePacket("ANSWER_OK", "ALLUSERS", 0xFFFFFF, MessagePacket.Dialog));
return;
}
}
Client.Socket.Disconnect();
}
//(Client.Socket.Crypto as ConquerStanderedCipher).SetKeys(Client.Identifier, Key2);
I see, now another question, is this Console.WriteLine(DumpHelper.Dump(array)); important? since I don't have the DumpHelper I commented this out.Quote:
Either do what i did or just take that part out. Since it does not need to set the keys and my socket system does not support .Setkeys because it is not needed anymore.Code://(Client.Socket.Crypto as ConquerStanderedCipher).SetKeys(Client.Identifier, Key2);