|
|
|
@ -1067,9 +1067,8 @@ public class NPC extends AbstractCharacter {
@@ -1067,9 +1067,8 @@ public class NPC extends AbstractCharacter {
|
|
|
|
|
ItemTemplate itemTemplate; |
|
|
|
|
for (Integer itemID : fullItemList) { |
|
|
|
|
itemTemplate = ItemTemplate.templates.get(itemID); |
|
|
|
|
int[] skillsRequired = (int[]) itemTemplate.item_skill_required.values().toArray()[0]; |
|
|
|
|
boolean exclude = skillsRequired[0] == 0 && ItemTemplate.templates.get(itemID).item_type == ItemType.WEAPON; |
|
|
|
|
if ((int)itemTemplate.item_skill_required.values().toArray()[0] <= maxSkill && !exclude) |
|
|
|
|
boolean exclude = itemTemplate.item_skill_required.values().iterator().next() == 0 && ItemTemplate.templates.get(itemID).item_type.equals(ItemType.WEAPON); |
|
|
|
|
if (itemTemplate.item_skill_required.values().iterator().next() <= maxSkill && !exclude) |
|
|
|
|
filteredItemList.add(itemID); |
|
|
|
|
} |
|
|
|
|
if (this.contract.getVendorID() == 102) { |
|
|
|
|