Skip to content

[SHARE]Weekly Sieges

Featured Replies

Thanks usefull . How to change time ?

 

On the BD you can change the time...

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)

i tried to add it but i cant find

if (!SevenSigns.getInstance().isDateInSealValidPeriod(siegeDate))

I use interlude l2j

  • 5 weeks later...

i tried to add it but i cant find

if (!SevenSigns.getInstance().isDateInSealValidPeriod(siegeDate))

I use interlude l2j

 

i can't find it either maybe the creator of the thread can give as an alternative import for this code :S

 

i can't find it either maybe the creator of the thread can give as an alternative import for this code :S

If you find it let me know cause i wanna change it.

Create an account or sign in to comment

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.