mirror of
https://github.com/webluke/mod-grownup.git
synced 2026-01-13 01:08:39 +00:00
option to show grown message to reduce message spam
This commit is contained in:
@@ -29,3 +29,12 @@ GrownUp.LoginCheck = 1
|
||||
#
|
||||
|
||||
GrownUp.Announce = 1
|
||||
|
||||
#
|
||||
# GrownUp.GrownAnnounce
|
||||
# Description: Announce each level.
|
||||
# Default: 0 - Disabled
|
||||
# 1 - Enabled
|
||||
#
|
||||
|
||||
GrownUp.GrownAnnounce = 0
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user