SoRa Posted November 21, 2010 Posted November 21, 2010 Very Big THX!!! I Was Searching for this share but nothing :S. Thx!!! Quote
Spidey* Posted November 21, 2010 Posted November 21, 2010 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 Quote
Trance Posted November 21, 2010 Posted November 21, 2010 Now i will test it, but Detached must be something in Offline Trade Chat Nop... Quote
Spidey* Posted November 21, 2010 Posted November 21, 2010 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 Quote
Salty Mike Posted November 23, 2010 Posted November 23, 2010 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! Quote
orafaelo Posted November 24, 2010 Posted November 24, 2010 thanks i didnt knew how to to that :) Quote
suntcinic Posted November 25, 2010 Posted November 25, 2010 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. Quote
ImmortalKiller Posted November 25, 2010 Posted November 25, 2010 thanks i didnt knew how to to that :) same.thanks Quote
deleburth Posted December 2, 2010 Posted December 2, 2010 Awesome, I will surely test this! Hope there'd be no problems with integration Quote
larroukos Posted April 18, 2011 Posted April 18, 2011 I have an error on .isDetached() :/ how could i fix it? Quote
nickba Posted April 25, 2011 Posted April 25, 2011 Thank you very much,it is working perfectly ;D Quote
Recommended Posts
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.