From 61790ef195c29d0be7419123e9796fff631d3b60 Mon Sep 17 00:00:00 2001 From: Uleat Date: Mon, 13 Jan 2020 19:01:42 -0500 Subject: [PATCH 1/2] Wasn't quite dead... (Removed substring call from silent saylink parsing) --- zone/client_packet.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/zone/client_packet.cpp b/zone/client_packet.cpp index 6a8ef9dd3..ebc6bd38a 100644 --- a/zone/client_packet.cpp +++ b/zone/client_packet.cpp @@ -8290,11 +8290,11 @@ void Client::Handle_OP_ItemLinkClick(const EQApplicationPacket *app) parse->EventNPC(EVENT_SAY, GetTarget()->CastToNPC(), this, response.c_str(), 0); if (response[0] == '#' && parse->PlayerHasQuestSub(EVENT_COMMAND)) { - parse->EventPlayer(EVENT_COMMAND, this, response.substr(1).c_str(), 0); + parse->EventPlayer(EVENT_COMMAND, this, response.c_str(), 0); } #ifdef BOTS else if (response[0] == '^' && parse->PlayerHasQuestSub(EVENT_BOT_COMMAND)) { - parse->EventPlayer(EVENT_BOT_COMMAND, this, response.substr(1).c_str(), 0); + parse->EventPlayer(EVENT_BOT_COMMAND, this, response.c_str(), 0); } #endif else { @@ -8310,11 +8310,11 @@ void Client::Handle_OP_ItemLinkClick(const EQApplicationPacket *app) else { if (silentsaylink) { if (response[0] == '#' && parse->PlayerHasQuestSub(EVENT_COMMAND)) { - parse->EventPlayer(EVENT_COMMAND, this, response.substr(1).c_str(), 0); + parse->EventPlayer(EVENT_COMMAND, this, response.c_str(), 0); } #ifdef BOTS else if (response[0] == '^' && parse->PlayerHasQuestSub(EVENT_BOT_COMMAND)) { - parse->EventPlayer(EVENT_BOT_COMMAND, this, response.substr(1).c_str(), 0); + parse->EventPlayer(EVENT_BOT_COMMAND, this, response.c_str(), 0); } #endif else { From 331032f4f4342f6dff01f59f23eed2f9e5173b60 Mon Sep 17 00:00:00 2001 From: Akkadius Date: Tue, 14 Jan 2020 16:14:19 -0600 Subject: [PATCH 2/2] Push a scan when mobs first construct [skip ci] --- zone/mob.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/zone/mob.cpp b/zone/mob.cpp index 8b8758771..94b53d1f9 100644 --- a/zone/mob.cpp +++ b/zone/mob.cpp @@ -459,6 +459,8 @@ Mob::Mob( #ifdef BOTS m_manual_follow = false; #endif + + mob_scan_close.Trigger(); } Mob::~Mob()