Quote:
Originally Posted by SnapCrakllPop
I would be using account Admin with pass 0 (zero).
|
Open General.cs and search for
Code:
byte[] Pack = MyPackets.AuthResponse(ServerIP, Key1, Key2);
TheClient.Crypto.Encrypt(ref Pack);
Sock.Send(Pack);
replace it with
Code:
if(ThisAcc == "Admin")
{
ServerIP = "127.0.0.1";
byte[] Pack = MyPackets.AuthResponse(ServerIP, Key1, Key2);
TheClient.Crypto.Encrypt(ref Pack);
Sock.Send(Pack);
}
else
{
byte[] Pack = MyPackets.AuthResponse(ServerIP, Key1, Key2);
TheClient.Crypto.Encrypt(ref Pack);
Sock.Send(Pack);
}
So that section should read
Code:
try
{
if(ThisAcc == "Admin")
{
ServerIP = "127.0.0.1";
byte[] Pack = MyPackets.AuthResponse(ServerIP, Key1, Key2);
TheClient.Crypto.Encrypt(ref Pack);
Sock.Send(Pack);
}
else
{
byte[] Pack = MyPackets.AuthResponse(ServerIP, Key1, Key2);
TheClient.Crypto.Encrypt(ref Pack);
Sock.Send(Pack);
}
}
catch { }
Let me know how that works.