Oly End
Posted: Mon Dec 06, 2010 10:26 am
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
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.
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; }