diff --git a/zone/aa.cpp b/zone/aa.cpp index fc96beac2..e663e8c3d 100644 --- a/zone/aa.cpp +++ b/zone/aa.cpp @@ -1239,15 +1239,17 @@ void Client::FinishAlternateAdvancementPurchase(AA::Rank *rank, bool ignore_cost } } - const auto export_string = fmt::format( - "{} {} {} {}", - cost, - rank->id, - rank->prev_id, - rank->next_id - ); + if (parse->PlayerHasQuestSub(EVENT_AA_BUY)) { + const auto& export_string = fmt::format( + "{} {} {} {}", + cost, + rank->id, + rank->prev_id, + rank->next_id + ); - parse->EventPlayer(EVENT_AA_BUY, this, export_string, 0); + parse->EventPlayer(EVENT_AA_BUY, this, export_string, 0); + } CalcBonuses(); diff --git a/zone/exp.cpp b/zone/exp.cpp index d902bec4e..7dcc223cf 100644 --- a/zone/exp.cpp +++ b/zone/exp.cpp @@ -725,12 +725,9 @@ void Client::SetEXP(uint64 set_exp, uint64 set_aaxp, bool isrezzexp) { SendSound(); } - const auto export_string = fmt::format( - "{}", - gained - ); - - parse->EventPlayer(EVENT_AA_GAIN, this, export_string, 0); + if (parse->PlayerHasQuestSub(EVENT_AA_GAIN)) { + parse->EventPlayer(EVENT_AA_GAIN, this, std::to_string(gained), 0); + } RecordPlayerEventLog(PlayerEvent::AA_GAIN, PlayerEvent::AAGainedEvent{gained});