From a321b00b2380d4cf8cf2e3467a3e00da4976c99e Mon Sep 17 00:00:00 2001 From: WebLuke Date: Tue, 9 Sep 2025 14:56:39 -0600 Subject: [PATCH] option to show grown message to reduce message spam --- conf/mod_grownup.conf.dist | 9 +++++++++ src/GrownUp.cpp | 7 +++++-- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/conf/mod_grownup.conf.dist b/conf/mod_grownup.conf.dist index 4313fb4..3bffc50 100644 --- a/conf/mod_grownup.conf.dist +++ b/conf/mod_grownup.conf.dist @@ -29,3 +29,12 @@ GrownUp.LoginCheck = 1 # GrownUp.Announce = 1 + +# +# GrownUp.GrownAnnounce +# Description: Announce each level. +# Default: 0 - Disabled +# 1 - Enabled +# + +GrownUp.GrownAnnounce = 0 \ No newline at end of file diff --git a/src/GrownUp.cpp b/src/GrownUp.cpp index c07df90..97803d4 100644 --- a/src/GrownUp.cpp +++ b/src/GrownUp.cpp @@ -62,8 +62,11 @@ public: newScale = 1.0f; player->SetObjectScale(newScale); - ChatHandler(player->GetSession()) - .PSendSysMessage("Your adventure has grown!"); // Message when leveling up may try and add the % back later. + if (sConfigMgr->GetOption("GrownUp.GrownAnnounce", true)) + { + ChatHandler(player->GetSession()) + .PSendSysMessage("Your adventure has grown!"); // Message when leveling up may try and add the % back later. + } } };