Oly End

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
User avatar
J0Y
Posts: 73
Joined: Wed Dec 31, 2008 6:22 pm

Oly End

Post 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.
User avatar
Flashy
Posts: 310
Joined: Mon Sep 29, 2008 11:49 am
Location: Germany

Re: Oly End

Post by Flashy »

User avatar
J0Y
Posts: 73
Joined: Wed Dec 31, 2008 6:22 pm

Re: Oly End

Post by J0Y »

if this dont work those wont work, maybe another method?
User avatar
Flashy
Posts: 310
Joined: Mon Sep 29, 2008 11:49 am
Location: Germany

Re: Oly End

Post 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..
User avatar
J0Y
Posts: 73
Joined: Wed Dec 31, 2008 6:22 pm

Re: Oly End

Post by J0Y »

Ohh its that method, ok ill try it, btw im not using freya
User avatar
J0Y
Posts: 73
Joined: Wed Dec 31, 2008 6:22 pm

Re: Oly End

Post 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.
User avatar
SolidSnake
Posts: 865
Joined: Wed Jan 20, 2010 6:54 pm
Location: Italy

Re: Oly End

Post 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) !
Image
User avatar
J0Y
Posts: 73
Joined: Wed Dec 31, 2008 6:22 pm

Re: Oly End

Post by J0Y »

it doesnt exist in IL, only olympiad_nobles
so what can I do, just wait till the next set date?
User avatar
J0Y
Posts: 73
Joined: Wed Dec 31, 2008 6:22 pm

Re: Oly End

Post 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
User avatar
SolidSnake
Posts: 865
Joined: Wed Jan 20, 2010 6:54 pm
Location: Italy

Re: Oly End

Post by SolidSnake »

You should have "olympiad_data", "olympiad_fights" and "olympiad_nobles_eom" too
Image
User avatar
J0Y
Posts: 73
Joined: Wed Dec 31, 2008 6:22 pm

Re: Oly End

Post 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.
User avatar
SolidSnake
Posts: 865
Joined: Wed Jan 20, 2010 6:54 pm
Location: Italy

Re: Oly End

Post by SolidSnake »

*Facepalm* Interlude? I don't know if this patch works on it, anyway yes wrong section...
Image
User avatar
J0Y
Posts: 73
Joined: Wed Dec 31, 2008 6:22 pm

Re: Oly End

Post 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
User avatar
J0Y
Posts: 73
Joined: Wed Dec 31, 2008 6:22 pm

Re: Oly End

Post 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
Post Reply