From d4da99f61c8fc22f1b49cb9559fb8c1b6731214f Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Sat, 31 Aug 2024 19:39:19 -0500 Subject: [PATCH] NPC sell% in safezone = 0 --- src/engine/net/client/ClientMessagePump.java | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/engine/net/client/ClientMessagePump.java b/src/engine/net/client/ClientMessagePump.java index 5cd1039d..3d4f8e52 100644 --- a/src/engine/net/client/ClientMessagePump.java +++ b/src/engine/net/client/ClientMessagePump.java @@ -1363,18 +1363,12 @@ public class ClientMessagePump implements NetMsgHandler { NPC npc = NPC.getFromCache(msg.getNpcID()); - - switch(npc.getContractID()){ - case 900: - case 1201: - case 1202: - npc.sellPercent = 0.0f; - break; - } if (npc == null) return; // test within talking range + if(npc.isInSafeZone()) + npc.sellPercent = 0; if (sourcePlayer.getLoc().distanceSquared2D(npc.getLoc()) > MBServerStatics.NPC_TALK_RANGE * MBServerStatics.NPC_TALK_RANGE) { ErrorPopupMsg.sendErrorPopup(sourcePlayer, 14);