Code:
private void button1_Click(object sender, EventArgs e)
{
List<COClient> Clients = new List<COClient>();
COClient client = new COClient();
client.Attached += (delegate()
{
{
this.Invoke(new MethodInvoker(delegate { List<string> lines = textBox1.Lines.ToList(); lines.Insert(0, Text); if (lines.Count > 100) lines.RemoveAt(100); textBox1.Lines = lines.ToArray(); textBox1.Refresh(); }));
}
textBox1.Text = +client.ProcessId + "";
});
client.PacketSent += (delegate(byte[] packet)
{
textBox1.Text = "SENT: " + BitConverter.ToString(packet).Replace("-", " ");
});
client.PacketReceived += (delegate(byte[] packet)
{
textBox1.Text = "RECV: " + BitConverter.ToString(packet).Replace("-", " ");
});
client.Start();
client.SendPacket(new byte[] { 0, 0 }); <<<-----This being the reason it doesn't load the Conquer.exe up?
}