|
|
@ -1064,11 +1064,11 @@ public class NPC extends AbstractCharacter { |
|
|
|
maxSkill = 110; |
|
|
|
maxSkill = 110; |
|
|
|
break; |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
ItemTemplate itemBase; |
|
|
|
ItemTemplate itemTemplate; |
|
|
|
for (Integer itemID : fullItemList) { |
|
|
|
for (Integer itemID : fullItemList) { |
|
|
|
itemBase = ItemTemplate.templates.get(itemID); |
|
|
|
itemTemplate = ItemTemplate.templates.get(itemID); |
|
|
|
boolean exclude = (int)itemBase.item_skill_required.values().toArray()[0] == 0 && ItemTemplate.templates.get(itemID).item_type == ItemType.WEAPON; |
|
|
|
boolean exclude = (int)itemTemplate.item_skill_required.values().toArray()[0] == 0 && ItemTemplate.templates.get(itemID).item_type == ItemType.WEAPON; |
|
|
|
if ((int)itemBase.item_skill_required.values().toArray()[0] <= maxSkill && !exclude) |
|
|
|
if ((int)itemTemplate.item_skill_required.values().toArray()[0] <= maxSkill && !exclude) |
|
|
|
filteredItemList.add(itemID); |
|
|
|
filteredItemList.add(itemID); |
|
|
|
} |
|
|
|
} |
|
|
|
if (this.contract.getVendorID() == 102) { |
|
|
|
if (this.contract.getVendorID() == 102) { |
|
|
@ -1087,7 +1087,7 @@ public class NPC extends AbstractCharacter { |
|
|
|
|
|
|
|
|
|
|
|
public int getRollingTimeInSeconds(int itemID) { |
|
|
|
public int getRollingTimeInSeconds(int itemID) { |
|
|
|
|
|
|
|
|
|
|
|
ItemBase ib = ItemBase.getItemBase(itemID); |
|
|
|
ItemTemplate ib = ItemTemplate.templates.get(itemID); |
|
|
|
|
|
|
|
|
|
|
|
if (ib == null) |
|
|
|
if (ib == null) |
|
|
|
return 0; |
|
|
|
return 0; |
|
|
|