Index: java/com/l2jserver/Config.java
===================================================================
--- java/com/l2jserver/Config.java (revision 4334)
+++ java/com/l2jserver/Config.java (working copy)
@@ -683,6 +683,7 @@
public static String L2JMOD_MULTILANG_DEFAULT;
public static boolean L2JMOD_MULTILANG_VOICED_ALLOW;
public static boolean L2WALKER_PROTECTION;
+ public static boolean ALLOW_USE_HEROITEMS;
//--------------------------------------------------
// NPC Settings
@@ -2284,6 +2285,7 @@
L2JMOD_MULTILANG_VOICED_ALLOW = Boolean.parseBoolean(L2JModSettings.getProperty("MultiLangVoiceCommand", "True"));
L2WALKER_PROTECTION = Boolean.parseBoolean(L2JModSettings.getProperty("L2WalkerProtection", "False"));
+ ALLOW_USE_HEROITEMS = Boolean.parseBoolean(L2JModSettings.getProperty("AllowUseHeroItems", "False"));
}
catch (Exception e)
{
Index: java/com/l2jserver/gameserver/model/L2ItemInstance.java
===================================================================
--- java/com/l2jserver/gameserver/model/L2ItemInstance.java (revision 4334)
+++ java/com/l2jserver/gameserver/model/L2ItemInstance.java (working copy)
@@ -720,7 +720,10 @@
public boolean isHeroItem()
{
- return _item.isHeroItem();
+ if (Config.ALLOW_USE_HEROITEMS)
+ return false;
+ else
+ return _item.isHeroItem();
}
public boolean isCommonItem()
Index: java/config/l2jmods.properties
===================================================================
--- java/config/l2jmods.properties (revision 4318)
+++ java/config/l2jmods.properties (working copy)
@@ -379,3 +379,8 @@
# Basic protection against L2Walker.
# Default: False
L2WalkerProtection = False
+
+
+# Allow non-hero to use hero-items?
+# Default: False
+AllowUseHeroItems = False
\ No newline at end of file