Page 1 of 2
multiple characters logged on from one account
Posted: Sat Sep 19, 2009 4:24 pm
by jurchiks
multiple characters logged on from one account
can't seem to find a config for this, maybe someone can show me exactly where it is?
Re: multiple characters logged on from one account
Posted: Sat Sep 19, 2009 5:16 pm
by Ashitaka
Hi jurchiks,
Not in loginserver.properties so it is not L2J feature.
Re: multiple characters logged on from one account
Posted: Sat Sep 19, 2009 5:56 pm
by jurchiks
I already checked every config file, so I'm thinking it's in the source...
I found some things there, but not what i am looking for, so i need a full answer from someone who knows the deal
Re: multiple characters logged on from one account
Posted: Sat Sep 19, 2009 11:15 pm
by Ashitaka
Here is your full answer. I hope it to be in depth enough for you
The class net.sf.l2j.loginserver.clientpackets.RequestAuthLogin.java manages the packets (server-side) needed to establish a successfull login between the game client and the login server.
Once an auth packet incomes from the game client, the RequestAuthLogin obtains an instance of a LoginController (@net.sf.l2j.loginserver.LoginController.java) wich on its turn executes the
tryAuthLogin function that returns an AuthLoginResult (it is an enum var for: INVALID_PASSWORD, ACCOUNT_BANNED, ALREADY_ON_LS, ALREADY_ON_GS and AUTH_SUCCESS cases). Depending on this result, the RequestAuthLogin makes a switch for the five posible cases. In concrete, for ALREADY_ON_LS and ALREADY_ON_GS the result action is to send a LoginFailReason.REASON_ACCOUNT_IN_USE by closing the connections (and kicking the player for the GS) as you can see in the code below:
net.sf.l2j.loginserver.clientpackets.RequestAuthLogin.java@137:17
Code: Select all
case [color=#400080]ALREADY_ON_LS[/color]: L2LoginClient oldClient; if ((oldClient = lc.getAuthedClient(_user)) != null) { // kick the other client oldClient.close([color=#FF0000]LoginFailReason.REASON_ACCOUNT_IN_USE[/color]); lc.removeAuthedLoginClient(_user); } // kick also current client client.close([color=#FF0000]LoginFailReason.REASON_ACCOUNT_IN_USE[/color]); break;case [color=#400080]ALREADY_ON_GS[/color]: GameServerInfo gsi; if ((gsi = lc.getAccountOnGameServer(_user)) != null) { client.close([color=#FF0000]LoginFailReason.REASON_ACCOUNT_IN_USE[/color]); // kick from there if (gsi.isAuthed()) { gsi.getGameServerThread().kickPlayer(_user); } } break;
The L2J code is in this way so that's why you can't login with two players of the same account with a clean server source code, unless you modify this class.
Have a nice day.
Re: multiple characters logged on from one account
Posted: Mon Sep 21, 2009 11:42 am
by jurchiks
Alright, huge thanks to you

Re: multiple characters logged on from one account
Posted: Mon Sep 21, 2009 12:42 pm
by _DS_
Please avoid using such things ! This will open way to several very bad exploits.
Re: multiple characters logged on from one account
Posted: Mon Sep 21, 2009 1:14 pm
by momo61
_DS_ wrote:Please avoid using such things ! This will open way to several very bad exploits.
lol ... you can only start imagening all the big exploits xD !!!
Warehouse, Freight, Trade, Drop and much more ^_^
Re: multiple characters logged on from one account
Posted: Mon Sep 21, 2009 7:17 pm
by ThePhoenixBird
That would release the hell in your server with so many exploits and cheats that are possible without that restriction

do it at your own risk, a single mistake can destroy a long running server in just 1 hour.
Re: multiple characters logged on from one account
Posted: Mon Sep 21, 2009 8:29 pm
by Probe
DS isn't pi a float?

Re: multiple characters logged on from one account
Posted: Wed Sep 23, 2009 12:12 pm
by _DS_
This is a military PI.
Re: multiple characters logged on from one account
Posted: Fri Sep 25, 2009 9:50 am
by jurchiks
so what, you suggest that putting each character on seperate account and thus increasing the amount of accounts in an almost geometrical progression is better than all chars on 1 acc?
besides, right now i have only a few players, trusted even
I NEED to be able to log in with multiple chars from one acc
I can reset the server any time in case something goes wrong, so no problem there
Re: multiple characters logged on from one account
Posted: Fri Sep 25, 2009 10:32 am
by Probe
I suggest Freight.
Re: multiple characters logged on from one account
Posted: Fri Sep 25, 2009 11:11 am
by jurchiks
not for item trade, for buffers
Re: multiple characters logged on from one account
Posted: Fri Sep 25, 2009 9:38 pm
by ThePhoenixBird
jurchiks wrote:not for item trade, for buffers
Create a separate account for buffer and dual box!
If your PC is strong enought it should handle at least 2 clients open. I do not encourage it anyways, just its a idea...
Re: multiple characters logged on from one account
Posted: Sat Sep 26, 2009 9:29 am
by jurchiks
i can handle 4 windows, but the fact remains - 1 acc=1 char, thats stupid