Jump to content

[Share]Offline Trade , Craft


Recommended Posts

Try this, if u don't have.

Index: /TrunK/Trance-Core/java/net/sf/l2j/gameserver/network/L2GameClient.java
===================================================================
--- /TrunK/Trance-Core/java/net/sf/l2j/gameserver/network/L2GameClient.java (revision 2)
+++ /TrunK/Trance-Core/java/net/sf/l2j/gameserver/network/L2GameClient.java (revision 13)
@@ -70,4 +70,6 @@
	public byte packetsSentInSec = 0;
	public int packetsSentStartTick = 0;
+	
+	private boolean _isDetached = false;

	public L2GameClient(MMOConnection<L2GameClient> con)
@@ -168,5 +170,15 @@
		gsp.runImpl();
	}
-
+	
+	public boolean isDetached()
+	{
+		return _isDetached;
+	}
+
+	public void setDetached(boolean b)
+	{
+		_isDetached = b;
+	}
+	
	public L2PcInstance markToDeleteChar(int charslot) throws Exception
	{

Now i will test it, but Detached must be something in Offline Trade Chat
Link to comment
Share on other sites

Actually it was:

if (player != null)
				{

					if (!player.isInOlympiadMode().....

and I changed to:

if (player != null && !isDetached())
				{
				    setDetached(true);
					if (!player.isInOlympiadMode()

Now it's ok.. Thanks for your help

Link to comment
Share on other sites

Hello, guys. I was wondering how could i make all offline characters to be saved and loaded, before and after server restart. If any suggestions pop up, lemme know. Thanks in advance!

Link to comment
Share on other sites

Hello, guys. I was wondering how could i make all offline characters to be saved and loaded, before and after server restart. If any suggestions pop up, lemme know. Thanks in advance!

a restore manager by config.key can do that , pm me with your email and I will help you to do it.
Link to comment
Share on other sites

  • 3 months later...
  • 1 month later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.




×
×
  • Create New...