Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ### Eclipse Workspace Patch 1.0
- #P L2Free_GameServer
- Index: head-src/com/l2jfrozen/Config.java
- ===================================================================
- --- head-src/com/l2jfrozen/Config.java (revision 180)
- +++ head-src/com/l2jfrozen/Config.java (working copy)
- @@ -1714,6 +1714,7 @@
- public static int TVT_TOP_KILLER_QTY;
- public static boolean TVT_AURA;
- public static boolean TVT_STATS_LOGGER;
- + public static boolean TVT_ALLOW_HEALER_CLASSES;
- public static boolean TVT_REMOVE_BUFFS_ON_DIE;
- // ============================================================
- @@ -1751,9 +1752,8 @@
- TVT_TOP_KILLER_QTY = Integer.parseInt(TVTSettings.getProperty("TvTTopKillerRewardQty", "2000000"));
- TVT_AURA = Boolean.parseBoolean(TVTSettings.getProperty("TvTAura", "False"));
- TVT_STATS_LOGGER = Boolean.parseBoolean(TVTSettings.getProperty("TvTStatsLogger", "true"));
- -
- + TVT_ALLOW_HEALER_CLASSES = Boolean.parseBoolean(TVTSettings.getProperty("TvTAllowedHealerClasses", "true"));
- TVT_REMOVE_BUFFS_ON_DIE = Boolean.parseBoolean(TVTSettings.getProperty("TvTRemoveBuffsOnPlayerDie", "false"));
- -
- }
- catch (final Exception e)
- {
- @@ -2339,6 +2339,7 @@
- public static boolean CTF_AURA;
- public static boolean CTF_STATS_LOGGER;
- public static int CTF_SPAWN_OFFSET;
- + public static boolean CTF_ALLOW_HEALER_CLASSES;
- public static boolean CTF_REMOVE_BUFFS_ON_DIE;
- // ============================================================
- @@ -2365,13 +2366,10 @@
- CTF_REVIVE_RECOVERY = Boolean.parseBoolean(CTFSettings.getProperty("CTFReviveRecovery", "False"));
- CTF_COMMAND = Boolean.parseBoolean(CTFSettings.getProperty("CTFCommand", "True"));
- CTF_AURA = Boolean.parseBoolean(CTFSettings.getProperty("CTFAura", "True"));
- -
- CTF_STATS_LOGGER = Boolean.parseBoolean(CTFSettings.getProperty("CTFStatsLogger", "true"));
- -
- 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"));
- -
- }
- catch (final Exception e)
- {
- Index: head-src/com/l2jfrozen/gameserver/model/entity/event/CTF.java
- ===================================================================
- --- head-src/com/l2jfrozen/gameserver/model/entity/event/CTF.java (revision 174)
- +++ head-src/com/l2jfrozen/gameserver/model/entity/event/CTF.java (working copy)
- @@ -39,6 +39,7 @@
- import com.l2jfrozen.gameserver.model.actor.instance.L2ItemInstance;
- import com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance;
- import com.l2jfrozen.gameserver.model.actor.instance.L2PetInstance;
- +import com.l2jfrozen.gameserver.model.base.ClassId;
- import com.l2jfrozen.gameserver.model.entity.Announcements;
- import com.l2jfrozen.gameserver.model.entity.event.manager.EventTask;
- import com.l2jfrozen.gameserver.model.entity.olympiad.Olympiad;
- @@ -1524,6 +1525,12 @@
- */
- }
- + if (!Config.CTF_ALLOW_HEALER_CLASSES && (eventPlayer.getClassId() == ClassId.bishop || eventPlayer.getClassId() == ClassId.cardinal || eventPlayer.getClassId() == ClassId.elder || eventPlayer.getClassId() == ClassId.evaSaint || eventPlayer.getClassId() == ClassId.shillenElder || eventPlayer.getClassId() == ClassId.shillienSaint))
- + {
- + eventPlayer.sendMessage("You cant join with Healer Class!");
- + return false;
- + }
- +
- synchronized (_players)
- {
- for (final L2PcInstance player : _players)
- Index: head-src/com/l2jfrozen/gameserver/model/entity/event/TvT.java
- ===================================================================
- --- head-src/com/l2jfrozen/gameserver/model/entity/event/TvT.java (revision 174)
- +++ head-src/com/l2jfrozen/gameserver/model/entity/event/TvT.java (working copy)
- @@ -36,6 +36,7 @@
- import com.l2jfrozen.gameserver.model.Location;
- import com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance;
- import com.l2jfrozen.gameserver.model.actor.instance.L2PetInstance;
- +import com.l2jfrozen.gameserver.model.base.ClassId;
- import com.l2jfrozen.gameserver.model.entity.Announcements;
- import com.l2jfrozen.gameserver.model.entity.event.manager.EventTask;
- import com.l2jfrozen.gameserver.model.entity.olympiad.Olympiad;
- @@ -1463,6 +1464,12 @@
- */
- }
- + if (!Config.TVT_ALLOW_HEALER_CLASSES && (eventPlayer.getClassId() == ClassId.bishop || eventPlayer.getClassId() == ClassId.cardinal || eventPlayer.getClassId() == ClassId.elder || eventPlayer.getClassId() == ClassId.evaSaint || eventPlayer.getClassId() == ClassId.shillenElder || eventPlayer.getClassId() == ClassId.shillienSaint))
- + {
- + eventPlayer.sendMessage("You cant join with Healer Class!");
- + return false;
- + }
- +
- synchronized (_players)
- {
- for (final L2PcInstance player : _players)
- Index: head-src/com/l2jfrozen/gameserver/model/entity/event/DM.java
- ===================================================================
- --- head-src/com/l2jfrozen/gameserver/model/entity/event/DM.java (revision 174)
- +++ head-src/com/l2jfrozen/gameserver/model/entity/event/DM.java (working copy)
- @@ -1451,7 +1451,7 @@
- */
- }
- - if (!Config.DM_ALLOW_HEALER_CLASSES && (eventPlayer.getClassId() == ClassId.cardinal || eventPlayer.getClassId() == ClassId.evaSaint || eventPlayer.getClassId() == ClassId.shillienSaint))
- + if (!Config.DM_ALLOW_HEALER_CLASSES && (eventPlayer.getClassId() == ClassId.bishop || eventPlayer.getClassId() == ClassId.cardinal || eventPlayer.getClassId() == ClassId.elder || eventPlayer.getClassId() == ClassId.evaSaint || eventPlayer.getClassId() == ClassId.shillenElder || eventPlayer.getClassId() == ClassId.shillienSaint))
- {
- eventPlayer.sendMessage("You cant join with Healer Class!");
- return false;
- Index: config/frozen/ctf.properties
- ===================================================================
- --- config/frozen/ctf.properties (revision 174)
- +++ config/frozen/ctf.properties (working copy)
- @@ -50,5 +50,8 @@
- # Spawn Team Offset to distribute players
- CTFSpawnOffset = 300
- +# Enable healer classes into CTF
- +CTFAllowedHealerClasses = False
- +
- # Remove Buffs on player die
- CTFRemoveBuffsOnPlayerDie = False
- \ No newline at end of file
- Index: config/frozen/tvt.properties
- ===================================================================
- --- config/frozen/tvt.properties (revision 174)
- +++ config/frozen/tvt.properties (working copy)
- @@ -70,5 +70,8 @@
- # Enable event stats logger
- TvTStatsLogger = True
- +# Enable healer classes into TVT
- +TvTAllowedHealerClasses = False
- +
- # Remove Buffs on player die
- TvTRemoveBuffsOnPlayerDie = False
- \ No newline at end of file
Add Comment
Please, Sign In to add comment