{
sweep.dropToTheGround(player, target);
continue;
}
player.getInventory().addItem(sweep);
SystemMessage smsg;
if (item.count == 1)
{
smsg = new SystemMessage(SystemMessage.YOU_HAVE_OBTAINED_S1);
smsg.addItemName(item.itemId);
player.sendPacket(smsg);
}
else
{
smsg = new SystemMessage(SystemMessage.YOU_HAVE_OBTAINED_S2_S1);
smsg.addItemName(item.itemId);
smsg.addNumber(item.count);
player.sendPacket(smsg);
}
if (player.isInParty())
{
if (item.count == 1)
{
smsg = new SystemMessage(SystemMessage.S1_HAS_OBTAINED_S2_BY_USING_SWEEPER);
smsg.addName(player);
smsg.addItemName(item.itemId);
player.getParty().broadcastToPartyMembers(player, smsg);
}
else
{
smsg = new SystemMessage(SystemMessage.S1_HAS_OBTAINED_3_S2_S_BY_USING_SWEEPER);
smsg.addName(player);
smsg.addItemName(item.itemId);
smsg.addNumber(item.count);
player.getParty().broadcastToPartyMembers(player, smsg);
}
}
}
activeChar.getAI().setAttackTarget(null);