Page 1 of 1

Close the client and the player stay online!

Posted: Fri Sep 23, 2011 12:03 pm
by morfiuz
If you want to receive support we need this info to help you properly.
» Find Revision
L2J Revision CT 1.5:
L2JDP Revision CT 1.5:

looking at a friend's server, hellbound version, I discovered that when he did not disconnect the player was offline.
then asked him, why this?

He answered that. In hellbound version does not have offline shop, he decided to leave the player online, but the gameclient closed.

How do I close my account and leave the character online. Check if this in privatestore and simple, but it closed the client disconnects the char?

I tried a patch offline store but have not found ...

would appreciate if someone help me!

Re: Close the client and the player stay online!

Posted: Sun Sep 25, 2011 6:07 am
by morfiuz
there is a patch to include the offline store in my version CT 1.5?


could someone help me?

Re: Close the client and the player stay online!

Posted: Sun Sep 25, 2011 1:03 pm
by Flashy
its not supported / Implemented in ct1.5. try to use the code from higher branches, but I think the client does not support this, because of missing networkpacket / other needed network protocol..

Re: Close the client and the player stay online!

Posted: Mon Sep 26, 2011 11:05 am
by morfiuz
I reviewed and got what I wanted! is a bit contrived, but it might help others ...


Code: Select all

 java/net/sf/l2j/gameserver/network/clientpackets/Logout.java@@ -103,6 +103,13 @@                 }                  TvTEvent.onLogout(player);+               +               if (player.isInStoreMode() || player.isInCraftMode())+               {+                       player.closeNetConnection();+                       return;+               } 

Code: Select all

 java/net/sf/l2j/gameserver/network/L2GameClient.java@@ -39,6 +39,7 @@ import net.sf.l2j.gameserver.model.L2World; import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance; import net.sf.l2j.gameserver.model.entity.L2Event;+import net.sf.l2j.gameserver.model.entity.TvTEvent; import net.sf.l2j.gameserver.network.serverpackets.L2GameServerPacket; import net.sf.l2j.util.EventData; @@ -580,9 +581,25 @@                                                                                           L2PcInstance player = L2GameClient.this.getActiveChar();                                if (player != null)                                 {+                                       if (!player.isInOlympiadMode() && !player.isFestivalParticipant() && !TvTEvent.isPlayerParticipant(player.getObjectId()) && !player.isInJail())+                                       {+                                               if (player.isInStoreMode() || player.isInCraftMode())+                                               {+                                                       player.leaveParty();+                                                       player.getAppearance().setNameColor(Integer.decode("0x808080"));+                                                       player.broadcastUserInfo();+                                                       +                                                       return;+                                               }+                                       }                                                                        }