Do you mean
Code:
if(ServerName == "PixelEmpire")
{
/*if(AuthSocket.Authorize(AccountName, Key, false))
{
CSocket.Send(Packets.AuthResponse("66.187.101.86", Key1, Key2));
}
else
{
CSocket.Disconnect();
}*/
if (AuthSocket.Authorize(AccountName, Key, false))
{
CSocket.Send(Packets.AuthResponse("127.0.0.1", Key1, Key2));
}
else
{
CSocket.Disconnect();
}
}
else if(ServerName == "PixelEmpire")
{
if(AuthSocket.Authorize(AccountName, Key, true))
{
CSocket.Send(Packets.AuthResponse("127.0.0.1", Key1, Key2));
}
else
{
CSocket.Disconnect();
}
}
}
?
It now reads this
Code:
if(ServerName == "PixelEmpire")
{
/*if(AuthSocket.Authorize(AccountName, Key, false))
{
CSocket.Send(Packets.AuthResponse("66.187.101.86", Key1, Key2));
}
else
{
CSocket.Disconnect();
}*/
if (AuthSocket.Authorize(AccountName, Key, false))
{
CSocket.Send(Packets.AuthResponse("MYIPHERE", Key1, Key2));
}
else
{
CSocket.Disconnect();
}
}
else if(ServerName == "PixelEmpire")
{
if(AuthSocket.Authorize(AccountName, Key, true))
{
CSocket.Send(Packets.AuthResponse("MYIPHERE", Key1, Key2));
}
else
{
CSocket.Disconnect();
}
}
}
Is this right?
Change the 127.0.0.1 to my ip?
What about server.dat that still says 127.0.0.1 will that work for my friends?
EDIT1: I now get no error in compiler BUT when i load client and hit log in i get Error: Disconnected with Game Server. Please login the game again.
Are all my ips meant to be 127.0.0.1 apart from this one because i have my ip put in MasterSocket