Jump to content
  • 0

Duplicate bug


Question

Posted

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!

1 answer to this question

Recommended Posts

  • 0
Posted

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);
       }
	}

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...