Skip to content

[Help]Weekly Sieges

Featured Replies

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!

  • Author

this is about olympiads.. i want sieges weekly

lol my bad, 5 am is not a good hour to read forum :S

  • Author

:) So you don't know where i can find this?

model/entity/siege.java

in setNextSiegeDate

dont have time to read it good now, but i hope there you can change it

  • Author

Thx....

I was looking for this file :)

  • Author

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.


/** 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);
	}

  • Author

??? Didn't understand.

I don't know so if u need this u have to test it.

And btw remove that annoying picture plz!

Wrong Section, topic locked.

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.