Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Subject: [PATCH] Subclass en cualquier village master + Restricciones de elfos/ol/warsmith
- ---
- Index: aCis_gameserver/java/net/sf/l2j/gameserver/enums/actors/ClassId.java
- IDEA additional info:
- Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
- <+>UTF-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
- --- a/aCis_gameserver/java/net/sf/l2j/gameserver/enums/actors/ClassId.java (revision 2b75ae5cb152b3ced8edec7e9287b4458f857957)
- +++ b/aCis_gameserver/java/net/sf/l2j/gameserver/enums/actors/ClassId.java (date 1769779834359)
- @@ -266,12 +266,12 @@
- continue;
- // Overlord, Warsmith or self class may never be taken as subclass.
- - if (classId == OVERLORD || classId == WARSMITH || classId == this)
- - continue;
- +// if (classId == OVERLORD || classId == WARSMITH || classId == this)
- +// continue;
- // Elves may not sub Dark Elves and vice versa.
- - if ((_race == ClassRace.ELF && classId._race == ClassRace.DARK_ELF) || (_race == ClassRace.DARK_ELF && classId._race == ClassRace.ELF))
- - continue;
- +// if ((_race == ClassRace.ELF && classId._race == ClassRace.DARK_ELF) || (_race == ClassRace.DARK_ELF && classId._race == ClassRace.ELF))
- +// continue;
- _subclasses.add(classId);
- }
- Index: aCis_gameserver/java/net/sf/l2j/gameserver/model/actor/instance/VillageMaster.java
- IDEA additional info:
- Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
- <+>UTF-8
- ===================================================================
- 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
- --- a/aCis_gameserver/java/net/sf/l2j/gameserver/model/actor/instance/VillageMaster.java (revision 2b75ae5cb152b3ced8edec7e9287b4458f857957)
- +++ b/aCis_gameserver/java/net/sf/l2j/gameserver/model/actor/instance/VillageMaster.java (date 1769779628712)
- @@ -14,6 +14,7 @@
- import net.sf.l2j.gameserver.enums.FloodProtector;
- import net.sf.l2j.gameserver.enums.actors.ClassId;
- import net.sf.l2j.gameserver.enums.skills.AcquireSkillType;
- +import net.sf.l2j.gameserver.model.World;
- import net.sf.l2j.gameserver.model.actor.Player;
- import net.sf.l2j.gameserver.model.actor.container.player.SubClass;
- import net.sf.l2j.gameserver.model.actor.template.NpcTemplate;
- @@ -700,9 +701,10 @@
- {
- return checkVillageMaster(ClassId.VALUES[classId]);
- }
- -
- - public final boolean checkVillageMaster(ClassId pclass)
- - {
- +
- + public final boolean checkVillageMaster(ClassId pclass) {
- + if (Config.ALT_GAME_SUBCLASS_EVERYWHERE) return true;
- +
- return checkVillageMasterRace(pclass) && checkVillageMasterTeachType(pclass);
- }
- Index: aCis_gameserver/config/players.properties
- IDEA additional info:
- Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
- <+>ISO-8859-1
- ===================================================================
- diff --git a/aCis_gameserver/config/players.properties b/aCis_gameserver/config/players.properties
- --- a/aCis_gameserver/config/players.properties (revision 2b75ae5cb152b3ced8edec7e9287b4458f857957)
- +++ b/aCis_gameserver/config/players.properties (date 1769779512646)
- @@ -253,6 +253,10 @@
- # Default: 3
- AllowedSubclass = 3
- +# Allow player to add/change subclass at all village master
- +# Default: False
- +AltSubclassEverywhere = True
- +
- #=============================================================
- # Buffs config
- #=============================================================
- Index: aCis_gameserver/java/net/sf/l2j/Config.java
- IDEA additional info:
- Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
- <+>UTF-8
- ===================================================================
- diff --git a/aCis_gameserver/java/net/sf/l2j/Config.java b/aCis_gameserver/java/net/sf/l2j/Config.java
- --- a/aCis_gameserver/java/net/sf/l2j/Config.java (revision 2b75ae5cb152b3ced8edec7e9287b4458f857957)
- +++ b/aCis_gameserver/java/net/sf/l2j/Config.java (date 1769779512673)
- @@ -358,6 +358,7 @@
- public static boolean DIVINE_SP_BOOK_NEEDED;
- public static boolean SUBCLASS_WITHOUT_QUESTS;
- public static int ALLOWED_SUBCLASS;
- + public static boolean ALT_GAME_SUBCLASS_EVERYWHERE;
- /** Buffs */
- public static boolean STORE_SKILL_COOLTIME;
- @@ -903,6 +904,7 @@
- DIVINE_SP_BOOK_NEEDED = players.getProperty("DivineInspirationSpBookNeeded", true);
- SUBCLASS_WITHOUT_QUESTS = players.getProperty("SubClassWithoutQuests", false);
- ALLOWED_SUBCLASS = players.getProperty("AllowedSubclass", 3);
- + ALT_GAME_SUBCLASS_EVERYWHERE = players.getProperty("AltSubclassEverywhere", false);
- MAX_BUFFS_AMOUNT = players.getProperty("MaxBuffsAmount", 20);
- STORE_SKILL_COOLTIME = players.getProperty("StoreSkillCooltime", true);
Advertisement
Add Comment
Please, Sign In to add comment