mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-11 07:38:36 +00:00
[Quest API] (Performance) Check event EVENT_PAYLOAD or EVENT_SIGNAL exist before export and execute (#2902)
* [Quest API] Optionally parse EVENT_PAYLOAD and EVENT_SIGNAL # Notes - Optionally parse these events instead of always doing so. * Update bot.cpp
This commit is contained in:
+4
-2
@@ -2470,8 +2470,10 @@ void NPC::CheckSignal() {
|
||||
if (!signal_q.empty()) {
|
||||
int signal_id = signal_q.front();
|
||||
signal_q.pop_front();
|
||||
const auto export_string = fmt::format("{}", signal_id);
|
||||
parse->EventNPC(EVENT_SIGNAL, this, nullptr, export_string, 0);
|
||||
|
||||
if (parse->HasQuestSub(GetNPCTypeID(), EVENT_SIGNAL)) {
|
||||
parse->EventNPC(EVENT_SIGNAL, this, nullptr, std::to_string(signal_id), 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user