long count = _id == ExtractScrollSkill ? 1 : Math.min(10, Rnd.get((int) (getLevel() * rate + 1)));
int itemId = getItemId(target.getNpcId());
if(count > 0)
{
player.getInventory().addItem(itemId, count);
player.sendPacket(new PlaySound(Quest.SOUND_ITEMGET));
player.sendPacket(SystemMessage.obtainItems(itemId, count, 0));
player.sendStatusUpdate(false, StatusUpdate.CUR_LOAD);
}
else
{