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

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock