xRelic

TvT/CTF/DM allow healer

Jul 6th, 2021 (edited)
380
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.46 KB | None | 0 0
  1. ### Eclipse Workspace Patch 1.0
  2. #P L2Free_GameServer
  3. Index: head-src/com/l2jfrozen/Config.java
  4. ===================================================================
  5. --- head-src/com/l2jfrozen/Config.java (revision 180)
  6. +++ head-src/com/l2jfrozen/Config.java (working copy)
  7. @@ -1714,6 +1714,7 @@
  8. public static int TVT_TOP_KILLER_QTY;
  9. public static boolean TVT_AURA;
  10. public static boolean TVT_STATS_LOGGER;
  11. + public static boolean TVT_ALLOW_HEALER_CLASSES;
  12. public static boolean TVT_REMOVE_BUFFS_ON_DIE;
  13.  
  14. // ============================================================
  15. @@ -1751,9 +1752,8 @@
  16. TVT_TOP_KILLER_QTY = Integer.parseInt(TVTSettings.getProperty("TvTTopKillerRewardQty", "2000000"));
  17. TVT_AURA = Boolean.parseBoolean(TVTSettings.getProperty("TvTAura", "False"));
  18. TVT_STATS_LOGGER = Boolean.parseBoolean(TVTSettings.getProperty("TvTStatsLogger", "true"));
  19. -
  20. + TVT_ALLOW_HEALER_CLASSES = Boolean.parseBoolean(TVTSettings.getProperty("TvTAllowedHealerClasses", "true"));
  21. TVT_REMOVE_BUFFS_ON_DIE = Boolean.parseBoolean(TVTSettings.getProperty("TvTRemoveBuffsOnPlayerDie", "false"));
  22. -
  23. }
  24. catch (final Exception e)
  25. {
  26. @@ -2339,6 +2339,7 @@
  27. public static boolean CTF_AURA;
  28. public static boolean CTF_STATS_LOGGER;
  29. public static int CTF_SPAWN_OFFSET;
  30. + public static boolean CTF_ALLOW_HEALER_CLASSES;
  31. public static boolean CTF_REMOVE_BUFFS_ON_DIE;
  32.  
  33. // ============================================================
  34. @@ -2365,13 +2366,10 @@
  35. CTF_REVIVE_RECOVERY = Boolean.parseBoolean(CTFSettings.getProperty("CTFReviveRecovery", "False"));
  36. CTF_COMMAND = Boolean.parseBoolean(CTFSettings.getProperty("CTFCommand", "True"));
  37. CTF_AURA = Boolean.parseBoolean(CTFSettings.getProperty("CTFAura", "True"));
  38. -
  39. CTF_STATS_LOGGER = Boolean.parseBoolean(CTFSettings.getProperty("CTFStatsLogger", "true"));
  40. -
  41. CTF_SPAWN_OFFSET = Integer.parseInt(CTFSettings.getProperty("CTFSpawnOffset", "100"));
  42. -
  43. + CTF_ALLOW_HEALER_CLASSES = Boolean.parseBoolean(CTFSettings.getProperty("CTFAllowedHealerClasses", "true"));
  44. CTF_REMOVE_BUFFS_ON_DIE = Boolean.parseBoolean(CTFSettings.getProperty("CTFRemoveBuffsOnPlayerDie", "false"));
  45. -
  46. }
  47. catch (final Exception e)
  48. {
  49. Index: head-src/com/l2jfrozen/gameserver/model/entity/event/CTF.java
  50. ===================================================================
  51. --- head-src/com/l2jfrozen/gameserver/model/entity/event/CTF.java (revision 174)
  52. +++ head-src/com/l2jfrozen/gameserver/model/entity/event/CTF.java (working copy)
  53. @@ -39,6 +39,7 @@
  54. import com.l2jfrozen.gameserver.model.actor.instance.L2ItemInstance;
  55. import com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance;
  56. import com.l2jfrozen.gameserver.model.actor.instance.L2PetInstance;
  57. +import com.l2jfrozen.gameserver.model.base.ClassId;
  58. import com.l2jfrozen.gameserver.model.entity.Announcements;
  59. import com.l2jfrozen.gameserver.model.entity.event.manager.EventTask;
  60. import com.l2jfrozen.gameserver.model.entity.olympiad.Olympiad;
  61. @@ -1524,6 +1525,12 @@
  62. */
  63. }
  64.  
  65. + 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))
  66. + {
  67. + eventPlayer.sendMessage("You cant join with Healer Class!");
  68. + return false;
  69. + }
  70. +
  71. synchronized (_players)
  72. {
  73. for (final L2PcInstance player : _players)
  74. Index: head-src/com/l2jfrozen/gameserver/model/entity/event/TvT.java
  75. ===================================================================
  76. --- head-src/com/l2jfrozen/gameserver/model/entity/event/TvT.java (revision 174)
  77. +++ head-src/com/l2jfrozen/gameserver/model/entity/event/TvT.java (working copy)
  78. @@ -36,6 +36,7 @@
  79. import com.l2jfrozen.gameserver.model.Location;
  80. import com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance;
  81. import com.l2jfrozen.gameserver.model.actor.instance.L2PetInstance;
  82. +import com.l2jfrozen.gameserver.model.base.ClassId;
  83. import com.l2jfrozen.gameserver.model.entity.Announcements;
  84. import com.l2jfrozen.gameserver.model.entity.event.manager.EventTask;
  85. import com.l2jfrozen.gameserver.model.entity.olympiad.Olympiad;
  86. @@ -1463,6 +1464,12 @@
  87. */
  88. }
  89.  
  90. + 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))
  91. + {
  92. + eventPlayer.sendMessage("You cant join with Healer Class!");
  93. + return false;
  94. + }
  95. +
  96. synchronized (_players)
  97. {
  98. for (final L2PcInstance player : _players)
  99. Index: head-src/com/l2jfrozen/gameserver/model/entity/event/DM.java
  100. ===================================================================
  101. --- head-src/com/l2jfrozen/gameserver/model/entity/event/DM.java (revision 174)
  102. +++ head-src/com/l2jfrozen/gameserver/model/entity/event/DM.java (working copy)
  103. @@ -1451,7 +1451,7 @@
  104. */
  105. }
  106.  
  107. - if (!Config.DM_ALLOW_HEALER_CLASSES && (eventPlayer.getClassId() == ClassId.cardinal || eventPlayer.getClassId() == ClassId.evaSaint || eventPlayer.getClassId() == ClassId.shillienSaint))
  108. + 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))
  109. {
  110. eventPlayer.sendMessage("You cant join with Healer Class!");
  111. return false;
  112. Index: config/frozen/ctf.properties
  113. ===================================================================
  114. --- config/frozen/ctf.properties (revision 174)
  115. +++ config/frozen/ctf.properties (working copy)
  116. @@ -50,5 +50,8 @@
  117. # Spawn Team Offset to distribute players
  118. CTFSpawnOffset = 300
  119.  
  120. +# Enable healer classes into CTF
  121. +CTFAllowedHealerClasses = False
  122. +
  123. # Remove Buffs on player die
  124. CTFRemoveBuffsOnPlayerDie = False
  125. \ No newline at end of file
  126. Index: config/frozen/tvt.properties
  127. ===================================================================
  128. --- config/frozen/tvt.properties (revision 174)
  129. +++ config/frozen/tvt.properties (working copy)
  130. @@ -70,5 +70,8 @@
  131. # Enable event stats logger
  132. TvTStatsLogger = True
  133.  
  134. +# Enable healer classes into TVT
  135. +TvTAllowedHealerClasses = False
  136. +
  137. # Remove Buffs on player die
  138. TvTRemoveBuffsOnPlayerDie = False
  139. \ No newline at end of file
Add Comment
Please, Sign In to add comment