[Feature] Add player /inspect quest event (#2508)

Returning non-zero from EVENT_INSPECT will prevent default message
This commit is contained in:
hg
2022-10-29 19:49:48 -04:00
committed by GitHub
parent 3bc5d4b125
commit 9e836a9780
7 changed files with 29 additions and 4 deletions
+7 -1
View File
@@ -9155,7 +9155,13 @@ void Client::Handle_OP_LDoNInspect(const EQApplicationPacket *app)
{
Mob * target = GetTarget();
if (target && target->GetClass() == LDON_TREASURE && !target->IsAura())
Message(Chat::Yellow, "%s", target->GetCleanName());
{
std::vector<std::any> args = { target };
if (parse->EventPlayer(EVENT_INSPECT, this, "", target->GetID(), &args) == 0)
{
Message(Chat::Yellow, "%s", target->GetCleanName());
}
}
}
void Client::Handle_OP_LDoNOpen(const EQApplicationPacket *app)