Bonus Time

Support for the latest build of L2J Server, get help here with installations, upgrades, problems.
Do not post bugs reports here, use viewforum.php?f=77 instead.
There is no support for other server builds than the official provided by l2jserver.com
Forum rules
READ NOW: L2j Forums Rules of Conduct
Attila
Posts: 441
Joined: Mon May 05, 2014 10:15 am

Bonus Time

Post by Attila »

Revision 6670 server
Revision 10490:DataPack_BETA

hi
how can i make bones time by not countdown
Image

to like the picture here the bonus time counds down
Image

can someone tell me how i make bonus time to cound down time.

thanks
Attila
Posts: 441
Joined: Mon May 05, 2014 10:15 am

Re: Bones Time

Post by Attila »

Somewone can help me whit this please
User avatar
Zoey76
L2j Inner Circle
L2j Inner Circle
Posts: 7005
Joined: Tue Aug 11, 2009 3:36 am

Re: Bonus Time

Post by Zoey76 »

This is an unimplemented feature, I have it done, but remaning a few things to finish, maybe I can work on it on the next days.
Powered by Eclipse 4.30 ๐ŸŒŒ | Eclipse Temurin 21 โ˜• | MariaDB 11.2.2 ๐Ÿ—ƒ๏ธ | L2J Server 2.6.3.0 - High Five ๐Ÿš€

๐Ÿ”— Join our Discord! ๐ŸŽฎ๐Ÿ’ฌ
User avatar
St3eT
Posts: 961
Joined: Sun Mar 07, 2010 6:50 pm

Re: Bonus Time

Post by St3eT »

Gist by: St3eT
If i should be black sheep for sure no as punishment
Image
Attila
Posts: 441
Joined: Mon May 05, 2014 10:15 am

Re: Bonus Time

Post by Attila »

St3eT wrote:
Gist by: St3eT
I got lots of error if try this :-(
User avatar
St3eT
Posts: 961
Joined: Sun Mar 07, 2010 6:50 pm

Re: Bonus Time

Post by St3eT »

I have some test RunTimeExceptions here, comment those lines:
https://gist.github.com/St3eT/2f48b5893 ... -diff-L128
https://gist.github.com/St3eT/2f48b5893 ... -diff-L155

And everything will be ok.
If i should be black sheep for sure no as punishment
Image
Attila
Posts: 441
Joined: Mon May 05, 2014 10:15 am

Re: Bonus Time

Post by Attila »

St3eT wrote:I have some test RunTimeExceptions here, comment those lines:
https://gist.github.com/St3eT/2f48b5893 ... -diff-L128
https://gist.github.com/St3eT/2f48b5893 ... -diff-L155

And everything will be ok.
Sorry my English is not so good
What do you mean with comment those lines?

What should I do

thanks
User avatar
St3eT
Posts: 961
Joined: Sun Mar 07, 2010 6:50 pm

Re: Bonus Time

Post by St3eT »

If i should be black sheep for sure no as punishment
Image
Attila
Posts: 441
Joined: Mon May 05, 2014 10:15 am

Re: Bonus Time

Post by Attila »

When I log in to game whit chart I get this

Image


Sorry do not know what I need to do with these 2 line

_log.log(Level.WARNING, toString() + ": Time Left runtime: ", new RuntimeException());
_log.log(Level.WARNING, toString() + ": task je null!", new RuntimeException());

do I need to change someting
User avatar
St3eT
Posts: 961
Joined: Sun Mar 07, 2010 6:50 pm

Re: Bonus Time

Post by St3eT »

Change

Code: Select all

_log.log(Level.WARNING, toString() + ": Time Left runtime: ", new RuntimeException());
to

Code: Select all

//_log.log(Level.WARNING, toString() + ": Time Left runtime: ", new RuntimeException());
and

Code: Select all

_log.log(Level.WARNING, toString() + ": task je null!", new RuntimeException());
to

Code: Select all

//_log.log(Level.WARNING, toString() + ": task je null!", new RuntimeException());
Those lines are just for testing and i forgot remove them.
If i should be black sheep for sure no as punishment
Image
Attila
Posts: 441
Joined: Mon May 05, 2014 10:15 am

Re: Bonus Time

Post by Attila »

Yes Thanks now I understand what you mean :P

only i got this now if i standing in town i got this
Image

and if i go to hunting grond and hit a mob i get this
Image

and I get this:
Image
User avatar
St3eT
Posts: 961
Joined: Sun Mar 07, 2010 6:50 pm

Re: Bonus Time

Post by St3eT »

Comment another line:

Code: Select all

_log.info("Time left je: " + _time_left);
About paused in peace zone, it's retail like
If i should be black sheep for sure no as punishment
Image
Attila
Posts: 441
Joined: Mon May 05, 2014 10:15 am

Re: Bonus Time

Post by Attila »

St3eT wrote:Comment another line:

Code: Select all

_log.info("Time left je: " + _time_left);
About paused in peace zone, it's retail like
So do i need to change somting at
java/com/l2jserver/gameserver/model/zone/type/L2PeaceZone.java

i got this now
if i try to put this at L2PeaceZone.java

+ // Stop Nevit's Advent
player.getNevitAdvent().stopAdventTask(true);
+
+ // Stop Nevit's Hourglass
+ player.storeRecommendations(true);
+

i got this error
Image

and if i take this line away
player.getNevitAdvent().stopAdventTask(true);

the error is gone

but thank you for your help and patience with me
User avatar
St3eT
Posts: 961
Joined: Sun Mar 07, 2010 6:50 pm

Re: Bonus Time

Post by St3eT »

Code: Select all

player.getNevitAdvent().stopAdventTask(true);
Is for something else (hunting bonus)
If i should be black sheep for sure no as punishment
Image
Attila
Posts: 441
Joined: Mon May 05, 2014 10:15 am

Re: Bonus Time

Post by Attila »

St3eT wrote:Comment another line:

Code: Select all

_log.info("Time left je: " + _time_left);
About paused in peace zone, it's retail like
And what do i nee do with this
should I replace it somewhere whit a othere line
Post Reply