|
|
|
@ -678,9 +678,11 @@ public class WorldServer {
@@ -678,9 +678,11 @@ public class WorldServer {
|
|
|
|
|
}else{ |
|
|
|
|
if(resourceMerchant != null){ |
|
|
|
|
for(int resourceID : Warehouse.getMaxResources().keySet()){ |
|
|
|
|
MobLoot resource = new MobLoot(resourceMerchant,ItemBase.getItemBase(resourceID),1,false); |
|
|
|
|
//MobLoot resource = new MobLoot(resourceMerchant,ItemBase.getItemBase(resourceID),1,false);
|
|
|
|
|
//resource.magicValue = Warehouse.getCostForResource(resourceID);
|
|
|
|
|
MobEquipment resource = new MobEquipment(resourceID,100.0f); |
|
|
|
|
resource.magicValue = Warehouse.getCostForResource(resourceID); |
|
|
|
|
resourceMerchant.getInventory().add(resource); |
|
|
|
|
resourceMerchant.contract.getSellInventory().add(resource); |
|
|
|
|
} |
|
|
|
|
resourceMerchant.sellPercent = 0.0f; |
|
|
|
|
resourceMerchant.setName("Stocky the Resource Merchant"); |
|
|
|
|