ZhengPeiRu21 / mod-challenge-modes

Challenge Modes Module for AzerothCore
MIT License
40 stars 40 forks source link

Suggestion: Announce the current challenge modes enabled to player on login #9

Open drozco opened 1 year ago

drozco commented 1 year ago

Simple, Tell the player what challenge modes they have enabled on login, since it's easy to forget which ones they have enabled. Something like: Iron-Man challenge mode is enabled.

drozco commented 1 year ago

Did a test implementation within each challengemode as an example:

    void OnLogin(Player* player) override
    {
        if (challengesEnabled && hardcoreEnable && player->GetPlayerSetting("mod-challenge-modes", SETTING_HARDCORE).value)
        {
            ChatHandler(player->GetSession()).PSendSysMessage("Hardcore challenge mode is enabled");
        }
    }

Produced this output:

chalmode