activeChar.sendPacket(iu);
}
else
{
activeChar.sendPacket(new ItemList(activeChar, true));
}
StatusUpdate su = new StatusUpdate(activeChar.getObjectId());
su.addAttribute(StatusUpdate.CUR_LOAD, activeChar.getCurrentLoad());
activeChar.sendPacket(su);
activeChar.broadcastUserInfo();
L2World world = L2World.getInstance();
world.removeObject(destroyItem);
}
else
{
if(blessedScroll){
item.setEnchantLevel(Config.BREAK_ENCHANT);
item.updateDatabase();
}
else if(crystalScroll)
{
if(Config.ENABLE_CRYSTAL_ENCHANT_BREAK)
{
item.setEnchantLevel(Config.CRYSTAL_ENCHANT_MIN);
}
item.updateDatabase();
}
}
}
}
sm = null;
StatusUpdate su = new StatusUpdate(activeChar.getObjectId());
su.addAttribute(StatusUpdate.CUR_LOAD, activeChar.getCurrentLoad());
activeChar.sendPacket(su);
su = null;
activeChar.sendPacket(new EnchantResult(item.getEnchantLevel())); //FIXME i'm really not sure about this...
activeChar.sendPacket(new ItemList(activeChar, false)); //TODO update only the enchanted item
activeChar.broadcastUserInfo();
}