Jump to content
  • 0

Duplicate bug


remigas

Question

Maybe someone have some protection code to fix duplicate bug? because now ppl are using some programs to make fake log in and dup item true warehouse or any npc.

this is code which i get in console when it happen. pls help to fix it interlude client.

[L2World] object: Adena (57) already exists in OID map!
[L2World] object: Book of Rebirth (2822) already exists in OID map!
[L2World] object: Adena (57) already exists in OID map!
[L2World] object: Book of Rebirth (2822) already exists in OID map!
[L2World] object: Adena (57) already exists in OID map!
[L2World] object: Book of Rebirth (2822) already exists in OID map!
[L2World] object: Adena (57) already exists in OID map!
[L2World] object: Book of Rebirth (2822) already exists in OID map!

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

Its dual session bug.

And i think u using acis "L2 Gold trance files".

to fix this bug open this file "net\sf\l2j\gameserver\LoginServerThread.java"

find this function "public void addGameServerLogin(String account, L2GameClient client)"

and change with this:

	public void addGameServerLogin(String account, L2GameClient client)
	{
		     L2GameClient savedClient = _accountsInGameServer.get(account);
        if (savedClient != null) {
           if (savedClient.isDetached()) {
               _log.info("Old Client was disconnected: Offline or OfflineMode --> Login Again [Account: " + account + "]");
                _accountsInGameServer.put(account, client);
            } else {
				_log.info("Old Client was online --> Close Old Client Connection [Account: " + account + "]");
                savedClient.closeNow();
               _accountsInGameServer.remove(account);
            }
        } else {
            _log.info("Client was not online --> New Client Connection [Account: " + account + "]");
_accountsInGameServer.put(account, client);
       }
	}

 

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now


×
×
  • Create New...