|
|
@ -631,28 +631,29 @@ public class WorldServer { |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
//add extra vendors for lakebane
|
|
|
|
//add extra vendors for lakebane
|
|
|
|
//try {
|
|
|
|
//
|
|
|
|
// Building sdrHut = BuildingManager.getBuilding(27979);
|
|
|
|
try { |
|
|
|
// Zone sdr = sdrHut.parentZone;
|
|
|
|
Building sdrHut = BuildingManager.getBuilding(27979); |
|
|
|
// boolean exists = false;
|
|
|
|
Zone sdr = sdrHut.parentZone; |
|
|
|
// for(NPC merchant : sdr.zoneNPCSet)
|
|
|
|
boolean exists = false; |
|
|
|
// if(merchant.contract.getContractID() == 1200)
|
|
|
|
for(NPC merchant : sdr.zoneNPCSet) |
|
|
|
// exists = true;
|
|
|
|
if(merchant.contract.getContractID() == 1200) |
|
|
|
// if (!exists) {
|
|
|
|
exists = true; |
|
|
|
// NPC runeMerchant = NPC.createNPC("Runey", 1200, Vector3fImmutable.ZERO, Guild.getGuild(6), ZoneManager.getZoneByUUID(656), (short) 70, null);
|
|
|
|
if (!exists) { |
|
|
|
// runeMerchant.sellPercent = 0;
|
|
|
|
NPC runeMerchant = NPC.createNPC("Runey", 1200, Vector3fImmutable.ZERO, Guild.getGuild(6), ZoneManager.getZoneByUUID(656), (short) 70, null); |
|
|
|
// runeMerchant.buildingUUID = sdrHut.getObjectUUID();
|
|
|
|
runeMerchant.sellPercent = 9999.00f; |
|
|
|
// runeMerchant.building = sdrHut;
|
|
|
|
runeMerchant.buildingUUID = sdrHut.getObjectUUID(); |
|
|
|
// NPCManager.slotCharacterInBuilding(runeMerchant);
|
|
|
|
runeMerchant.building = sdrHut; |
|
|
|
// runeMerchant.setLoc(runeMerchant.bindLoc);
|
|
|
|
NPCManager.slotCharacterInBuilding(runeMerchant); |
|
|
|
// for (MobEquipment item : runeMerchant.contract.getSellInventory()) {
|
|
|
|
runeMerchant.setLoc(runeMerchant.bindLoc); |
|
|
|
// item.magicValue = 10000000;
|
|
|
|
for (MobEquipment item : runeMerchant.contract.getSellInventory()) { |
|
|
|
// }
|
|
|
|
item.magicValue = 10000000; |
|
|
|
// }
|
|
|
|
} |
|
|
|
//}
|
|
|
|
} |
|
|
|
//catch(Exception e){
|
|
|
|
} |
|
|
|
// Logger.error("FAILED TO ADD RUNE MERCHANT");
|
|
|
|
catch(Exception e){ |
|
|
|
//}
|
|
|
|
Logger.error("FAILED TO ADD RUNE MERCHANT"); |
|
|
|
|
|
|
|
} |
|
|
|
Logger.info("time to load World Objects: " + (System.currentTimeMillis() - start) + " ms"); |
|
|
|
Logger.info("time to load World Objects: " + (System.currentTimeMillis() - start) + " ms"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|