Page 1 of 1

Oly End

Posted: Mon Dec 06, 2010 10:26 am
by J0Y
L2J Revision Latest IL Rev:
L2JDP Revision Latest IL Rev:


Hi all, I am trying to change the Olympiad to choose new heroes every week, on Sunday. well its not working..
I tried doing this, but maybe im doing it wrong??

net.sf.l2j.gameserver.Olympiad.java

Code: Select all

    protected void setNewOlympiadEnd()    {        SystemMessage sm = new SystemMessage(SystemMessageId.OLYMPIAD_PERIOD_S1_HAS_STARTED);        sm.addNumber(_currentCycle);         Announcements.getInstance().announceToAll(sm);         Calendar currentTime = Calendar.getInstance();       //currentTime.add(Calendar.MONTH, 1);        currentTime.add(Calendar.HOUR, 168);       //currentTime.set(Calendar.DAY_OF_MONTH, 1);        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);        currentTime.set(Calendar.SECOND, 0);        _olympiadEnd = currentTime.getTimeInMillis();         Calendar nextChange = Calendar.getInstance();        _nextWeeklyChange = nextChange.getTimeInMillis() + WEEKLY_PERIOD;         _isOlympiadEnd = false;    }
also in gameserver console it still says 26days/blah/blah till next heroes, and i dont have a olympiad_data table, so i cant set to 0 like others say.. so it will set to the nearest, so im stuck.

Re: Oly End

Posted: Mon Dec 06, 2010 10:30 am
by Flashy

Re: Oly End

Posted: Mon Dec 06, 2010 10:31 am
by J0Y
if this dont work those wont work, maybe another method?

Re: Oly End

Posted: Mon Dec 06, 2010 10:38 am
by Flashy
this is working well on my server...
you can configure only days of month, not every sunday or something like that.. you can say every 1, 7, 14, 21, etc..
But maybe you should wait until new release, I think the oly system getting reworked.. don't know it 100% but its possible..

Re: Oly End

Posted: Mon Dec 06, 2010 9:59 pm
by J0Y
Ohh its that method, ok ill try it, btw im not using freya

Re: Oly End

Posted: Mon Dec 06, 2010 10:22 pm
by J0Y
Ok so i manually added the patch, compiled with np, but gameserver console still saying 25 days till next hero change.

Code: Select all

AltOlyEndDate = 1,8,15,22,29
Should be tomorrow next hero's
Maybe its because im using IL, i guess ill have to wait till tomorrow and see.

Re: Oly End

Posted: Mon Dec 06, 2010 10:53 pm
by SolidSnake
Set 0 to olympiad_end in olympiad_data table and start gameserver:
The olympiad engine will give you the nearest period end that you setted (1, 8, 15, 22 or 29) !

Re: Oly End

Posted: Mon Dec 06, 2010 11:16 pm
by J0Y
it doesnt exist in IL, only olympiad_nobles
so what can I do, just wait till the next set date?

Re: Oly End

Posted: Mon Dec 06, 2010 11:19 pm
by J0Y
this is off topic a bit, but lol i just realized using 1, 8, 15, 22 or 29 will make the last heros of the month only hero for 1-2 days, thats not good, hmmmm

better to use 1,8,15,22 i guess

Re: Oly End

Posted: Mon Dec 06, 2010 11:26 pm
by SolidSnake
You should have "olympiad_data", "olympiad_fights" and "olympiad_nobles_eom" too

Re: Oly End

Posted: Wed Dec 08, 2010 12:00 am
by J0Y
Well this is retarded, tried both these methods, both failed, there are no errors on either patch, no compile errors, no console errors, nothing, they just don't work, and no olympiad_data doesn't exist on Interlude.
Still saying hero's will be chosen at the end of the month, when it should be today according to my settings
maybe someone knows a way on IL, besides in the olympiad_data table(doesnt exist) to make it detect the closest end date?



move this to legacy just realized i posted in Freya support.

Re: Oly End

Posted: Wed Dec 08, 2010 12:14 am
by SolidSnake
*Facepalm* Interlude? I don't know if this patch works on it, anyway yes wrong section...

Re: Oly End

Posted: Wed Dec 08, 2010 1:12 am
by J0Y
well i just changed imports and all was ok, no errors, but i dont know if that means it will work or not. i dont see the problem

Re: Oly End

Posted: Wed Dec 08, 2010 3:01 am
by J0Y
ahhhhaa, so i did this in olympiad.property

Code: Select all

#Olympiad Properties#Tue Dec 07 19:22:53 EST 2010CurrentCycle=1NextWeeklyChange=1291850382390-OlympiadEnd=1293901200390+OlympiadEnd=0Period=0ValdationEnd=0
and restart the server and now its correct, says 7days till next hero, phew.
Now that i made it 1 week what should I make the "weekly change" now? Is the weekly period when they get the extra points? I guess i could make that 3 days