Jump to content
  • 0

Ip Hook


wongerlt

Question

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?

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

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 :)

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.


  • Create New...