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 »

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
JMD
Advanced User
Advanced User
Posts: 1440
Joined: Wed Apr 15, 2009 10:07 am

Re: Olympiad Set days

Post by JMD »

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 »

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???
JMD
Advanced User
Advanced User
Posts: 1440
Joined: Wed Apr 15, 2009 10:07 am

Re: Olympiad Set days

Post by JMD »

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 »

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: 7005
Joined: Tue Aug 11, 2009 3:36 am

Re: Olympiad Set days

Post by Zoey76 »

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.30 ๐ŸŒŒ | Eclipse Temurin 21 โ˜• | MariaDB 11.2.2 ๐Ÿ—ƒ๏ธ | L2J Server 2.6.3.0 - High Five ๐Ÿš€

๐Ÿ”— Join our Discord! ๐ŸŽฎ๐Ÿ’ฌ
puchuperro
Posts: 7
Joined: Wed Sep 28, 2016 10:19 am

Re: Olympiad Set days

Post by puchuperro »

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 »

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