Secret Experience

Secret Experience (https://secretexperience.net/)
-   [L2J] Dúvidas Solucionadas (https://secretexperience.net/l2j-duvidas-solucionadas/)
-   -   Como adicionar skills de hero na sub (https://secretexperience.net/l2j-duvidas-solucionadas/31078-como-adicionar-skills-de-hero-na-sub.html)

<(ADM)>Aquiles 30-04-2011 02:35 AM

Como adicionar skills de hero na sub
 
Pessoal como adiciono skill de hero nas subs, tipo, o cara vira hero e as skill vão pra sub classe qdo eles trocam de classe, Rev teon

Mazokista 30-04-2011 10:37 PM

Pelo qui sei com esse mod aqui vc consegui :)
Código:

Index: C:/Documents and Settings/ROBERTO/workspace/La2Chaos/Trunk/La2Chaos/La2Chaos_CORE/java/config/Mods/L2JMods.ini
===================================================================
--- C:/Documents and Settings/ROBERTO/workspace/La2Chaos/Trunk/La2Chaos/La2Chaos_CORE/java/config/Mods/L2JMods.ini        (revision 74)
+++ C:/Documents and Settings/ROBERTO/workspace/La2Chaos/Trunk/La2Chaos/La2Chaos_CORE/java/config/Mods/L2JMods.ini        (working copy)
@@ -107,10 +107,6 @@
 # Format : skillid,newDelayTime;skillid,newDelayTime2....
 SkillReuseList =
 
+# Hero Skills SubClasses
+# Allow Hero Skills On SubClasses
+AllowHeroSkillsOnSub = False
+
 # Restore Buffs On Subclass Change?
 # Retail : False [Recommended = False]
 RestoreEffectsOnSub = False
Index: C:/Documents and Settings/ROBERTO/workspace/La2Chaos/Trunk/La2Chaos/La2Chaos_CORE/java/com/roberto/Config.java
===================================================================
--- C:/Documents and Settings/ROBERTO/workspace/La2Chaos/Trunk/La2Chaos/La2Chaos_CORE/java/com/roberto/Config.java        (revision 74)
+++ C:/Documents and Settings/ROBERTO/workspace/La2Chaos/Trunk/La2Chaos/La2Chaos_CORE/java/com/roberto/Config.java        (working copy)
@@ -2106,7 +2106,6 @@
                KEEP_SUBCLASS_SKILLS = Boolean.parseBoolean(L2JModSettings.getProperty("KeepSubClassSkills", "False"));
                ALLOW_DAGGERS_WEAR_HEAVY = Boolean.parseBoolean(L2JModSettings.getProperty("AllowDaggersUseHeavy", "True"));
                ALLOW_ARCHERS_WEAR_HEAVY = Boolean.parseBoolean(L2JModSettings.getProperty("AllowArchersUseHeavy", "True"));
+                ALLOW_HERO_SKILLS_ON_SUB = Boolean.parseBoolean(L2JModSettings.getProperty("AllowHeroSkillsOnSub", "False"));
                ALT_SUBCLASS_LEVEL = Integer.parseInt(L2JModSettings.getProperty("AltSubClassLevel", "40"));
                STARTING_ADENA = Integer.parseInt(L2JModSettings.getProperty("StartingAdena", "100"));
                            STARTING_GB_ID = Integer.parseInt(L2JModSettings.getProperty("StartingGBId", "3470"));
Index: C:/Documents and Settings/ROBERTO/workspace/La2Chaos/Trunk/La2Chaos/La2Chaos_CORE/java/com/roberto/gameserver/model/actor/instance/L2PcInstance.java
===================================================================
--- C:/Documents and Settings/ROBERTO/workspace/La2Chaos/Trunk/La2Chaos/La2Chaos_CORE/java/com/roberto/gameserver/model/actor/instance/L2PcInstance.java        (revision 74)
+++ C:/Documents and Settings/ROBERTO/workspace/La2Chaos/Trunk/La2Chaos/La2Chaos_CORE/java/com/roberto/gameserver/model/actor/instance/L2PcInstance.java        (working copy)
@@ -8433,7 +8433,7 @@
 
        public void setHero(boolean hero)
        {
-                if (hero && _baseClass == _activeClass)
+                if (hero && _baseClass == _activeClass || Config.ALLOW_HERO_SKILLS_ON_SUB)
                {
                        for (L2Skill s : HeroSkillTable.GetHeroSkills())
                                addSkill(s, false); //Dont Save Hero skills to database



Horários baseados na GMT -3. Agora são 09:31 AM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.