Jump to content

Recommended Posts

Posted

Config for Raid Boss status force update!

 

Index: /Equal-GameServer/java/lt/equal/gameserver/model/L2Effect.java
===================================================================
--- /Equal-GameServer/java/lt/equal/gameserver/model/L2Effect.java (revision 137)
+++ /Equal-GameServer/java/lt/equal/gameserver/model/L2Effect.java (revision 148)
@@ -416,5 +416,5 @@
				return;
			}
-			if (_period > 0)
+			if (_period > 0 || _period == -1)
			{
				startEffectTask(_period * 1000);
Index: /Equal-GameServer/java/lt/equal/gameserver/instancemanager/RaidBossSpawnManager.java
===================================================================
--- /Equal-GameServer/java/lt/equal/gameserver/instancemanager/RaidBossSpawnManager.java (revision 133)
+++ /Equal-GameServer/java/lt/equal/gameserver/instancemanager/RaidBossSpawnManager.java (revision 148)
@@ -212,5 +212,6 @@
			_schedules.put(boss.getNpcId(), futureSpawn);
			// To update immediately Database uncomment on the following line, to post the hour of respawn raid boss on your site for example or to envisage a crash landing of the waiter.
-			// updateDb();
+			if (Config.FORCE_UPDATE_RAIDBOSS_ON_DB)
+			    updateDb();
		}
		else
Index: /Equal-GameServer/java/lt/equal/Config.java
===================================================================
--- /Equal-GameServer/java/lt/equal/Config.java (revision 146)
+++ /Equal-GameServer/java/lt/equal/Config.java (revision 148)
@@ -1247,4 +1247,6 @@
	public static boolean ALLOW_SOE_IN_PVP;
	/** Allow SOE in PvP */
+	public static boolean FORCE_UPDATE_RAIDBOSS_ON_DB;
+	/** Force update raidboss on db */
	public static boolean SHOW_HTML_WELCOME;
	/** Show HTML welcome screen on login */
@@ -2492,4 +2494,5 @@
			ALLOW_POTS_IN_PVP = Boolean.parseBoolean(customSettings.getProperty("AllowPotsInPvP", "True"));
			ALLOW_SOE_IN_PVP = Boolean.parseBoolean(customSettings.getProperty("AllowSoEInPvP", "True"));
+			FORCE_UPDATE_RAIDBOSS_ON_DB = Boolean.parseBoolean(customSettings.getProperty("ForceUpdateRaidbossOnDb", "False"));
			SHOW_HTML_WELCOME = Boolean.parseBoolean(customSettings.getProperty("ShowWelcomeHTML", "False"));
			CUSTOM_MSG_ALLOWED = Boolean.parseBoolean(customSettings.getProperty("AllowCustomPvPMessage", "False"));
Index: /Equal-GameServer/config/mods/custom.properties
===================================================================
--- /Equal-GameServer/config/mods/custom.properties (revision 147)
+++ /Equal-GameServer/config/mods/custom.properties (revision 148)
@@ -56,4 +56,13 @@
# Default: False
ShowWelcomeHTML = False
+
+#-------------------------------------------------------------
+# Force Update Raid Boss On Db				     -
+#-------------------------------------------------------------
+# To update immediately Database set to true the following option,
+# to post the hour of respawn raid boss on your site for example or
+# to envisage a crash landing of the waiter.
+# Default : False
+ForceUpdateRaidbossOnDb = False

#-------------------------------------------------------------

Credits to L2J-EQUAL

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...