Jump to content

Question

6 answers to this question

Recommended Posts

  • 0
Posted

paidia addara kati hero weaps se enan trader ston server m alla gia na ta foreso prepei na eimai hero

yparxei kapia ri8misi p na ta forao kai xoris na eimai hero?

 

iparxei file y....Ti pack exeis? prec?(dld etimo) i to ekanes esi compile?

 

An den exeis prec kai exeis compile oriste to code:(ala an exeis prec,asto)

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
+

  • 0
Posted

Prepei na peraseis to code p s edwse o PonyR1der giana mporoun kai oi aploi pextes ta hero weap.

Simiosei:Ayto ginete mono an to pack s to exeis kanei compile.

Guest
This topic is now closed to further replies.


×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..