mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-16 22:58:34 +00:00
[Quest API] (Performance) Check event exists before export and execute EVENT_TRADE (#2906)
# Notes - Optionally parse this event instead of always doing so.
This commit is contained in:
+4
-2
@@ -851,8 +851,10 @@ void Client::FinishTrade(Mob* tradingWith, bool finalizer, void* event_entry, st
|
||||
tradingWith->FaceTarget(this);
|
||||
}
|
||||
|
||||
std::vector<std::any> item_list(items.begin(), items.end());
|
||||
parse->EventNPC(EVENT_TRADE, tradingWith->CastToNPC(), this, "", 0, &item_list);
|
||||
if (parse->HasQuestSub(tradingWith->GetNPCTypeID(), EVENT_TRADE)) {
|
||||
std::vector<std::any> item_list(items.begin(), items.end());
|
||||
parse->EventNPC(EVENT_TRADE, tradingWith->CastToNPC(), this, "", 0, &item_list);
|
||||
}
|
||||
|
||||
for(int i = 0; i < 4; ++i) {
|
||||
if(insts[i]) {
|
||||
|
||||
Reference in New Issue
Block a user