Jump to content

[patch] HeroicCharactersPerRealm >= 0


Guest kolomati

Recommended Posts

What bug does the patch fix? What features does the patch add?

It lets the one disable creating Heroic Characters in the configuration file mangosd.conf. According to the conf file tip:

# HeroicCharactersPerRealm

# Limit numbers of heroic class characters for account at realm

# Default: 1

# The number must be between 0 (not allowed) and 10

At the moment it is not possible to set this value to 0, because it gets automatically adjusted back to 1 by the server, so you cannot disable Heroic Characters creation.

For which repository revision was the patch created?

9766

Is there a thread in the bug report section or at lighthouse? If yes, please add a link to the thread.

Forum search did not show any results.

Who has been writing this patch? Please include either forum user names or email addresses.

[email protected]

diff --git a/src/game/World.cpp b/src/game/World.cpp
index 30b093a..679e502 100644
--- a/src/game/World.cpp
+++ b/src/game/World.cpp
@@ -568,7 +568,7 @@ void World::LoadConfigSettings(bool reload)
    // must be after CONFIG_UINT32_CHARACTERS_PER_REALM
    setConfigMin(CONFIG_UINT32_CHARACTERS_PER_ACCOUNT, "CharactersPerAccount", 50, getConfig(CONFIG_UINT32_CHARACTERS_PER_REALM));

-    setConfigMinMax(CONFIG_UINT32_HEROIC_CHARACTERS_PER_REALM, "HeroicCharactersPerRealm", 1, 1, 10);
+    setConfigMinMax(CONFIG_UINT32_HEROIC_CHARACTERS_PER_REALM, "HeroicCharactersPerRealm", 1, 0, 10);

    setConfig(CONFIG_UINT32_MIN_LEVEL_FOR_HEROIC_CHARACTER_CREATING, "MinLevelForHeroicCharacterCreating", 55);

Link to comment
Share on other sites

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use