Noticias:

Debes de estar registrado para poder ver el contenido indicado. Registrate o Conectate

Menú Principal

Restringir Clases Healers en Eventos

Iniciado por Swarlog, Ago 31, 2022, 08:25 PM

Tema anterior - Siguiente tema

Swarlog

CitarTVT

Head-src/com/l2jfrozen/Config.java

@@ 1670 - 1674

 public static boolean TVT_STATS_LOGGER;
 public static boolean TVT_REMOVE_BUFFS_ON_DIE;
+public static boolean TVT_ALLOW_HEALER_CLASSES;
   
// ============================================================
   
@@ 1708 -1710
 
 TVT_STATS_LOGGER = Boolean.parseBoolean(TVTSettings.getProperty("TvTStatsLogger", "true"));
+TVT_ALLOW_HEALER_CLASSES = Boolean.parseBoolean(TVTSettings.getProperty("TVTAllowedHealerClasses", "false"));
 TVT_REMOVE_BUFFS_ON_DIE = Boolean.parseBoolean(TVTSettings.getProperty("TvTRemoveBuffsOnPlayerDie", "false"));

 head-src/com/l2frozen/gameserver/model/entity/event/TvT.java

@@ 1460

 /*
 * eventPlayer.sendMessage("Dual Box not allowed in Events"); return false;
 */
 }
 +
 +if (!Config.TVT_ALLOW_HEALER_CLASSES && (eventPlayer.getClassId() == ClassId.cardinal || eventPlayer.getClassId() == ClassId.evaSaint || eventPlayer.getClassId() == ClassId.shillienSaint || eventPlayer.getClassId() == ClassId.bishop || eventPlayer.getClassId() == ClassId.elder || eventPlayer.getClassId() == ClassId.shillenElder ))
 +{
 +eventPlayer.sendMessage("Tu no Puedes Participar con Healer Class!");
 +return false;
 }
       
 config/frozen/tvt.properties

@@ 70-77

 # Enable event stats logger
 TvTStatsLogger = True

 +# Enable healer classes into TVT
 +TVTAllowedHealerClasses = False

 # Remove Buffs on player die
 TvTRemoveBuffsOnPlayerDie = False

CitarCTF

head-src/com/l2jfrozen/config.java

@@ 2301 2303

 public static int CTF_SPAWN_OFFSET;
 public static boolean CTF_REMOVE_BUFFS_ON_DIE;
+public static boolean CTF_ALLOW_HEALER_CLASSES;
   
// ============================================================

@@ 2334 2337

 CTF_SPAWN_OFFSET = Integer.parseInt(CTFSettings.getProperty("CTFSpawnOffset", "100"));
+CTF_ALLOW_HEALER_CLASSES = Boolean.parseBoolean(CTFSettings.getProperty("CTFAllowedHealerClasses", "true"));
 CTF_REMOVE_BUFFS_ON_DIE = Boolean.parseBoolean(CTFSettings.getProperty("CTFRemoveBuffsOnPlayerDie", "false"));
 
 head-src/com/l2jfrozen/gameserver/model/entity/event/CTF.java
 
@@ 1526 1535
 
 /*
 * eventPlayer.sendMessage("Dual Box not allowed in Events"); return false;
 */
 }
 +
 +if (!Config.CTF_ALLOW_HEALER_CLASSES && (eventPlayer.getClassId() == ClassId.cardinal || eventPlayer.getClassId() == ClassId.evaSaint || eventPlayer.getClassId() == ClassId.shillienSaint || eventPlayer.getClassId() == ClassId.bishop || eventPlayer.getClassId() == ClassId.elder || eventPlayer.getClassId() == ClassId.shillenElder ))
 +{
 +eventPlayer.sendMessage("Tu no Puedes Participar con Healer Class!");
 +return false;
 }
 
 config/frozen/ctf.properties
 
@@ 47 54
 
 # Enable event stats logger
 CTFStatsLogger = True

+# Enable healer classes into CTF
+CTFAllowedHealerClasses = False

 # Spawn Team Offset to distribute players
 CTFSpawnOffset = 300