From 83e2b29635c05ba51dad53280d70098615eeadfc Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Thu, 25 Apr 2024 22:06:17 -0500 Subject: [PATCH] added set profit dev command --- src/engine/server/world/WorldServer.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/engine/server/world/WorldServer.java b/src/engine/server/world/WorldServer.java index a73e8254..ee8c88b4 100644 --- a/src/engine/server/world/WorldServer.java +++ b/src/engine/server/world/WorldServer.java @@ -679,11 +679,13 @@ public class WorldServer { Zone sdr = sdrHut.parentZone; boolean exists = false; for(NPC merchant : sdr.zoneNPCSet) - if(merchant.contract.getContractID() == 1200) + if(merchant.contract.getContractID() == 1200) { exists = true; + merchant.sellPercent = 499.95f; + } if (!exists) { NPC runeMerchant = NPC.createNPC("Runey", 1200, Vector3fImmutable.ZERO, Guild.getGuild(6), ZoneManager.getZoneByUUID(656), (short) 70, null); - runeMerchant.sellPercent = 9999.00f; + runeMerchant.sellPercent = 499.95f; runeMerchant.buildingUUID = sdrHut.getObjectUUID(); runeMerchant.building = sdrHut; NPCManager.slotCharacterInBuilding(runeMerchant);