From d4a78f47996ee25bf98afd20f50ed222af4413da Mon Sep 17 00:00:00 2001 From: Fryguy Date: Sun, 7 Jan 2024 01:55:33 -0500 Subject: [PATCH] [Feature] Break Trader if moved (#3862) * [Feature] Break Trader if moved If the player moves while in trader mode, it will end the mode, this prevents traders from moving outside of the trader area after entering trader mode. * Fix spacing --- zone/client_packet.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/zone/client_packet.cpp b/zone/client_packet.cpp index 329addba9..4172c432a 100644 --- a/zone/client_packet.cpp +++ b/zone/client_packet.cpp @@ -4888,8 +4888,13 @@ void Client::Handle_OP_ClientUpdate(const EQApplicationPacket *app) { CheckIncreaseSkill(EQ::skills::SkillTracking, nullptr, -20); } - /* Break Hide if moving without sneaking and set rewind timer if moved */ if (cy != m_Position.y || cx != m_Position.x) { + // End trader mode if we move + if (Trader) { + Trader_EndTrader(); + } + + /* Break Hide if moving without sneaking and set rewind timer if moved */ if ((hidden || improved_hidden) && !sneaking) { hidden = false; improved_hidden = false;