From f82a19f24331ae427195d38557ff524658abe0bc Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Tue, 20 Feb 2024 20:50:58 -0600 Subject: [PATCH] test rune vendor --- src/engine/server/world/WorldServer.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/engine/server/world/WorldServer.java b/src/engine/server/world/WorldServer.java index a190e4d6..54009162 100644 --- a/src/engine/server/world/WorldServer.java +++ b/src/engine/server/world/WorldServer.java @@ -633,7 +633,12 @@ public class WorldServer { //add extra vendors for lakebane try { Building sdrHut = BuildingManager.getBuilding(27979); - if (sdrHut.getHirelings() == null || sdrHut.getHirelings().size() != 1) { + 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 = 0; runeMerchant.buildingUUID = sdrHut.getObjectUUID();