item.setEnchantLevel(item.getEnchantLevel());
item.setJdbcState(JdbcEntityState.UPDATED);
item.update();
if (equipped)
{
inventory.equipItem(item);
inventory.isRefresh = false;
}
player.sendPacket(new InventoryUpdate().addModifiedItem(item));
player.sendPacket(SystemMsg.THE_BLESSED_ENCHANT_FAILED);
player.sendPacket(EnchantResult.ANCIENT_FAILED);