Advertisement
warc222

Olympiad Refresh Skills1

Jan 27th, 2015
210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.35 KB | None | 0 0
  1. Index: config/head/olympiad.properties
  2. ===================================================================
  3. --- config/head/olympiad.properties (revision 703)
  4. +++ config/head/olympiad.properties (working copy)
  5. @@ -68,4 +68,8 @@
  6. AltOlyPeriodMultiplier=1
  7.  
  8. # Allow events during Olympiad period
  9. -AllowEventsDuringOly=True
  10. \ No newline at end of file
  11. +AllowEventsDuringOly = True
  12. +
  13. +# Recharge skills before match starts and after match ends
  14. +# Default: False
  15. +AltOlyRechargeSkills = False
  16. \ No newline at end of file
  17. Index: head-src/com/l2jfrozen/Config.java
  18. ===================================================================
  19. --- head-src/com/l2jfrozen/Config.java (revision 703)
  20. +++ head-src/com/l2jfrozen/Config.java (working copy)
  21. @@ -2597,6 +2597,7 @@
  22. public static OlympiadPeriod ALT_OLY_PERIOD;
  23. public static int ALT_OLY_PERIOD_MULTIPLIER;
  24. public static boolean ALLOW_EVENTS_DURING_OLY;
  25. + public static boolean ALT_OLY_RECHARGE_SKILLS;
  26. //============================================================
  27. public static void loadOlympConfig()
  28. {
  29. @@ -2636,7 +2637,8 @@
  30.  
  31. ALLOW_EVENTS_DURING_OLY = Boolean.parseBoolean(OLYMPSetting.getProperty("AllowEventsDuringOly", "False"));
  32.  
  33. -
  34. + ALT_OLY_RECHARGE_SKILLS = Boolean.parseBoolean(OLYMPSetting.getProperty("AltOlyRechargeSkills", "False"));
  35. +
  36. }
  37. catch(Exception e)
  38. {
  39. Index: head-src/com/l2jfrozen/gameserver/model/entity/olympiad/L2OlympiadGame.java
  40. ===================================================================
  41. --- head-src/com/l2jfrozen/gameserver/model/entity/olympiad/L2OlympiadGame.java (revision 703)
  42. +++ head-src/com/l2jfrozen/gameserver/model/entity/olympiad/L2OlympiadGame.java (working copy)
  43. @@ -337,13 +337,17 @@
  44. player.sendPacket(atk);
  45. }
  46.  
  47. - // [Interlude Olympiad] refresh for all skills
  48. - for (L2Skill skill : player.getAllSkills())
  49. - if(skill.getId() != 1324)
  50. - player.enableSkill(skill.getId());
  51. + // Skill recharge is a Gracia Final feature, but we have it configurable ;)
  52. + if (Config.ALT_OLY_RECHARGE_SKILLS)
  53. + {
  54. + for (L2Skill skill : player.getAllSkills())
  55. + if(skill.getId() != 1324)
  56. + player.enableSkill(skill.getId());
  57. +
  58. + player.updateEffectIcons();
  59. + }
  60.  
  61. player.sendSkillList();
  62. - player.updateEffectIcons();
  63.  
  64. player.setPvpFlag(0);
  65. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement