[Important] Saving No Restart Zone times working?

This is not a Support area! Discuss about the Server here. Non-Server related discussion goes in Off-Topic Discussion.
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
User avatar
DreamStage
Posts: 222
Joined: Mon Oct 11, 2010 2:38 am
Location: Portugal

[Important] Saving No Restart Zone times working?

Post 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().
Ignorance comes when you dont want to know the truth about facts.
User avatar
DreamStage
Posts: 222
Joined: Mon Oct 11, 2010 2:38 am
Location: Portugal

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

Post 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();
Ignorance comes when you dont want to know the truth about facts.
Post Reply