Added rule to allow the Ding sound when AA is earned.

This commit is contained in:
Noudess 2020-07-13 08:12:02 -04:00
parent a8928d4a39
commit db4f113129
2 changed files with 4 additions and 0 deletions

View File

@ -686,6 +686,7 @@ RULE_BOOL(AA, ModernAAScalingEnabled, false, "Are we linearly scaling AA experie
RULE_REAL(AA, ModernAAScalingStartPercent, 1000, "1000% or 10x AA experience at the start of the scaling range")
RULE_INT(AA, ModernAAScalingAAMinimum, 0, "The minimum number of earned AA before AA experience scaling begins")
RULE_INT(AA, ModernAAScalingAALimit, 4000, "The number of earned AA when AA experience scaling ends")
RULE_BOOL(AA, SoundForAAEarned, false, "Play sound when AA point earned")
RULE_CATEGORY_END()
RULE_CATEGORY(Console)

View File

@ -657,6 +657,9 @@ void Client::SetEXP(uint32 set_exp, uint32 set_aaxp, bool isrezzexp) {
//Message(Chat::Yellow, "You have gained %d skill points!!", m_pp.aapoints - last_unspentAA);
char val1[20]={0};
MessageString(Chat::Experience, GAIN_ABILITY_POINT, ConvertArray(m_pp.aapoints, val1),m_pp.aapoints == 1 ? "" : "(s)"); //You have gained an ability point! You now have %1 ability point%2.
if (RuleB(AA, SoundForAAEarned)) {
SendSound();
}
/* QS: PlayerLogAARate */
if (RuleB(QueryServ, PlayerLogAARate)){