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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • 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