|
|
@ -647,17 +647,20 @@ public class WorldServer { |
|
|
|
Logger.error("FAILED TO ADD RUNE MERCHANT"); |
|
|
|
Logger.error("FAILED TO ADD RUNE MERCHANT"); |
|
|
|
} |
|
|
|
} |
|
|
|
try { |
|
|
|
try { |
|
|
|
NPC resourceMerchant = NPC.createNPC("Resources", 960124, Vector3fImmutable.ZERO, Guild.getGuild(6), ZoneManager.getZoneByUUID(656), (short) 70, null); |
|
|
|
|
|
|
|
|
|
|
|
NPC resourceMerchant = NPC.createNPC("Resource Merchant", 960124, Vector3fImmutable.ZERO, Guild.getGuild(6), ZoneManager.getZoneByUUID(656), (short) 70, null); |
|
|
|
resourceMerchant.sellPercent = 0; |
|
|
|
resourceMerchant.sellPercent = 0; |
|
|
|
|
|
|
|
resourceMerchant.contract.vendorDialog = VendorDialog.getVendorDialog(623); |
|
|
|
Building sdrHut = BuildingManager.getBuilding(27984); |
|
|
|
Building sdrHut = BuildingManager.getBuilding(27984); |
|
|
|
resourceMerchant.buildingUUID = sdrHut.getObjectUUID(); |
|
|
|
resourceMerchant.buildingUUID = sdrHut.getObjectUUID(); |
|
|
|
resourceMerchant.building = sdrHut; |
|
|
|
resourceMerchant.building = sdrHut; |
|
|
|
NPCManager.slotCharacterInBuilding(resourceMerchant); |
|
|
|
NPCManager.slotCharacterInBuilding(resourceMerchant); |
|
|
|
resourceMerchant.setLoc(resourceMerchant.bindLoc); |
|
|
|
resourceMerchant.setLoc(resourceMerchant.bindLoc); |
|
|
|
//for(MobEquipment item : resourceMerchant.contract.getSellInventory()){
|
|
|
|
resourceMerchant.contract.getSellInventory().clear(); |
|
|
|
// item.magicValue = 10000000;
|
|
|
|
for(int resourceID : Warehouse.getMaxResources().keySet()){ |
|
|
|
//}
|
|
|
|
MobEquipment me = new MobEquipment(ItemBase.getItemBase(resourceID), 0, 0); |
|
|
|
//resourceMerchant.contract.getSellInventory()
|
|
|
|
resourceMerchant.contract.getSellInventory().add(me); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
catch(Exception e){ |
|
|
|
catch(Exception e){ |
|
|
|
Logger.error("FAILED TO ADD RUNE MERCHANT"); |
|
|
|
Logger.error("FAILED TO ADD RUNE MERCHANT"); |
|
|
|