From 89587970dd3f557f51c2c3341552d848c2fe18e2 Mon Sep 17 00:00:00 2001 From: "Michael Cook (mackal)" Date: Fri, 28 Apr 2017 13:37:54 -0400 Subject: [PATCH] Add invis messages --- zone/client_packet.cpp | 11 ++++++++++- zone/string_ids.h | 2 ++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/zone/client_packet.cpp b/zone/client_packet.cpp index 05c397fb4..a6014d4cf 100644 --- a/zone/client_packet.cpp +++ b/zone/client_packet.cpp @@ -4806,6 +4806,7 @@ void Client::Handle_OP_Consider(const EQApplicationPacket *app) mod_consider(tmob, con); QueuePacket(outapp); + safe_delete(outapp); // only wanted to check raid target once // and need con to still be around so, do it here! if (tmob->IsRaidTarget()) { @@ -4843,7 +4844,15 @@ void Client::Handle_OP_Consider(const EQApplicationPacket *app) SendColoredText(color, std::string("This creature would take an army to defeat!")); } - safe_delete(outapp); + + // this could be done better, but this is only called when you con so w/e + // Shroud of Stealth has a special message + if (improved_hidden && !tmob->see_improved_hide) + Message_StringID(10, SOS_KEEPS_HIDDEN); + // we are trying to hide but they can see us + else if ((invisible || invisible_undead || hidden || invisible_animals) && !IsInvisible(tmob)) + Message_StringID(10, SUSPECT_SEES_YOU); + return; } diff --git a/zone/string_ids.h b/zone/string_ids.h index f03d8f44d..b1c2b1071 100644 --- a/zone/string_ids.h +++ b/zone/string_ids.h @@ -288,6 +288,7 @@ #define CORPSEDRAG_BEGIN 4064 //You begin to drag %1. #define CORPSEDRAG_STOPALL 4065 //You stop dragging the corpses. #define CORPSEDRAG_STOP 4066 //You stop dragging the corpse. +#define SOS_KEEPS_HIDDEN 4086 //Your Shroud of Stealth keeps you hidden from watchful eyes.␣␣ #define TARGET_TOO_CLOSE 4602 //You are too close to your target. Get farther away. #define WHOALL_NO_RESULTS 5029 //There are no players in EverQuest that match those who filters. #define TELL_QUEUED_MESSAGE 5045 //You told %1 '%T2. %3' @@ -302,6 +303,7 @@ #define PET_ATTACKING 5501 //%1 tells you, 'Attacking %2 Master.' #define AVOID_STUNNING_BLOW 5753 //You avoid the stunning blow. #define FATAL_BOW_SHOT 5745 //%1 performs a FATAL BOW SHOT!! +#define SUSPECT_SEES_YOU 5746 //You suspect that this being can see you. #define MELEE_SILENCE 5806 //You *CANNOT* use this melee ability, you are suffering from amnesia! #define DISCIPLINE_REUSE_MSG 5807 //You can use the ability %1 again in %2 hour(s) %3 minute(s) %4 seconds. #define DISCIPLINE_REUSE_MSG2 5808 //You can use the ability %1 again in %2 minute(s) %3 seconds.