[Quest API] Add SetAAEXPPercentage to Perl/Lua (#4597)

This commit is contained in:
Alex King
2025-01-19 17:36:48 -05:00
committed by GitHub
parent c2ebc2540a
commit 035c51944f
6 changed files with 34 additions and 1 deletions
+16
View File
@@ -13106,3 +13106,19 @@ void Client::ShowZoneShardMenu()
number++;
}
}
void Client::SetAAEXPPercentage(uint8 percentage)
{
const uint32 before_percentage = m_epp.perAA;
if (before_percentage > 0 && percentage == 0) {
MessageString(Chat::White, AA_OFF);
} else if (before_percentage == 0 && percentage > 0) {
MessageString(Chat::White, AA_ON);
}
m_epp.perAA = EQ::Clamp(static_cast<int>(percentage), 0, 100);
SendAlternateAdvancementStats();
SendAlternateAdvancementTable();
}