Noticias:

Debes de estar registrado para poder ver el contenido indicado. Registrate o Conectate

Menú Principal

Auto Learn Skills limitado por nivel

Iniciado por Swarlog, Ago 19, 2022, 12:44 AM

Tema anterior - Siguiente tema

Swarlog

Hola es una simple config que hace que si tenes activado AutoLearnSkill despues del level que pongas en la config tengas que aprender los skiles desde el npc..

en com.l2jserver.gameserver.model.actor.instance.L2PcInstance

linea 2667

/**
* This method reward all AutoGet skills and Normal skills if Auto-Learn configuration is true.
*/
public void rewardSkills()
{
// Give all normal skills if activated Auto-Learn is activated, included AutoGet skills.
- if ((Config.AUTO_LEARN_SKILLS)
       + if ((Config.AUTO_LEARN_SKILLS) && (getLevel() <= Config.MAX_LVL_AUTOLEARN_SKILLS))
{
giveAvailableSkills(Config.AUTO_LEARN_FS_SKILLS, true);
}
else


en com.l2jserver.Config

linea 1473

AUTO_LEARN_SKILLS = Character.getBoolean("AutoLearnSkills", false);
+ MAX_LVL_AUTOLEARN_SKILLS = Character.getInt("MaxLvlAutoLearnSkills", 85);
AUTO_LEARN_FS_SKILLS = Character.getBoolean("AutoLearnForgottenScrollSkills", false);

en dist\game\config\Character.properties

linea 79

# Default: False
AutoLearnSkills = True

+# Max level for auto learn skills, if execeeds this level auto learn skills turn off, require AutoLearnSkills.
+# Default = 85
+ MaxLvlAutoLearnSkills = 85

# If it's true skills from forgotten scrolls will be delivered upon level up and login, require AutoLearnSkills.

ejemplo: Si cambias MaxLvlAutoLearnSkills = 85  a 20, hasta lvl 20 aprende skilles en forma automatica.. despues de ese lvl lo tiene que hacer desde el npc.