|
|
@ -631,42 +631,17 @@ public class WorldServer { |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
//add extra vendors for lakebane
|
|
|
|
//add extra vendors for lakebane
|
|
|
|
try { |
|
|
|
|
|
|
|
Building sdrHut = BuildingManager.getBuilding(27979); |
|
|
|
|
|
|
|
if (sdrHut.getHirelings().size() < 1) { |
|
|
|
|
|
|
|
NPC runeMerchant = NPC.createNPC("Runey", 1200, Vector3fImmutable.ZERO, Guild.getGuild(6), ZoneManager.getZoneByUUID(656), (short) 70, null); |
|
|
|
|
|
|
|
runeMerchant.sellPercent = 0; |
|
|
|
|
|
|
|
runeMerchant.buildingUUID = sdrHut.getObjectUUID(); |
|
|
|
|
|
|
|
runeMerchant.building = sdrHut; |
|
|
|
|
|
|
|
NPCManager.slotCharacterInBuilding(runeMerchant); |
|
|
|
|
|
|
|
runeMerchant.setLoc(runeMerchant.bindLoc); |
|
|
|
|
|
|
|
for (MobEquipment item : runeMerchant.contract.getSellInventory()) { |
|
|
|
|
|
|
|
item.magicValue = 10000000; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
catch(Exception e){ |
|
|
|
|
|
|
|
Logger.error("FAILED TO ADD RUNE MERCHANT"); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//try {
|
|
|
|
//try {
|
|
|
|
// Building sdrHut = BuildingManager.getBuilding(27984);
|
|
|
|
// Building sdrHut = BuildingManager.getBuilding(27979);
|
|
|
|
// if(sdrHut.getHirelings().size() < 2) {
|
|
|
|
// if (sdrHut.getHirelings().size() < 1) {
|
|
|
|
// NPC resourceMerchant = NPC.createNPC("Resource Merchant", 830, Vector3fImmutable.ZERO, Guild.getGuild(6), ZoneManager.getZoneByUUID(656), (short) 70, null);
|
|
|
|
// NPC runeMerchant = NPC.createNPC("Runey", 1200, Vector3fImmutable.ZERO, Guild.getGuild(6), ZoneManager.getZoneByUUID(656), (short) 70, null);
|
|
|
|
// resourceMerchant.sellPercent = 0;
|
|
|
|
// runeMerchant.sellPercent = 0;
|
|
|
|
// resourceMerchant.contract.vendorDialog = VendorDialog.getVendorDialog(623);
|
|
|
|
// runeMerchant.buildingUUID = sdrHut.getObjectUUID();
|
|
|
|
// resourceMerchant.buildingUUID = sdrHut.getObjectUUID();
|
|
|
|
// runeMerchant.building = sdrHut;
|
|
|
|
// resourceMerchant.building = sdrHut;
|
|
|
|
// NPCManager.slotCharacterInBuilding(runeMerchant);
|
|
|
|
// NPCManager.slotCharacterInBuilding(resourceMerchant);
|
|
|
|
// runeMerchant.setLoc(runeMerchant.bindLoc);
|
|
|
|
// resourceMerchant.setLoc(resourceMerchant.bindLoc);
|
|
|
|
// for (MobEquipment item : runeMerchant.contract.getSellInventory()) {
|
|
|
|
// //resourceMerchant.contract.getSellInventory().clear();
|
|
|
|
// item.magicValue = 10000000;
|
|
|
|
// Contract contract = resourceMerchant.contract.
|
|
|
|
|
|
|
|
// for(int resourceID : Warehouse.getMaxResources().keySet()){
|
|
|
|
|
|
|
|
// if(resourceID == 7 || resourceID == 1580021)
|
|
|
|
|
|
|
|
// continue;
|
|
|
|
|
|
|
|
// MobLoot resource = new MobLoot(resourceMerchant,ItemBase.getItemBase(resourceID), 1, true);
|
|
|
|
|
|
|
|
// resource.setValue(Warehouse.getCostForResource(resourceID));
|
|
|
|
|
|
|
|
// resourceMerchant.getCharItemManager().addItemToInventory(resource);
|
|
|
|
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
//}
|
|
|
|
//}
|
|
|
|