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;
}
Payment processing for high-risk adult projects.
We connect only to active, stable platforms with quality support and low chargeback levels. We do not work with startups, projects in the launch stage, storefronts, or intermediaries.
Our terms:
• Fast onboarding without complicated compliance;
• Transparent fees with no rolling reserve;
• Support for Visa, Mastercard, American Express, Apple Pay, Google Pay, Alipay, WeChat Pay;
• Weekly payouts in USDT.
Who we work with in the adult segment:
• Tube sites and video platforms;
• Webcam studios and streaming projects;
• Hosting providers for adult content;
• Monetization platforms: fan subscriptions, marketplaces, pay-per-view;
• AI projects in the adult sphere (content generation, interactive services);
• Adult games, VR platforms, and interactive projects.
https://laucharge.com/adult
Telegram: @Laucharge_Support
Question
TreVor
Edited by TreVor
6 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now