Jump to content

Question

5 answers to this question

Recommended Posts

  • 0
Posted

First go to altsettings config and paste this :

# Limit of Attributes

AltMaxAtkElem = 200

AltMaxDefElem = 200

 

Then go to net.sf.l2j.config.java

and paste this at altsettings config

 

public static int                  ALT_MAX_ATK_ELEM;

public static int                  ALT_MAX_DEF_ELEM;

.........

ALT_MAX_ATK_ELEM = Integer.parseInt(altSettings.getProperty("MaxAtkElem", "500"));                       

ALT_MAX_DEF_ELEM = Integer.parseInt(altSettings.getProperty("MaxDefElem", "500")); 

 

else if (pName.equalsIgnoreCase("MaxAtkElem"))

        ALT_GRADE_PENALTY = Boolean.parseBoolean(pValue);

else if (pName.equalsIgnoreCase("MaxDefElem"))

        ALT_GRADE_PENALTY = Boolean.parseBoolean(pValue);

.......

finally go to PcStat.java and paste this:

 

@Override

  public int getAttackElementValue(byte attribute)

  {

      int value = super.getAttackElementValue(attribute);

     

                if (value > Config.ALT_MAX_ATK_ELEM && Config.ALT_MAX_ATK_ELEM > 0 && !getActiveChar().isGM())

        return Config.ALT_MAX_ATK_ELEM;

 

      // 20% if summon exist

      if (summonShouldHaveAttackElemental(getActiveChar().getPet()))

        return value / 5;

     

      return value;

  }

 

        @Override

  public int getDefenseElementValue(byte attribute)

  {

      int value = super.getDefenseElementValue(attribute);

     

                if (value > Config.ALT_MAX_DEF_ELEM && Config.ALT_MAX_DEF_ELEM > 0 && !getActiveChar().isGM())

        return Config.ALT_MAX_DEF_ELEM;

           

      return value;

  }

 

it's a fast guide.. Hope help

 

  • 0
Posted

How can we help you without basic info and ERROR LOG?????

 

1. Its english section so use english only.

 

2. Spidey* put your codes in CODE/QUOTE.

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..