If you mean you want to put enchant max +25 so players cant enchant more, go to clientpackets.requestEnchantItem.java and edit the java...
add smth like this:
// first validation check
if (!scrollTemplate.isValid(item, supportTemplate))
{
activeChar.sendPacket(SystemMessageId.INAPPROPRIATE_ENCHANT_CONDITION);
activeChar.setActiveEnchantItem(null);
activeChar.sendPacket(new EnchantResult(2, 0, 0));
return;
}
+ // MAX ENCHANT
+ if (item.getEnchantLevel() >= 25)
+ {
+ activeChar.sendMessage("Your " + item.getName() + " has reached the enchant limit.");
+ activeChar.setActiveEnchantItem(null);
+ activeChar.sendPacket(new EnchantResult(2, 0, 0));
+ return;
+ }
i just wrote it, but im sure it works try it