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
Olympiad Set days
Forum rules
READ NOW: L2j Forums Rules of Conduct
READ NOW: L2j Forums Rules of Conduct
-
- Advanced User
- Posts: 1440
- Joined: Wed Apr 15, 2009 10:07 am
Re: Olympiad Set days
This should get you 50% of the way.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
Gist by: JMD13
-
- Posts: 7
- Joined: Wed Sep 28, 2016 10:19 am
Re: Olympiad Set days
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???
\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???
-
- Advanced User
- Posts: 1440
- Joined: Wed Apr 15, 2009 10:07 am
Re: Olympiad Set days
there are no simple solutions with l2j, try adding the patch manually (copy - paste then remove the +)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???
or look where the Announcements.java has been moved and fix the import path.
-
- Posts: 7
- Joined: Wed Sep 28, 2016 10:19 am
Re: Olympiad Set days
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
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
- Zoey76
- L2j Inner Circle
- Posts: 7008
- Joined: Tue Aug 11, 2009 3:36 am
Re: Olympiad Set days
I've requested a developer to check it and evaluate if we can add it to the source as a configurable setting.
Powered by Eclipse 4.34
| Eclipse Temurin 21
| MariaDB 11.3.2
| L2J Server 2.6.3.0 - High Five 
Join our Discord! 

-
- Posts: 7
- Joined: Wed Sep 28, 2016 10:19 am
Re: Olympiad Set days
Thx Zoey76 that will be helpfull for all noobs like me
-
- Posts: 7
- Joined: Wed Sep 28, 2016 10:19 am
Re: Olympiad Set days
Any news ???puchuperro wrote: โThu Jul 20, 2017 10:35 am Thx Zoey76 that will be helpfull for all noobs like me