Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ### Eclipse Workspace Patch 1.0
- #P L2jFrozen_GameServer
- Index: head-src/com/l2jfrozen/Config.java
- ===================================================================
- --- head-src/com/l2jfrozen/Config.java (revision 1004)
- +++ head-src/com/l2jfrozen/Config.java (working copy)
- @@ -570,6 +570,7 @@
- public static int AIO_TCOLOR;
- public static boolean ALLOW_AIO_USE_GK;
- public static boolean ALLOW_AIO_USE_CM;
- + public static boolean CAN_USE_SKILL_OUTSIDE_PZ;
- public static boolean ANNOUNCE_CASTLE_LORDS;
- /** Configuration to allow custom items to be given on character creation */
- @@ -674,6 +675,7 @@
- AIO_TCOLOR = Integer.decode("0x" + otherSettings.getProperty("AioTitleColor", "88AA88"));
- ALLOW_AIO_USE_GK = Boolean.parseBoolean(otherSettings.getProperty("AllowAioUseGk", "False"));
- ALLOW_AIO_USE_CM = Boolean.parseBoolean(otherSettings.getProperty("AllowAioUseClassMaster", "False"));
- + CAN_USE_SKILL_OUTSIDE_PZ = Boolean.parseBoolean(otherSettings.getProperty("CanUseSkillOutsidePeacezone", "False"));
- ANNOUNCE_CASTLE_LORDS = Boolean.parseBoolean(otherSettings.getProperty("AnnounceCastleLords", "False"));
- if(ENABLE_AIO_SYSTEM) //create map if system is enabled
- {
- Index: head-src/com/l2jfrozen/gameserver/model/L2Character.java
- ===================================================================
- --- head-src/com/l2jfrozen/gameserver/model/L2Character.java (revision 1004)
- +++ head-src/com/l2jfrozen/gameserver/model/L2Character.java (working copy)
- @@ -1173,6 +1173,26 @@
- if(isAttackingDisabled())
- return;
- + if ((this instanceof L2PcInstance) && !Config.CAN_USE_SKILL_OUTSIDE_PZ)
- + {
- + if (((L2PcInstance) this).isAio() && (!isInsideZone(L2Character.ZONE_PEACE) || !target.isInsideZone(L2Character.ZONE_PEACE)))
- + {
- + sendPacket(new SystemMessage(SystemMessageId.INCORRECT_TARGET));
- + sendPacket(ActionFailed.STATIC_PACKET);
- + return;
- + }
- +
- + if (target instanceof L2PcInstance)
- + {
- + if (((L2PcInstance) target).isAio() && !isInsideZone(L2Character.ZONE_PEACE))
- + {
- + sendPacket(new SystemMessage(SystemMessageId.INCORRECT_TARGET));
- + sendPacket(ActionFailed.STATIC_PACKET);
- + return;
- + }
- + }
- + }
- +
- if(this instanceof L2PcInstance)
- {
- if(((L2PcInstance) this).inObserverMode())
- @@ -1812,6 +1832,29 @@
- return;
- }
- + if (getTarget() != null)
- + {
- + if ((this instanceof L2PcInstance) && !Config.CAN_USE_SKILL_OUTSIDE_PZ)
- + {
- + if (((L2PcInstance) this).isAio() && (!isInsideZone(L2Character.ZONE_PEACE) || !((L2PcInstance) getTarget()).isInsideZone(L2Character.ZONE_PEACE)))
- + {
- + sendPacket(new SystemMessage(SystemMessageId.S1_CANNOT_BE_USED).addSkillName(skill.getId()));
- + sendPacket(ActionFailed.STATIC_PACKET);
- + return;
- + }
- +
- + if (getTarget() instanceof L2PcInstance)
- + {
- + if (((L2PcInstance) getTarget()).isAio() && !isInsideZone(L2Character.ZONE_PEACE))
- + {
- + sendPacket(new SystemMessage(SystemMessageId.S1_CANNOT_BE_USED).addSkillName(skill.getId()));
- + sendPacket(ActionFailed.STATIC_PACKET);
- + return;
- + }
- + }
- + }
- + }
- +
- if(isSkillDisabled(skill.getId()))
- {
- if(activeChar instanceof L2PcInstance && !(skill.getId() == 2166))
- Index: config/head/other.properties
- ===================================================================
- --- config/head/other.properties (revision 1004)
- +++ config/head/other.properties (working copy)
- @@ -229,6 +229,9 @@
- # Aio Buffers can speak to Class Master?
- AllowAioUseClassMaster = False
- +# Enable/disable ability to use AIO skills outside peacezone
- +CanUseSkillOutsidePeacezone = False
- +
- # Announce castle lords on enter game. default = false
- AnnounceCastleLords = False
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement