All pastes #336980 Raw Edit

Unnamed

public text v1 · immutable
·published 2007-02-02 12:35 UTC
rendered paste body
Index: D:/unstable/trunk/L2_GameServer_c5/java/config/other.properties
===================================================================
--- D:/unstable/trunk/L2_GameServer_c5/java/config/other.properties	(revision 504)
+++ D:/unstable/trunk/L2_GameServer_c5/java/config/other.properties	(working copy)
@@ -64,6 +64,9 @@
 RaidMpRegenMultiplier = 100
 RaidDefenceMultiplier = 300
 
+# 300000 = 5 mins
+RaidMinionRespawnTime = 300000 
+
 # Unstuck interval, seconds, default is 300 sec.
 UnstuckInterval = 300
 
Index: D:/unstable/trunk/L2_GameServer_c5/java/net/sf/l2j/Config.java
===================================================================
--- D:/unstable/trunk/L2_GameServer_c5/java/net/sf/l2j/Config.java	(revision 504)
+++ D:/unstable/trunk/L2_GameServer_c5/java/net/sf/l2j/Config.java	(working copy)
@@ -835,6 +835,8 @@
     public static double   RAID_MP_REGEN_MULTIPLIER;
     /** Multiplier for Raid boss defense multiplier */
     public static double   RAID_DEFENCE_MULTIPLIER;
+    /** Multiplier for Raid boss defense multiplier */
+    public static int   RAID_MINION_SPAWN_TIMER;
     
     /** Amount of adenas when starting a new character */
     public static int STARTING_ADENA;
@@ -1322,6 +1324,8 @@
                 RAID_MP_REGEN_MULTIPLIER  = Double.parseDouble(otherSettings.getProperty("RaidMpRegenMultiplier", "100")) /100;    
                 RAID_DEFENCE_MULTIPLIER  = Double.parseDouble(otherSettings.getProperty("RaidDefenceMultiplier", "100")) /100;    
 	            
+                RAID_MINION_RESPAWN_TIMER  = Integer.parseInt(otherSettings.getProperty("RaidMinionRespawnTime", "300000"));
+                
 	            STARTING_ADENA      = Integer.parseInt(otherSettings.getProperty("StartingAdena", "100"));
 	            UNSTUCK_INTERVAL    = Integer.parseInt(otherSettings.getProperty("UnstuckInterval", "300"));
 
@@ -1903,7 +1907,8 @@
         else if (pName.equalsIgnoreCase("RaidHpRegenMultiplier")) RAID_HP_REGEN_MULTIPLIER = Double.parseDouble(pValue);
         else if (pName.equalsIgnoreCase("RaidMpRegenMultiplier")) RAID_MP_REGEN_MULTIPLIER = Double.parseDouble(pValue);
         else if (pName.equalsIgnoreCase("RaidDefenceMultiplier")) RAID_DEFENCE_MULTIPLIER = Double.parseDouble(pValue) /100;
-
+        else if (pName.equalsIgnoreCase("RaidMinionRespawnTime")) RAID_MINION_RESPAWN_TIMER = Integer.parseInt(pValue);
+        
         else if (pName.equalsIgnoreCase("StartingAdena")) STARTING_ADENA = Integer.parseInt(pValue);
         else if (pName.equalsIgnoreCase("UnstuckInterval")) UNSTUCK_INTERVAL = Integer.parseInt(pValue);
 
Index: D:/unstable/trunk/L2_GameServer_c5/java/net/sf/l2j/gameserver/util/MinionList.java
===================================================================
--- D:/unstable/trunk/L2_GameServer_c5/java/net/sf/l2j/gameserver/util/MinionList.java	(revision 504)
+++ D:/unstable/trunk/L2_GameServer_c5/java/net/sf/l2j/gameserver/util/MinionList.java	(working copy)
@@ -164,7 +164,7 @@
          if (_respawnTasks != null)
              for(long deathTime : _respawnTasks.keySet())
              {
-                 int delay = 300000; // respawn delay 5 min
+                 int delay = Config.RAID_DEFENCE_MULTIPLIER; // respawn delay 5 min
                  if((current - deathTime) > delay)
                  {
                 	 spawnSingleMinion(_respawnTasks.get(deathTime));