Jump to content
  • 0

[help]How Can i remove grade penalty?


Question

6 answers to this question

Recommended Posts

  • 0
Posted

public void refreshExpertisePenalty()

{

+ if (Config.ALLOW_GRADE_PENALTY)

+ {

int newPenalty = 0;

 

for (L2ItemInstance item : getInventory().getItems())

{

if (item != null && item.isEquipped())

{

int crystaltype = item.getItem().getCrystalType();

 

if (crystaltype > newPenalty)

newPenalty = crystaltype;

}

}

 

newPenalty = newPenalty - getExpertiseIndex();

 

if (newPenalty <= 0)

newPenalty = 0;

 

if (getExpertisePenalty() != newPenalty)

{

_expertisePenalty = newPenalty;

 

if (newPenalty > 0)

super.addSkill(SkillTable.getInstance().getInfo(4267, 1));

else

super.removeSkill(getKnownSkill(4267));

 

sendPacket(new EtcStatusUpdate(this));

}

+ }

}


You must to create field for ALLOW_GRADE_PENALTY in Config.Java

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