We moved our repositories to BitBucket!

If you can't login or you can't register to the forums do not rise an issue, instead please write to support (at) l2jserver.com

Check our wiki!

Report server issues here

Forum has been updated to phpBB 3.2, let's see if this fixes some minor bugs we had.

Thank you for visiting http://www.l2jserver.com/

Olympiad Set days

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
Post Reply
puchuperro
Posts: 7
Joined: Wed Sep 28, 2016 10:19 am

Olympiad Set days

Post by puchuperro » Wed Jun 28, 2017 12:27 pm

Hi every one i use marter branch
i will like to set olympiad only friday and saturday and give hero every week
is that posible ??

sorry i am new , but leaning , ty all

User avatar
JMD
Advanced User
Advanced User
Posts: 1413
Joined: Wed Apr 15, 2009 10:07 am
Contact:

Re: Olympiad Set days

Post by JMD » Thu Jun 29, 2017 7:38 am

puchuperro wrote:
Wed Jun 28, 2017 12:27 pm
Hi every one i use marter branch
i will like to set olympiad only friday and saturday and give hero every week
is that posible ??

sorry i am new , but leaning , ty all
This should get you 50% of the way.
Gist by: JMD13

puchuperro
Posts: 7
Joined: Wed Sep 28, 2016 10:19 am

Re: Olympiad Set days

Post by puchuperro » Thu Jun 29, 2017 2:34 pm

I tryed , but when i copile give me error

\git\l2j_server\src\main\java\com\l2jserver\gameserver\model\olympiad\Olympiad.java:610: error: cannot find symbol
Announcements.getInstance().announceToAll(sm);
^
symbol: variable Announcements
location: class Olympiad
> Building 5% > :compileJava

there is not somethig more simple???

User avatar
JMD
Advanced User
Advanced User
Posts: 1413
Joined: Wed Apr 15, 2009 10:07 am
Contact:

Re: Olympiad Set days

Post by JMD » Sat Jul 01, 2017 1:59 pm

puchuperro wrote:
Thu Jun 29, 2017 2:34 pm
I tryed , but when i copile give me error

\git\l2j_server\src\main\java\com\l2jserver\gameserver\model\olympiad\Olympiad.java:610: error: cannot find symbol
Announcements.getInstance().announceToAll(sm);
^
symbol: variable Announcements
location: class Olympiad
> Building 5% > :compileJava

there is not somethig more simple???
there are no simple solutions with l2j, try adding the patch manually (copy - paste then remove the +)

or look where the Announcements.java has been moved and fix the import path.

puchuperro
Posts: 7
Joined: Wed Sep 28, 2016 10:19 am

Re: Olympiad Set days

Post by puchuperro » Tue Jul 04, 2017 1:15 pm

Thx for all
No posible to add somethig like this???

Calendar now = Calendar.getInstance();
int day = now.get(Calendar.DAY_OF_WEEK);
if (day >= Calendar.MONDAY && day <= Calendar.FRIDAY)
// do something

User avatar
Zoey76
L2j Inner Circle
L2j Inner Circle
Posts: 6886
Joined: Tue Aug 11, 2009 3:36 am

Re: Olympiad Set days

Post by Zoey76 » Tue Jul 04, 2017 4:16 pm

I've requested a developer to check it and evaluate if we can add it to the source as a configurable setting.
Using Eclipse 4.11 - OpenJDK11 - MySQL 8.0.12 - L2J Server

puchuperro
Posts: 7
Joined: Wed Sep 28, 2016 10:19 am

Re: Olympiad Set days

Post by puchuperro » Thu Jul 20, 2017 10:35 am

Thx Zoey76 that will be helpfull for all noobs like me

puchuperro
Posts: 7
Joined: Wed Sep 28, 2016 10:19 am

Re: Olympiad Set days

Post by puchuperro » Sun Dec 10, 2017 5:59 am

puchuperro wrote:
Thu Jul 20, 2017 10:35 am
Thx Zoey76 that will be helpfull for all noobs like me
Any news ???

Post Reply