l2vicio Posted July 21, 2010 Share Posted July 21, 2010 I've searched everywhere and there was no good answer.. How can i change the sieges to happen every week... I know a little about java, but i can't find WHERE to modify this. Someone give me a light please! Link to comment Share on other sites More sharing options...
0 adenaman Posted July 21, 2010 Share Posted July 21, 2010 http://www.maxcheaters.com/forum/index.php?topic=47248.0 Link to comment Share on other sites More sharing options...
0 l2vicio Posted July 21, 2010 Author Share Posted July 21, 2010 this is about olympiads.. i want sieges weekly Link to comment Share on other sites More sharing options...
0 adenaman Posted July 21, 2010 Share Posted July 21, 2010 lol my bad, 5 am is not a good hour to read forum :S Link to comment Share on other sites More sharing options...
0 l2vicio Posted July 21, 2010 Author Share Posted July 21, 2010 :) So you don't know where i can find this? Link to comment Share on other sites More sharing options...
0 adenaman Posted July 21, 2010 Share Posted July 21, 2010 model/entity/siege.java in setNextSiegeDate dont have time to read it good now, but i hope there you can change it Link to comment Share on other sites More sharing options...
0 l2vicio Posted July 21, 2010 Author Share Posted July 21, 2010 Thx.... I was looking for this file :) Link to comment Share on other sites More sharing options...
0 l2vicio Posted July 21, 2010 Author Share Posted July 21, 2010 getCastle().getSiegeDate().add(Calendar.DAY_OF_MONTH, 7); if i change 7 to 1... it will be weekly? i didn't understood this very well. Link to comment Share on other sites More sharing options...
0 MicrOz Posted July 21, 2010 Share Posted July 21, 2010 /** Set the date for the next siege. */ private void setNextSiegeDate() { while (getCastle().getSiegeDate().getTimeInMillis() < Calendar.getInstance().getTimeInMillis()) { if (getCastle().getSiegeDate().get(Calendar.DAY_OF_WEEK) != Calendar.SATURDAY && getCastle().getSiegeDat().get(Calendar.DAY_OF_WEEK) != Calendar.SUNDAY) getCastle().getSiegeDate().set(Calendar.DAY_OF_WEEK, Calendar.SATURDAY); // from CT2.3 Castle sieges are on Sunday, but if server admins allow to set day of the siege // then sieges can occur on Saturdays as well11. if (getCastle().getSiegeDate().get(Calendar.DAY_OF_WEEK) == Calendar.SATURDAY && !Config.CL_SET_SIEGE_TIME_LIST.contains("day")) getCastle().getSiegeDate().set(Calendar.DAY_OF_WEEK, Calendar.SUNDAY); // set the next siege day to the next weekend getCastle().getSiegeDate().add(Calendar.DAY_OF_MONTH, 7); } Link to comment Share on other sites More sharing options...
0 l2vicio Posted July 21, 2010 Author Share Posted July 21, 2010 ??? Didn't understand. Link to comment Share on other sites More sharing options...
0 3JI0 Posted July 21, 2010 Share Posted July 21, 2010 here u r http://www.maxcheaters.com/forum/index.php?topic=138037.0 Link to comment Share on other sites More sharing options...
0 kajamajin Posted July 21, 2010 Share Posted July 21, 2010 here u r http://www.maxcheaters.com/forum/index.php?topic=138037.0 It's work? I don't thing so. Link to comment Share on other sites More sharing options...
0 3JI0 Posted July 21, 2010 Share Posted July 21, 2010 I don't know so if u need this u have to test it. And btw remove that annoying picture plz! Link to comment Share on other sites More sharing options...
0 Matim Posted July 21, 2010 Share Posted July 21, 2010 Wrong Section, topic locked. Link to comment Share on other sites More sharing options...
Question
l2vicio
I've searched everywhere and there was no good answer..
How can i change the sieges to happen every week...
I know a little about java, but i can't find WHERE to modify this.
Someone give me a light please!
Link to comment
Share on other sites
13 answers to this question
Recommended Posts