Собственно тема говорит сама за себя
Code
Index: /Server/SkyLanceR's_IL_GS/java/net/sf/l2j/Config.java
===================================================================
--- /Server/SkyLanceR's_IL_GS/java/net/sf/l2j/Config.java (revision 341)
+++ /Server/SkyLanceR's_IL_GS/java/net/sf/l2j/Config.java (revision 342)
@@ -319,4 +319,5 @@
public static int DONATOR_NAME_COLOR;
public static int DONATOR_TITLE_COLOR;
+ public static boolean STRICT_HERO_SYSTEM;
/** Event Settings Parameters */
@@ -1653,4 +1654,5 @@
DONATOR_NAME_COLOR = Integer.decode("0x" + Modifications.getProperty("DonatorColorName", "00FFFF"));
DONATOR_TITLE_COLOR = Integer.decode("0x" + Modifications.getProperty("DonatorTitleColor", "00FF00"));
+ STRICT_HERO_SYSTEM = Boolean.parseBoolean(Modifications.getProperty("StrictHeroSystem", "true"));
}
catch (Exception e)
Index: /Server/SkyLanceR's_IL_GS/java/net/sf/l2j/gameserver/model/Inventory.java
===================================================================
--- /Server/SkyLanceR's_IL_GS/java/net/sf/l2j/gameserver/model/Inventory.java (revision 281)
+++ /Server/SkyLanceR's_IL_GS/java/net/sf/l2j/gameserver/model/Inventory.java (revision 342)
@@ -936,6 +936,5 @@
L2PcInstance player = (L2PcInstance)getOwner();
- if(!player.isGM())
- if (!player.isHero())
+ if (Config.STRICT_HERO_SYSTEM && !player.isGM() && !player.isHero())
{
int itemId = item.getItemId();
@@ -1197,6 +1196,5 @@
L2PcInstance player = (L2PcInstance)getOwner();
- if(!player.isGM())
- if (!player.isHero())
+ if (Config.STRICT_HERO_SYSTEM && !player.isGM() && !player.isHero())
{
int itemId = item.getItemId();
Index: /Server/SkyLanceR's_IL_GS/Settings/Modifications.properties
===================================================================
--- /Server/SkyLanceR's_IL_GS/Settings/Modifications.properties (revision 341)
+++ /Server/SkyLanceR's_IL_GS/Settings/Modifications.properties (revision 342)
@@ -233,4 +233,8 @@
EnchantHeroWeapons = False
+# Hero Items Can Be Weared Only By Heros ?
+# Default: True
+StrictHeroSystem = True
+