From a37e30c550eeaf9f3a69646ea7b04582562b97ba Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Tue, 20 Feb 2024 21:06:32 -0600 Subject: [PATCH] test rune vendor --- src/engine/server/world/WorldServer.java | 40 ++++++++++++------------ 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/src/engine/server/world/WorldServer.java b/src/engine/server/world/WorldServer.java index b4973443..14f8b9d9 100644 --- a/src/engine/server/world/WorldServer.java +++ b/src/engine/server/world/WorldServer.java @@ -632,26 +632,26 @@ public class WorldServer { } //add extra vendors for lakebane // - try { - Building sdrHut = BuildingManager.getBuilding(27979); - Zone sdr = sdrHut.parentZone; - boolean exists = false; - for(NPC merchant : sdr.zoneNPCSet) - if(merchant.contract.getContractID() == 1200) - exists = true; - if (!exists) { - NPC runeMerchant = NPC.createNPC("Runey", 1200, Vector3fImmutable.ZERO, Guild.getGuild(6), ZoneManager.getZoneByUUID(656), (short) 70, null); - runeMerchant.sellPercent = 9999.00f; - runeMerchant.buildingUUID = sdrHut.getObjectUUID(); - runeMerchant.building = sdrHut; - NPCManager.slotCharacterInBuilding(runeMerchant); - runeMerchant.setLoc(runeMerchant.bindLoc); - runeMerchant.updateDatabase(); - } - } - catch(Exception e){ - Logger.error("FAILED TO ADD RUNE MERCHANT"); - } + //try { + // Building sdrHut = BuildingManager.getBuilding(27979); + // Zone sdr = sdrHut.parentZone; + // boolean exists = false; + // for(NPC merchant : sdr.zoneNPCSet) + // if(merchant.contract.getContractID() == 1200) + // exists = true; + // if (!exists) { + // NPC runeMerchant = NPC.createNPC("Runey", 1200, Vector3fImmutable.ZERO, Guild.getGuild(6), ZoneManager.getZoneByUUID(656), (short) 70, null); + // runeMerchant.sellPercent = 9999.00f; + // runeMerchant.buildingUUID = sdrHut.getObjectUUID(); + // runeMerchant.building = sdrHut; + // NPCManager.slotCharacterInBuilding(runeMerchant); + // runeMerchant.setLoc(runeMerchant.bindLoc); + // runeMerchant.updateDatabase(); + // } + //} + //catch(Exception e){ + // Logger.error("FAILED TO ADD RUNE MERCHANT"); + //} Logger.info("time to load World Objects: " + (System.currentTimeMillis() - start) + " ms"); }