Browse Source

cleanup

lakebane-master
FatBoy-DOTC 7 months ago
parent
commit
55b6f95696
  1. 44
      src/engine/server/world/WorldServer.java

44
src/engine/server/world/WorldServer.java

@ -681,28 +681,28 @@ public class WorldServer {
} }
//add extra vendors for lakebane //add extra vendors for lakebane
// //
try { //try {
Building sdrHut = BuildingManager.getBuilding(180430); // Building sdrHut = BuildingManager.getBuilding(180430);
Zone sdr = sdrHut.parentZone; // Zone sdr = sdrHut.parentZone;
boolean exists = false; // boolean exists = false;
for(NPC merchant : sdr.zoneNPCSet) // for(NPC merchant : sdr.zoneNPCSet)
if(merchant.contract.getContractID() == 1200) { // if(merchant.contract.getContractID() == 1200) {
exists = true; // exists = true;
merchant.sellPercent = 499.95f; // merchant.sellPercent = 499.95f;
} // }
if (!exists) { // if (!exists) {
NPC runeMerchant = NPC.createNPC("Runey", 1200, 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);
runeMerchant.sellPercent = 499.95f; // runeMerchant.sellPercent = 499.95f;
runeMerchant.buildingUUID = sdrHut.getObjectUUID(); // runeMerchant.buildingUUID = sdrHut.getObjectUUID();
runeMerchant.building = sdrHut; // runeMerchant.building = sdrHut;
NPCManager.slotCharacterInBuilding(runeMerchant); // NPCManager.slotCharacterInBuilding(runeMerchant);
runeMerchant.setLoc(runeMerchant.bindLoc); // runeMerchant.setLoc(runeMerchant.bindLoc);
runeMerchant.updateDatabase(); // runeMerchant.updateDatabase();
} // }
} //}
catch(Exception e){ //catch(Exception e){
Logger.error("FAILED TO ADD RUNE MERCHANT"); // Logger.error("FAILED TO ADD RUNE MERCHANT");
} //}
//try { //try {
// Building sdrHut = BuildingManager.getBuilding(27978); // Building sdrHut = BuildingManager.getBuilding(27978);
// Zone sdr = sdrHut.parentZone; // Zone sdr = sdrHut.parentZone;

Loading…
Cancel
Save