if (count > item.getCount())
return;
while (count-- > 0)
{
L2ExtractableItem exitem = ExtractableItemsData.getInstance().getExtractableItem(itemID);
if (exitem == null)
return;
int createItemID = 0, createAmount = 0, rndNum = Rnd.get(100), chanceFrom = 0;
for (L2ExtractableProductItem expi : exitem.getProductItems())
{
int chance = expi.getChance();
if (rndNum >= chanceFrom && rndNum <= chance + chanceFrom)
{