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