ChristianSDM

Alt Learn SKill inspiration true of false by:ChristianSDM

Mar 27th, 2020
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.82 KB | None | 0 0
  1. Atalho:gameserver/actor/instance/Player
  2.  
  3. Procure e remova
  4.  
  5. -public int giveAvailableSkills()
  6. -{
  7. -int result = 0;
  8. -for (L2SkillLearn sl : SkillTreeTable.getInstance().getAllAvailableSkills(this, getClassId()))
  9. -{
  10. -addSkill(SkillTable.getInstance().getInfo(sl.getId(), sl.getLevel()), true);
  11. -result++;
  12. -}
  13. -return result;
  14. -}
  15.  
  16. Troque por de baixo.
  17.  
  18. +public int giveAvailableSkills()
  19. +{
  20. +@SuppressWarnings("unused")
  21. +int unLearnable = 0;
  22. +int result = 0;
  23.  
  24. +for (L2SkillLearn sl : SkillTreeTable.getInstance().getAllAvailableSkills(this, getClassId()))
  25. +{
  26. +L2Skill sk = SkillTable.getInstance().getInfo(sl.getId(), sl.getLevel());
  27. +if(sk == null || (sk.getId() == L2Skill.SKILL_DIVINE_INSPIRATION && !Config.AUTO_LEARN_DIVINE_INSPIRATION))
  28. +{
  29. +unLearnable++;
  30. +continue;
  31. +}
  32. +addSkill(SkillTable.getInstance().getInfo(sl.getId(), sl.getLevel()), true);
  33. +result++;
  34. +}
  35. +return result;
  36. +}
  37.  
  38. mesmo atalho Procure por
  39.  
  40. // Auto-Learn skills if activated
  41. if (Config.AUTO_LEARN_SKILLS)
  42. giveAvailableSkills();
  43.  
  44. +if (Config.AUTO_LEARN_DIVINE_INSPIRATION)
  45. +giveAvailableSkills();
  46.  
  47. sendSkillList();
  48.  
  49.  
  50. net.sf.l2j.config.java
  51. +public static boolean AUTO_LEARN_DIVINE_INSPIRATION;
  52. +AUTO_LEARN_DIVINE_INSPIRATION = Boolean.parseBoolean(propertySettings.getProperty("AutoLearnDivineInspiration", "false"));
  53.  
  54. dps sรณ adicionar na sua config, other ou altconfigs. Caso eu tenho a minha
  55. que quer CustomMods.
  56.  
  57. +# AutoLearn DivineInspiration: True to enable, False to disable
  58. +AutoLearnDivineInspiration = False
Add Comment
Please, Sign In to add comment