Jump to content

Recommended Posts

Posted

Disable Weight Penalty  Config:

 

properties :

+#------------------------

+# Grade Weight Config    #

+#------------------------

+# Disable Weight Penalty 

+DisableWeightPenalty = False

 

________________________________

 

Config.java

 

+public static boolean  DISABLE_WEIGHT_PENALTY; 

 

+DISABLE_WEIGHT_PENALTY = Boolean.parseBoolean(L2JBrasilCustom.getProperty("DisableWeightPenalty", "False"));

 

________________________________

 

L2PcInstance.java

@@ -1749,5 +1749,5 @@

                        int weightproc = getCurrentLoad() * 1000 / maxLoad;

                        int newWeightPenalty;

-                        if (weightproc < 500 || _dietMode)

+                        if (weightproc < 500 || _dietMode || Config.DISABLE_WEIGHT_PENALTY)

                        {

                                newWeightPenalty = 0;

@@ -1773,5 +1773,5 @@

                        {

                                _curWeightPenalty = newWeightPenalty;

-                                if (newWeightPenalty > 0 && !_dietMode)

+                                if (newWeightPenalty > 0 && !_dietMode && Config.DISABLE_WEIGHT_PENALTY)

                                {

 

 

Disable Grade Penalty Config:

 

 

properties :

+#------------------------

+# Grade Penalty Config  #

+#------------------------

+# Disable Grade Penalty

+DisableGradePenalty = False

 

 

_____________________________________

 

Config.java

 

+    public static boolean  DISABLE_GRADE_PENALTY;

 

 

+    DISABLE_GRADE_PENALTY  = Boolean.parseBoolean(L2JBrasilCustom.getProperty("DisableGradePenalty", "False"));

 

______________________________________________________

 

L2PcInstance.java

@@ -1805,5 +1805,5 @@

newPenalty = newPenalty - getExpertiseIndex();

 

- if (newPenalty <= 0)

+ if (newPenalty <= 0 || Config.DISABLE_GRADE_PENALTY)

            newPenalty = 0;

 

 

L2JBrasil

Guest
This topic is now closed to further replies.
×
×
  • Create New...