Guest User

Subclass Everywhere

a guest
Jan 30th, 2026
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 4.89 KB | Source Code | 0 0
  1. Subject: [PATCH] Subclass en cualquier village master + Restricciones de elfos/ol/warsmith
  2. ---
  3. Index: aCis_gameserver/java/net/sf/l2j/gameserver/enums/actors/ClassId.java
  4. IDEA additional info:
  5. Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
  6. <+>UTF-8
  7. ===================================================================
  8. diff --git a/aCis_gameserver/java/net/sf/l2j/gameserver/enums/actors/ClassId.java b/aCis_gameserver/java/net/sf/l2j/gameserver/enums/actors/ClassId.java
  9. --- a/aCis_gameserver/java/net/sf/l2j/gameserver/enums/actors/ClassId.java  (revision 2b75ae5cb152b3ced8edec7e9287b4458f857957)
  10. +++ b/aCis_gameserver/java/net/sf/l2j/gameserver/enums/actors/ClassId.java  (date 1769779834359)
  11. @@ -266,12 +266,12 @@
  12.                 continue;
  13.            
  14.             // Overlord, Warsmith or self class may never be taken as subclass.
  15. -           if (classId == OVERLORD || classId == WARSMITH || classId == this)
  16. -               continue;
  17. +//         if (classId == OVERLORD || classId == WARSMITH || classId == this)
  18. +//             continue;
  19.            
  20.             // Elves may not sub Dark Elves and vice versa.
  21. -           if ((_race == ClassRace.ELF && classId._race == ClassRace.DARK_ELF) || (_race == ClassRace.DARK_ELF && classId._race == ClassRace.ELF))
  22. -               continue;
  23. +//         if ((_race == ClassRace.ELF && classId._race == ClassRace.DARK_ELF) || (_race == ClassRace.DARK_ELF && classId._race == ClassRace.ELF))
  24. +//             continue;
  25.            
  26.             _subclasses.add(classId);
  27.         }
  28. Index: aCis_gameserver/java/net/sf/l2j/gameserver/model/actor/instance/VillageMaster.java
  29. IDEA additional info:
  30. Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
  31. <+>UTF-8
  32. ===================================================================
  33. diff --git a/aCis_gameserver/java/net/sf/l2j/gameserver/model/actor/instance/VillageMaster.java b/aCis_gameserver/java/net/sf/l2j/gameserver/model/actor/instance/VillageMaster.java
  34. --- a/aCis_gameserver/java/net/sf/l2j/gameserver/model/actor/instance/VillageMaster.java    (revision 2b75ae5cb152b3ced8edec7e9287b4458f857957)
  35. +++ b/aCis_gameserver/java/net/sf/l2j/gameserver/model/actor/instance/VillageMaster.java    (date 1769779628712)
  36. @@ -14,6 +14,7 @@
  37.  import net.sf.l2j.gameserver.enums.FloodProtector;
  38.  import net.sf.l2j.gameserver.enums.actors.ClassId;
  39.  import net.sf.l2j.gameserver.enums.skills.AcquireSkillType;
  40. +import net.sf.l2j.gameserver.model.World;
  41.  import net.sf.l2j.gameserver.model.actor.Player;
  42.  import net.sf.l2j.gameserver.model.actor.container.player.SubClass;
  43.  import net.sf.l2j.gameserver.model.actor.template.NpcTemplate;
  44. @@ -700,9 +701,10 @@
  45.     {
  46.         return checkVillageMaster(ClassId.VALUES[classId]);
  47.     }
  48. -  
  49. -   public final boolean checkVillageMaster(ClassId pclass)
  50. -   {
  51. +
  52. +   public final boolean checkVillageMaster(ClassId pclass) {
  53. +       if (Config.ALT_GAME_SUBCLASS_EVERYWHERE) return true;
  54. +
  55.         return checkVillageMasterRace(pclass) && checkVillageMasterTeachType(pclass);
  56.     }
  57.    
  58. Index: aCis_gameserver/config/players.properties
  59. IDEA additional info:
  60. Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
  61. <+>ISO-8859-1
  62. ===================================================================
  63. diff --git a/aCis_gameserver/config/players.properties b/aCis_gameserver/config/players.properties
  64. --- a/aCis_gameserver/config/players.properties (revision 2b75ae5cb152b3ced8edec7e9287b4458f857957)
  65. +++ b/aCis_gameserver/config/players.properties (date 1769779512646)
  66. @@ -253,6 +253,10 @@
  67.  # Default: 3
  68.  AllowedSubclass = 3
  69.  
  70. +# Allow player to add/change subclass at all village master
  71. +# Default: False
  72. +AltSubclassEverywhere = True
  73. +
  74.  #=============================================================
  75.  #                        Buffs config
  76.  #=============================================================
  77. Index: aCis_gameserver/java/net/sf/l2j/Config.java
  78. IDEA additional info:
  79. Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
  80. <+>UTF-8
  81. ===================================================================
  82. diff --git a/aCis_gameserver/java/net/sf/l2j/Config.java b/aCis_gameserver/java/net/sf/l2j/Config.java
  83. --- a/aCis_gameserver/java/net/sf/l2j/Config.java   (revision 2b75ae5cb152b3ced8edec7e9287b4458f857957)
  84. +++ b/aCis_gameserver/java/net/sf/l2j/Config.java   (date 1769779512673)
  85. @@ -358,6 +358,7 @@
  86.     public static boolean DIVINE_SP_BOOK_NEEDED;
  87.     public static boolean SUBCLASS_WITHOUT_QUESTS;
  88.     public static int ALLOWED_SUBCLASS;
  89. +   public static boolean ALT_GAME_SUBCLASS_EVERYWHERE;
  90.    
  91.     /** Buffs */
  92.     public static boolean STORE_SKILL_COOLTIME;
  93. @@ -903,6 +904,7 @@
  94.         DIVINE_SP_BOOK_NEEDED = players.getProperty("DivineInspirationSpBookNeeded", true);
  95.         SUBCLASS_WITHOUT_QUESTS = players.getProperty("SubClassWithoutQuests", false);
  96.         ALLOWED_SUBCLASS = players.getProperty("AllowedSubclass", 3);
  97. +       ALT_GAME_SUBCLASS_EVERYWHERE = players.getProperty("AltSubclassEverywhere", false);
  98.        
  99.         MAX_BUFFS_AMOUNT = players.getProperty("MaxBuffsAmount", 20);
  100.         STORE_SKILL_COOLTIME = players.getProperty("StoreSkillCooltime", true);
  101.  
Advertisement
Add Comment
Please, Sign In to add comment