Jump to content

[SHARE]Weekly Sieges


Recommended Posts

Patch

Index: /trunk/Game/config/main/custom.ini
===================================================================
--- /trunk/Game/config/main/custom.ini (revision 357)
+++ /trunk/Game/config/main/custom.ini (revision 358)
@@ -437,2 +437,9 @@
# Default: True
CustomMerchantTables = True
+
+# ---------------------------------------------------------------------------
+# Custom Siege
+# ---------------------------------------------------------------------------
+# Make Siege Every Week?
+# Default: False
+SiegeEveryWeek = False
Index: /trunk/Game/src/main/java/com/l2open/gameserver/model/entity/Siege.java
===================================================================
--- /trunk/Game/src/main/java/com/l2open/gameserver/model/entity/Siege.java (revision 221)
+++ /trunk/Game/src/main/java/com/l2open/gameserver/model/entity/Siege.java (revision 358)
@@ -1454,5 +1454,5 @@
			siegeDate.add(Calendar.DAY_OF_MONTH, 7);
		}
-		if (!SevenSigns.getInstance().isDateInSealValidPeriod(siegeDate))
+		if (!SevenSigns.getInstance().isDateInSealValidPeriod(siegeDate) && !Config.ALT_SIEGE_EVERY_WEEK)
			siegeDate.add(Calendar.DAY_OF_MONTH, 7);
		_isRegistrationOver = false; // Allow registration for next siege
Index: /trunk/Game/src/main/java/com/l2open/Config.java
===================================================================
--- /trunk/Game/src/main/java/com/l2open/Config.java (revision 323)
+++ /trunk/Game/src/main/java/com/l2open/Config.java (revision 358)
@@ -2047,4 +2047,5 @@
	public static boolean ALLOW_SPECIAL_VOICED_COMMANDS;
	public static int ALT_SOUL_CRYSTAL_LEVEL_CHANCE;
+    	public static boolean ALT_SIEGE_EVERY_WEEK;

	// *******************************************************************************************************
@@ -2149,4 +2150,5 @@
			ALLOW_SPECIAL_VOICED_COMMANDS = Boolean.parseBoolean(customSettings.getProperty("AllowSpecialVoicedCommands", "False"));
			ALT_SOUL_CRYSTAL_LEVEL_CHANCE = Integer.parseInt(customSettings.getProperty("AltSoulCrystalLevelChance", "32"));
+			ALT_SIEGE_EVERY_WEEK = Boolean.parseBoolean(customSettings.getProperty("SiegeEveryWeek", "False"));
		}
		catch (Exception e)

Link to comment
Share on other sites

  • 2 weeks later...
  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock