multiple characters logged on from one account

If something doesn't fit in any other forum then post it here.
Forum rules
READ NOW: L2j Forums Rules of Conduct
User avatar
jurchiks
Posts: 6769
Joined: Sat Sep 19, 2009 4:16 pm
Location: Eastern Europe

multiple characters logged on from one account

Post 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?
User avatar
Ashitaka
Posts: 96
Joined: Thu Jul 12, 2007 4:04 am
Location: Spain

Re: multiple characters logged on from one account

Post by Ashitaka »

Hi jurchiks,

Not in loginserver.properties so it is not L2J feature.
User avatar
jurchiks
Posts: 6769
Joined: Sat Sep 19, 2009 4:16 pm
Location: Eastern Europe

Re: multiple characters logged on from one account

Post 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
User avatar
Ashitaka
Posts: 96
Joined: Thu Jul 12, 2007 4:04 am
Location: Spain

Re: multiple characters logged on from one account

Post 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.
User avatar
jurchiks
Posts: 6769
Joined: Sat Sep 19, 2009 4:16 pm
Location: Eastern Europe

Re: multiple characters logged on from one account

Post by jurchiks »

Alright, huge thanks to you :)
_DS_
L2j Veteran
L2j Veteran
Posts: 3437
Joined: Wed Apr 30, 2008 8:53 am
Location: Russia

Re: multiple characters logged on from one account

Post by _DS_ »

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;
User avatar
momo61
Posts: 1648
Joined: Fri Jun 06, 2008 2:05 pm
Location: Europe

Re: multiple characters logged on from one account

Post 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 ^_^
User avatar
ThePhoenixBird
L2j Inner Circle
L2j Inner Circle
Posts: 1857
Joined: Fri May 27, 2005 5:11 pm

Re: multiple characters logged on from one account

Post by ThePhoenixBird »

That would release the hell in your server with so many exploits and cheats that are possible without that restriction :x do it at your own risk, a single mistake can destroy a long running server in just 1 hour.
Probe
Posts: 915
Joined: Thu Sep 03, 2009 6:36 pm
Location: Israel
Contact:

Re: multiple characters logged on from one account

Post by Probe »

DS isn't pi a float? ;)
_DS_
L2j Veteran
L2j Veteran
Posts: 3437
Joined: Wed Apr 30, 2008 8:53 am
Location: Russia

Re: multiple characters logged on from one account

Post by _DS_ »

This is a military PI.
Commiter of the shit
public static final int PI = 3.1415926535897932384626433832795;
User avatar
jurchiks
Posts: 6769
Joined: Sat Sep 19, 2009 4:16 pm
Location: Eastern Europe

Re: multiple characters logged on from one account

Post 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
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.
Probe
Posts: 915
Joined: Thu Sep 03, 2009 6:36 pm
Location: Israel
Contact:

Re: multiple characters logged on from one account

Post by Probe »

I suggest Freight.
User avatar
jurchiks
Posts: 6769
Joined: Sat Sep 19, 2009 4:16 pm
Location: Eastern Europe

Re: multiple characters logged on from one account

Post by jurchiks »

not for item trade, for buffers
User avatar
ThePhoenixBird
L2j Inner Circle
L2j Inner Circle
Posts: 1857
Joined: Fri May 27, 2005 5:11 pm

Re: multiple characters logged on from one account

Post 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...
User avatar
jurchiks
Posts: 6769
Joined: Sat Sep 19, 2009 4:16 pm
Location: Eastern Europe

Re: multiple characters logged on from one account

Post by jurchiks »

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.
Post Reply