Jump to content
  • 0

Question

Posted

Hello,

Me server have 2 ip with different country. First ip i registered in game server list, now i need register and second ip to same server. How i can do it on aCis?

1 answer to this question

Recommended Posts

  • 0
Posted

Fixed by self. :)

If any one need it can be made in one line:

ServerList.java

else if (gsi.getStatus() != ServerStatus.STATUS_GM_ONLY)
			{
				// Server is not GM-Only
+				addServer("78.78.78.78", gsi.getPort(), gsi.isPvp(), gsi.isTestServer(), gsi.getCurrentPlayerCount(), gsi.getMaxPlayers(), false, true, gsi.getStatus(), gsi.getId());
+				addServer("79.79.79.79", gsi.getPort(), gsi.isPvp(), gsi.isTestServer(), gsi.getCurrentPlayerCount(), gsi.getMaxPlayers(), false, true, gsi.getStatus(), gsi.getId()+1);
			}

and in RequestServerLogin.java

public boolean readImpl()
	{
		if (super._buf.remaining() >= 9)
		{
			_skey1 = readD();
			_skey2 = readD();
			_serverId = readC();
+			if(_serverId==2)
+				_serverId=1;
			return true;
		}
		return false;
	}

It work for me :)

Guest
This topic is now closed to further replies.


×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..