Close the client and the player stay online!

Find the proper support area, Saga-Version.
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
User avatar
morfiuz
Posts: 90
Joined: Sun Sep 19, 2010 5:45 pm
Location: Brasil

Close the client and the player stay online!

Post 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!
User avatar
morfiuz
Posts: 90
Joined: Sun Sep 19, 2010 5:45 pm
Location: Brasil

Re: Close the client and the player stay online!

Post by morfiuz »

there is a patch to include the offline store in my version CT 1.5?


could someone help me?
User avatar
Flashy
Posts: 310
Joined: Mon Sep 29, 2008 11:49 am
Location: Germany

Re: Close the client and the player stay online!

Post 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..
User avatar
morfiuz
Posts: 90
Joined: Sun Sep 19, 2010 5:45 pm
Location: Brasil

Re: Close the client and the player stay online!

Post 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;+                                               }+                                       }                                                                        } 
Post Reply