multiple characters logged on from one account
Forum rules
READ NOW: L2j Forums Rules of Conduct
READ NOW: L2j Forums Rules of Conduct
- jurchiks
- Posts: 6769
- Joined: Sat Sep 19, 2009 4:16 pm
- Location: Eastern Europe
multiple characters logged on from one account
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?
can't seem to find a config for this, maybe someone can show me exactly where it is?
- Ashitaka
- Posts: 96
- Joined: Thu Jul 12, 2007 4:04 am
- Location: Spain
Re: multiple characters logged on from one account
Hi jurchiks,
Not in loginserver.properties so it is not L2J feature.
Not in loginserver.properties so it is not L2J feature.
- jurchiks
- Posts: 6769
- Joined: Sat Sep 19, 2009 4:16 pm
- Location: Eastern Europe
Re: multiple characters logged on from one account
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
I found some things there, but not what i am looking for, so i need a full answer from someone who knows the deal
- Ashitaka
- Posts: 96
- Joined: Thu Jul 12, 2007 4:04 am
- Location: Spain
Re: multiple characters logged on from one account
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
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.

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;
Have a nice day.
- jurchiks
- Posts: 6769
- Joined: Sat Sep 19, 2009 4:16 pm
- Location: Eastern Europe
Re: multiple characters logged on from one account
Alright, huge thanks to you 

-
- L2j Veteran
- Posts: 3437
- Joined: Wed Apr 30, 2008 8:53 am
- Location: Russia
Re: multiple characters logged on from one account
Please avoid using such things ! This will open way to several very bad exploits.
Commiter of the shit
public static final int PI = 3.1415926535897932384626433832795;
public static final int PI = 3.1415926535897932384626433832795;
- momo61
- Posts: 1648
- Joined: Fri Jun 06, 2008 2:05 pm
- Location: Europe
Re: multiple characters logged on from one account
lol ... you can only start imagening all the big exploits xD !!!_DS_ wrote:Please avoid using such things ! This will open way to several very bad exploits.
Warehouse, Freight, Trade, Drop and much more ^_^
- ThePhoenixBird
- L2j Inner Circle
- Posts: 1857
- Joined: Fri May 27, 2005 5:11 pm
Re: multiple characters logged on from one account
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.

-
- Posts: 915
- Joined: Thu Sep 03, 2009 6:36 pm
- Location: Israel
- Contact:
Re: multiple characters logged on from one account
DS isn't pi a float? 

-
- L2j Veteran
- Posts: 3437
- Joined: Wed Apr 30, 2008 8:53 am
- Location: Russia
Re: multiple characters logged on from one account
This is a military PI.
Commiter of the shit
public static final int PI = 3.1415926535897932384626433832795;
public static final int PI = 3.1415926535897932384626433832795;
- jurchiks
- Posts: 6769
- Joined: Sat Sep 19, 2009 4:16 pm
- Location: Eastern Europe
Re: multiple characters logged on from one account
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
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
If you have problems, FIRST TRY SOLVING THEM YOURSELF, and if you get errors, TRY TO ANALYZE THEM, and ONLY if you can't help it, THEN ask here.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
-
- Posts: 915
- Joined: Thu Sep 03, 2009 6:36 pm
- Location: Israel
- Contact:
Re: multiple characters logged on from one account
I suggest Freight.
- jurchiks
- Posts: 6769
- Joined: Sat Sep 19, 2009 4:16 pm
- Location: Eastern Europe
Re: multiple characters logged on from one account
not for item trade, for buffers
- ThePhoenixBird
- L2j Inner Circle
- Posts: 1857
- Joined: Fri May 27, 2005 5:11 pm
Re: multiple characters logged on from one account
Create a separate account for buffer and dual box!jurchiks wrote:not for item trade, for buffers
If your PC is strong enought it should handle at least 2 clients open. I do not encourage it anyways, just its a idea...
- jurchiks
- Posts: 6769
- Joined: Sat Sep 19, 2009 4:16 pm
- Location: Eastern Europe
Re: multiple characters logged on from one account
i can handle 4 windows, but the fact remains - 1 acc=1 char, thats stupid
If you have problems, FIRST TRY SOLVING THEM YOURSELF, and if you get errors, TRY TO ANALYZE THEM, and ONLY if you can't help it, THEN ask here.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.