Page 1 of 1

[Important] Saving No Restart Zone times working?

Posted: Sun Aug 26, 2012 10:26 am
by DreamStage
Hello, i was wondering because this code

Code: Select all

getActiveChar().storeZoneRestartLimitTime();
is practically dead:

Code: Select all

class DisconnectTask implements Runnable    {         /**         * @see java.lang.Runnable#run()         */        public void run()        {            boolean fast = true;             try            {                final L2PcInstance player = L2GameClient.this.getActiveChar();                if (player != null && !isDetached())                {                    _log.info("made store restart limit time");                    getActiveChar().storeZoneRestartLimitTime(); //FIXME
Is this working? at L2GameClient.java class

Because everytime the player logs out, ofc player will be null, and so getActiveChar().

Re: [Important] Saving No Restart Zone times working?

Posted: Sun Aug 26, 2012 10:37 pm
by DreamStage
Ok, i fix it, for me its working correctly now, for me i did this way: Instead insertint the:

Code: Select all

player.storeZoneRestartLimitTime();
into L2GameClient.java like i showed above, remove it and add it at RequestRestart.java file, below this line:

Code: Select all

// Remove player from Boss Zoneplayer.removeFromBossZone();player.storeZoneRestartLimitTime();