Page 1 of 2
How to configure Olympiad?
Posted: Mon May 25, 2009 8:57 pm
by detunius
One week past but nothing, no hero and etc. can anybode explain that is wrong and how should i edit dor one or 2 weeks?
#Olympiad Properties
#Mon May 25 23:14:20 EEST 2009
CurrentCycle=11
NextWeeklyChange=1243674003117
OlympiadEnd=1243846800863
Period=0
ValdationEnd=0
# Olympiad Weekly Period, Default 1 week
# Default: 604800000
AltOlyWPeriod = 604800000
# Olympiad Validation Period, Default 24 Hours.
# Default: 86400000
AltOlyVPeriod = 86400000
Re: How to configure Olympiad?
Posted: Tue May 26, 2009 9:15 am
by janiii
you can try something like this (add 2 weeks to the current time and set the oly end to a sunday 12am):
//not tested.. be sure your other oly settings are right to this change..
Code: Select all
Index: java/net/sf/l2j/gameserver/model/olympiad/Olympiad.java===================================================================--- java/net/sf/l2j/gameserver/model/olympiad/Olympiad.java (revision 3058)+++ java/net/sf/l2j/gameserver/model/olympiad/Olympiad.java (working copy)@@ -822,8 +822,8 @@ Announcements.getInstance().announceToAll(sm); Calendar currentTime = Calendar.getInstance();- currentTime.add(Calendar.MONTH, 1);- currentTime.set(Calendar.DAY_OF_MONTH, 1);+ currentTime.add(Calendar.WEEK_OF_MONTH, 2);+ currentTime.set(Calendar.DAY_OF_WEEK, Calendar.SUNDAY); currentTime.set(Calendar.AM_PM, Calendar.AM); currentTime.set(Calendar.HOUR, 12); currentTime.set(Calendar.MINUTE, 0);
Re: How to configure Olympiad?
Posted: Tue May 26, 2009 9:48 am
by detunius
i don't understand java decoding.
Re: How to configure Olympiad?
Posted: Tue Nov 17, 2009 8:40 pm
by weststylaz
janiii wrote:you can try something like this (add 2 weeks to the current time and set the oly end to a sunday 12am):
//not tested.. be sure your other oly settings are right to this change..
Code: Select all
Index: java/net/sf/l2j/gameserver/model/olympiad/Olympiad.java===================================================================--- java/net/sf/l2j/gameserver/model/olympiad/Olympiad.java (revision 3058)+++ java/net/sf/l2j/gameserver/model/olympiad/Olympiad.java (working copy)@@ -822,8 +822,8 @@ Announcements.getInstance().announceToAll(sm); Calendar currentTime = Calendar.getInstance();- currentTime.add(Calendar.MONTH, 1);- currentTime.set(Calendar.DAY_OF_MONTH, 1);+ currentTime.add(Calendar.WEEK_OF_MONTH, 2);+ currentTime.set(Calendar.DAY_OF_WEEK, Calendar.SUNDAY); currentTime.set(Calendar.AM_PM, Calendar.AM); currentTime.set(Calendar.HOUR, 12); currentTime.set(Calendar.MINUTE, 0);
is this setting for making oly for 2 weeks? instead of 1month?
Re: How to configure Olympiad?
Posted: Wed Nov 18, 2009 9:01 am
by janiii
try and you will see. i did not test the code. is only a hint where the monthly period is set, and where you can change it to 2week period. if it works, you have to test for yourself.
Re: How to configure Olympiad?
Posted: Wed Nov 18, 2009 10:36 am
by _DS_
After epilogue commit i will try to post my old work for olympiad periods, with predefined length:
Month (default), validation one day, 1
2 weeks
1 week (validation on sunday)
3 days (validation 6 hours)
1 day (validation 6 hours, each day)
Re: How to configure Olympiad?
Posted: Wed Nov 18, 2009 11:41 am
by Sirpaypi
I think the normal time is enough good...
But how we can do it with out editing java files ?
And on epilogue for the committed files it will be like the old one or we have to change them by hands

Re: How to configure Olympiad?
Posted: Wed Nov 18, 2009 4:02 pm
by weststylaz
_DS_ wrote:After epilogue commit i will try to post my old work for olympiad periods, with predefined length:
Month (default), validation one day, 1
2 weeks
1 week (validation on sunday)
3 days (validation 6 hours)
1 day (validation 6 hours, each day)
this will be really really helpful thnx for even saying this... can't wait to see it posted

Re: How to configure Olympiad?
Posted: Tue Dec 01, 2009 10:37 pm
by BlinK_
janiii wrote:you can try something like this (add 2 weeks to the current time and set the oly end to a sunday 12am):
//not tested.. be sure your other oly settings are right to this change..
Code: Select all
Index: java/net/sf/l2j/gameserver/model/olympiad/Olympiad.java===================================================================--- java/net/sf/l2j/gameserver/model/olympiad/Olympiad.java (revision 3058)+++ java/net/sf/l2j/gameserver/model/olympiad/Olympiad.java (working copy)@@ -822,8 +822,8 @@ Announcements.getInstance().announceToAll(sm); Calendar currentTime = Calendar.getInstance();- currentTime.add(Calendar.MONTH, 1);- currentTime.set(Calendar.DAY_OF_MONTH, 1);+ currentTime.add(Calendar.WEEK_OF_MONTH, 2);+ currentTime.set(Calendar.DAY_OF_WEEK, Calendar.SUNDAY); currentTime.set(Calendar.AM_PM, Calendar.AM); currentTime.set(Calendar.HOUR, 12); currentTime.set(Calendar.MINUTE, 0);
I would like to set oly to occur every week. So I guess only one number should be changed in your post. Should I also update some values in config, like weekly change period? Because if I change oly period to one week, then maybe the weekly change will collide with it.
I am still not sure how exactly it works. It is only oly without grand oly? I mean participants fight with each other and at the end of oly period all of the best from every class gets hero status? Am I right here..? (:
Re: How to configure Olympiad?
Posted: Thu Dec 31, 2009 3:23 pm
by BlinK_
_DS_ wrote:After epilogue commit i will try to post my old work for olympiad periods, with predefined length:
Month (default), validation one day, 1
2 weeks
1 week (validation on sunday)
3 days (validation 6 hours)
1 day (validation 6 hours, each day)
do you think you could commit these features now?
Re: How to configure Olympiad?
Posted: Sat Mar 06, 2010 4:13 pm
by NoX
_DS_ wrote:After epilogue commit i will try to post my old work for olympiad periods, with predefined length:
Month (default), validation one day, 1
2 weeks
1 week (validation on sunday)
3 days (validation 6 hours)
1 day (validation 6 hours, each day)
I am waiting for it

Re: How to configure Olympiad?
Posted: Mon Mar 08, 2010 6:27 pm
by gio
janiii wrote:you can try something like this (add 2 weeks to the current time and set the oly end to a sunday 12am):
//not tested.. be sure your other oly settings are right to this change..
Code: Select all
Index: java/net/sf/l2j/gameserver/model/olympiad/Olympiad.java===================================================================--- java/net/sf/l2j/gameserver/model/olympiad/Olympiad.java (revision 3058)+++ java/net/sf/l2j/gameserver/model/olympiad/Olympiad.java (working copy)@@ -822,8 +822,8 @@ Announcements.getInstance().announceToAll(sm); Calendar currentTime = Calendar.getInstance();- currentTime.add(Calendar.MONTH, 1);- currentTime.set(Calendar.DAY_OF_MONTH, 1);+ currentTime.add(Calendar.WEEK_OF_MONTH, 2);+ currentTime.set(Calendar.DAY_OF_WEEK, Calendar.SUNDAY); currentTime.set(Calendar.AM_PM, Calendar.AM); currentTime.set(Calendar.HOUR, 12); currentTime.set(Calendar.MINUTE, 0);
Does this work to make oly all 2 weeks? Or is there any other way.. using configs maybe?
Re: How to configure Olympiad?
Posted: Tue Mar 09, 2010 4:39 pm
by ramms
hello
i have an olympiad problem.
players can t see the olympiad rank at oly manager.
cause the olympiad_nobles points are not automaticly imported at olympiad_nobles_aom in databse.
is this a kind of bug.?
now i import them manualy by copy/paste.
is any way to make them automatic ?
Re: How to configure Olympiad?
Posted: Tue Mar 09, 2010 4:40 pm
by janiii
no need to post in different topics.
what is your config AltOlyShowMonthlyWinners ?
Re: How to configure Olympiad?
Posted: Tue Mar 09, 2010 5:03 pm
by ramms
janiii wrote:no need to post in different topics.
what is your config AltOlyShowMonthlyWinners ?
soz for double post
i am talking about the rank that must be refreshed every day , so players can check their rank.
AltOlyShowMonthlyWinners = True
i have seted this true.