Hello all dear members how to fix grade penalty on l2jfrozen ?
This option doesnt work i have on config ExpertisePenalty=True and dont work players can equip weapon s on 40 lvl
/**
* Refresh expertise penalty.
*/
public void refreshExpertisePenalty()
{
if (!Config.EXPERTISE_PENALTY)
return;
int intensityW = 0; // Default value
int intensityA = 0; // Default value.
// Level of grade penalty.
for (final L2ItemInstance item : getInventory().getItems())
{
// Checks if items equipped
if (item != null && item.isEquipped())
{
// Gets grade of item
final int crystaltype = item.getItem().getCrystalType();
if (item.isWeapon())
{
if (crystaltype-getExpertiseIndex()>=intensityW)
{
intensityW = crystaltype-getExpertiseIndex();
}
}
else
{
if (item.isArmor())
{
if (crystaltype-getExpertiseIndex()>=intensityA)
{
intensityA = crystaltype-getExpertiseIndex();
}
}
}
}
}
int intensity = intensityW + intensityA;
if (getExpertisePenalty() != intensity)
{
int penalties = _masteryPenalty + _masteryWeapPenalty + intensity;
if (penalties > 10) // Checks if penalties are out of bounds for skill level on XML
{
penalties = 10;
}
You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
Lineage II Classic Einhovant new project is looking for a skilled Java Developer to join our team!
If you're passionate about game development and eager to contribute to this project, we'd love to hear from you.
For more details, feel free to send us a message. Let’s create something amazing together!
Question
TreVor
Edited by TreVor
6 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.