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.
Good luck with your project - from the moment you take pleasure, it's the essential.
If you manage to improve performance over specific points compared to L2J (knownlist, geoengine, movement,...), don't hesitate to share back on your topic what/why you did it and the actual performance gain, if measured.
Question
TreVor
Edited by TreVor
Link to comment
Share on other sites
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.