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