|
|
@ -1306,11 +1306,13 @@ public class NPC extends AbstractCharacter { |
|
|
|
maxSkill = 110; |
|
|
|
maxSkill = 110; |
|
|
|
break; |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
ItemBase itemBase; |
|
|
|
for (Integer itemID : fullItemList) |
|
|
|
for (Integer itemID : fullItemList) { |
|
|
|
if (ItemBase.getItemBase(itemID).getPercentRequired() <= maxSkill) |
|
|
|
itemBase = ItemBase.getItemBase(itemID); |
|
|
|
|
|
|
|
boolean exclude = itemBase.getPercentRequired() == 0 && itemBase.getType() == ItemType.WEAPON; |
|
|
|
|
|
|
|
if (itemBase.getPercentRequired() <= maxSkill && !exclude) |
|
|
|
filteredItemList.add(itemID); |
|
|
|
filteredItemList.add(itemID); |
|
|
|
|
|
|
|
} |
|
|
|
if (this.contract.getVendorID() == 102) { |
|
|
|
if (this.contract.getVendorID() == 102) { |
|
|
|
|
|
|
|
|
|
|
|
for (int i = 0; i < this.getRank(); i++) { |
|
|
|
for (int i = 0; i < this.getRank(); i++) { |
|
|
|