activeChar.sendPacket(new SystemMessage(SystemMessage.S1_POINTS_HAVE_BEEN_DEDUCTED_FROM_THE_CLAN_REPUTATION_SCORE).addNumber(count));
}
else if(id.getId() == L2Item.ITEM_ID_PC_BANG_POINTS)
{
activeChar.setPcBangPoints(activeChar.getPcBangPoints() - (int) count);
activeChar.sendPacket(new SystemMessage(SystemMessage.YOU_ARE_USING_S1_POINT).addNumber(count), new ExPCCafePointInfo(activeChar));
}
else if(id.getId() == L2Item.ITEM_ID_FAME)
{
activeChar.setFame(activeChar.getFame() - (int) count, "MultiSell" + _listId);
activeChar.sendPacket(new SystemMessage(SystemMessage.S2_S1_HAS_DISAPPEARED).addNumber(count).addString("Fame"));
}
}
}
if(tax > 0 && !_notax)
{
if(castle != null)
{
activeChar.sendMessage("Tax: " + tax);
if(merchant != null && merchant.getReflection().getId() == 0)
{
castle.addToTreasury(tax, true, false);
Log.add(castle.getName() + "|" + tax + "|Multisell", "treasury");
}
}
}
for(MultiSellIngredient in : productId)
{
if(in.getItemId() <= 0)
{
if(in.getItemId() == L2Item.ITEM_ID_CLAN_REPUTATION_SCORE)
{
activeChar.getClan().incReputation((int) (in.getItemCount() * _amount), false, "MultiSell" + _listId);
activeChar.sendPacket(new SystemMessage(SystemMessage.YOUR_CLAN_HAS_ADDED_1S_POINTS_TO_ITS_CLAN_REPUTATION_SCORE).addNumber(in.getItemCount() * _amount));
}
else if(in.getItemId() == L2Item.ITEM_ID_PC_BANG_POINTS)
{
activeChar.setPcBangPoints(activeChar.getPcBangPoints() + (int) (in.getItemCount() * _amount));
activeChar.sendPacket(new SystemMessage(SystemMessage.YOU_ACQUIRED_S1_PC_BANG_POINT).addNumber(in.getItemCount() * _amount), new ExPCCafePointInfo(activeChar));
}
else if(in.getItemId() == L2Item.ITEM_ID_FAME)
{
activeChar.setFame(activeChar.getFame() + (int) (in.getItemCount() * _amount), "MultiSell" + _listId);
}