Heres the updated for newer Trinity core
I know this is an older thread but with the changes to TC I thought I would post an update for this
player.cpp
Code:
switch (timer)
{
case FATIGUE_TIMER:
- return MINUTE*IN_MILLISECONDS;
+
+ {
+ if (!isAlive() || MirrorTimerType(FATIGUE_TIMER) ||GetSession()->GetSecurity() >= AccountTypes (sWorld.getIntConfig(CONFIG_DISABLE_FATIGUE)))
+ return DISABLED_MIRROR_TIMER;
+ return MINUTE*IN_MILLISECONDS;
+ }
+
World.cpp
Code:
m_int_configs[CONFIG_DISABLE_BREATHING] = sConfig.GetIntDefault("DisableWaterBreath", SEC_CONSOLE);
+ m_int_configs[CONFIG_DISABLE_FATIGUE] = sConfig.GetIntDefault("DisableFatigue", SEC_CONSOLE);
m_bool_configs[CONFIG_ALWAYS_MAX_SKILL_FOR_LEVEL] = sConfig.GetBoolDefault("AlwaysMaxSkillForLevel", false);
world.h
Code:
CONFIG_DISABLE_BREATHING,
+ CONFIG_DISABLE_FATIGUE,
worldserver.conf.dist
Code:
# Disable/enable waterbreathing for security level (0..4) or higher
# Default: 4 (None)
#
+# DisableFatigue
+# Disable/enable fatigue for security level (0..4) or high
+# Default: 4 (None)
+#
# AllFlightPaths
DisableWaterBreath = 4
+DisableFatigue = 4
AllFlightPaths = 0