option to show grown message to reduce message spam

This commit is contained in:
WebLuke
2025-09-09 14:56:39 -06:00
parent cc9c3a8e77
commit a321b00b23
2 changed files with 14 additions and 2 deletions

View File

@@ -29,3 +29,12 @@ GrownUp.LoginCheck = 1
#
GrownUp.Announce = 1
#
# GrownUp.GrownAnnounce
# Description: Announce each level.
# Default: 0 - Disabled
# 1 - Enabled
#
GrownUp.GrownAnnounce = 0

View File

@@ -62,9 +62,12 @@ public:
newScale = 1.0f;
player->SetObjectScale(newScale);
if (sConfigMgr->GetOption<bool>("GrownUp.GrownAnnounce", true))
{
ChatHandler(player->GetSession())
.PSendSysMessage("Your adventure has grown!"); // Message when leveling up may try and add the % back later.
}
}
};
// Add all scripts in one