SHOW:
|
|
- or go back to the newest paste.
1 | diff --git /config/CustomMods/GeneralsMods.ini | |
2 | index 869e8a9..9eb714b 100644 | |
3 | --- a/config/CustomMods/GeneralsMods.ini | |
4 | +++ b/config/CustomMods/GeneralsMods.ini | |
5 | @@ -10,4 +10,11 @@ | |
6 | # Example: | |
7 | # SkillDurationList = 264,3600; 265,3600; 266,3600; 267,3600; 268,3600; \ | |
8 | # 363.3600, 364.3600 | |
9 | SkillDurationList = 264,3600 | |
10 | + | |
11 | +#============================================================= | |
12 | +# Enable SubClass OVERLORD Y Warmith | |
13 | +#============================================================= | |
14 | +#Liberar subclass overlord e warmith? | |
15 | +#Retail False | |
16 | +EnableSubClassOverlordYWarmith = true | |
17 | \ No newline at end of file | |
18 | diff --git /java/net/sf/l2j/Config.java | |
19 | index 41c4977..c8a99b5 100644 | |
20 | --- a/java/net/sf/l2j/Config.java | |
21 | +++ b/java/net/sf/l2j/Config.java | |
22 | @@ -993,6 +993,7 @@ | |
23 | public static HashMap<Integer, Integer> SKILL_DURATION_LIST; | |
24 | public static boolean ALT_GAME_SUBCLASS_EVERYWHERE; | |
25 | public static boolean ENABLE_CLASS_DARK_Y_ELF; | |
26 | + public static boolean ENABLE_CLASS_OVERLORD_Y_WARSMITH; | |
27 | public static boolean ANNOUNCE_BOSS_ALIVE; | |
28 | public static boolean ANNOUNCE_RAIDBOS_KILL; | |
29 | public static boolean ANNOUNCE_GRANDBOS_KILL; | |
30 | @@ -3043,6 +3044,7 @@ | |
31 | final ExProperties GeneralMods = initProperties(Config.GENERALMODS); | |
32 | ALT_GAME_SUBCLASS_EVERYWHERE = GeneralMods.getProperty("AltSubclassAllNpcs", false); | |
33 | ENABLE_CLASS_DARK_Y_ELF = Boolean.parseBoolean(GeneralMods.getProperty("EnableSubClassElfYDark", "False")); | |
34 | + ENABLE_CLASS_OVERLORD_Y_WARSMITH = Boolean.parseBoolean(GeneralMods.getProperty("EnableSubClassOverlordYWarmith", "False")); | |
35 | ANNOUNCE_RAIDBOS_KILL = Boolean.parseBoolean(GeneralMods.getProperty("AnnounceRaidBossKill", "false")); | |
36 | ANNOUNCE_GRANDBOS_KILL = Boolean.parseBoolean(GeneralMods.getProperty("AnnounceGranBossKill", "false")); | |
37 | ANNOUNCE_BOSS_ALIVE = Boolean.parseBoolean(GeneralMods.getProperty("AnnounceSpawnAllBoss", "false")); | |
38 | diff --git /java/net/sf/l2j/gameserver/model/base/ClassId.java | |
39 | index 68e219a..2bede9c 100644 | |
40 | --- a/java/net/sf/l2j/gameserver/model/base/ClassId.java | |
41 | +++ b/java/net/sf/l2j/gameserver/model/base/ClassId.java | |
42 | @@ -284,9 +284,12 @@ | |
43 | if (classId._level != 2) | |
44 | continue; | |
45 | ||
46 | - // Overlord, Warsmith or self class may never be taken as subclass | |
47 | - if (classId == OVERLORD || classId == WARSMITH || classId == this) | |
48 | - continue; | |
49 | + if(!Config.ENABLE_CLASS_OVERLORD_Y_WARSMITH) | |
50 | + { | |
51 | + // Overlord, Warsmith or self class may never be taken as subclass | |
52 | + if (classId == OVERLORD || classId == WARSMITH || classId == this) | |
53 | + continue; | |
54 | + } | |
55 | ||
56 | if(!Config.ENABLE_CLASS_DARK_Y_ELF) | |
57 | { | |
58 |