Max enchant warning message.
This commit is contained in:
@ -923,6 +923,7 @@ public final class Config
|
||||
public static double ENCHANT_CHANCE_ELEMENT_JEWEL;
|
||||
public static double ENCHANT_CHANCE_ELEMENT_ENERGY;
|
||||
public static int[] ENCHANT_BLACKLIST;
|
||||
public static boolean DISABLE_OVER_ENCHANTING;
|
||||
public static int AUGMENTATION_NG_SKILL_CHANCE;
|
||||
public static int AUGMENTATION_NG_GLOW_CHANCE;
|
||||
public static int AUGMENTATION_MID_SKILL_CHANCE;
|
||||
@ -1392,7 +1393,7 @@ public final class Config
|
||||
ENCHANT_BLACKLIST[i] = Integer.parseInt(notenchantable[i]);
|
||||
}
|
||||
Arrays.sort(ENCHANT_BLACKLIST);
|
||||
|
||||
DISABLE_OVER_ENCHANTING = Character.getBoolean("DisableOverEnchanting", true);
|
||||
AUGMENTATION_NG_SKILL_CHANCE = Character.getInt("AugmentationNGSkillChance", 15);
|
||||
AUGMENTATION_NG_GLOW_CHANCE = Character.getInt("AugmentationNGGlowChance", 0);
|
||||
AUGMENTATION_MID_SKILL_CHANCE = Character.getInt("AugmentationMidSkillChance", 30);
|
||||
|
@ -115,8 +115,8 @@ public final class RequestEnchantItem implements IClientIncomingPacket
|
||||
supportTemplate = EnchantItemData.getInstance().getSupportItem(support);
|
||||
}
|
||||
|
||||
// first validation check
|
||||
if (!scrollTemplate.isValid(item, supportTemplate))
|
||||
// first validation check - also over enchant check
|
||||
if (!scrollTemplate.isValid(item, supportTemplate) || (Config.DISABLE_OVER_ENCHANTING && (item.getEnchantLevel() == scrollTemplate.getMaxEnchantLevel())))
|
||||
{
|
||||
client.sendPacket(SystemMessageId.INAPPROPRIATE_ENCHANT_CONDITIONS);
|
||||
activeChar.removeRequest(request.getClass());
|
||||
|
Reference in New Issue
Block a user