Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Index: config/head/olympiad.properties
- ===================================================================
- --- config/head/olympiad.properties (revision 703)
- +++ config/head/olympiad.properties (working copy)
- @@ -68,4 +68,8 @@
- AltOlyPeriodMultiplier=1
- # Allow events during Olympiad period
- -AllowEventsDuringOly=True
- \ No newline at end of file
- +AllowEventsDuringOly = True
- +
- +# Recharge skills before match starts and after match ends
- +# Default: False
- +AltOlyRechargeSkills = False
- \ No newline at end of file
- Index: head-src/com/l2jfrozen/Config.java
- ===================================================================
- --- head-src/com/l2jfrozen/Config.java (revision 703)
- +++ head-src/com/l2jfrozen/Config.java (working copy)
- @@ -2597,6 +2597,7 @@
- public static OlympiadPeriod ALT_OLY_PERIOD;
- public static int ALT_OLY_PERIOD_MULTIPLIER;
- public static boolean ALLOW_EVENTS_DURING_OLY;
- + public static boolean ALT_OLY_RECHARGE_SKILLS;
- //============================================================
- public static void loadOlympConfig()
- {
- @@ -2636,7 +2637,8 @@
- ALLOW_EVENTS_DURING_OLY = Boolean.parseBoolean(OLYMPSetting.getProperty("AllowEventsDuringOly", "False"));
- -
- + ALT_OLY_RECHARGE_SKILLS = Boolean.parseBoolean(OLYMPSetting.getProperty("AltOlyRechargeSkills", "False"));
- +
- }
- catch(Exception e)
- {
- Index: head-src/com/l2jfrozen/gameserver/model/entity/olympiad/L2OlympiadGame.java
- ===================================================================
- --- head-src/com/l2jfrozen/gameserver/model/entity/olympiad/L2OlympiadGame.java (revision 703)
- +++ head-src/com/l2jfrozen/gameserver/model/entity/olympiad/L2OlympiadGame.java (working copy)
- @@ -337,13 +337,17 @@
- player.sendPacket(atk);
- }
- - // [Interlude Olympiad] refresh for all skills
- - for (L2Skill skill : player.getAllSkills())
- - if(skill.getId() != 1324)
- - player.enableSkill(skill.getId());
- + // Skill recharge is a Gracia Final feature, but we have it configurable ;)
- + if (Config.ALT_OLY_RECHARGE_SKILLS)
- + {
- + for (L2Skill skill : player.getAllSkills())
- + if(skill.getId() != 1324)
- + player.enableSkill(skill.getId());
- +
- + player.updateEffectIcons();
- + }
- player.sendSkillList();
- - player.updateEffectIcons();
- player.setPvpFlag(0);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement