[C++] Fatigue On/Off (with config file) menu

Shout-Out

User Tag List

Results 1 to 5 of 5
  1. #1
    homer91's Avatar Active Member CoreCoins Purchaser
    Reputation
    79
    Join Date
    Oct 2008
    Posts
    259
    Thanks G/R
    59/7
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [C++] Fatigue On/Off (with config file)

    Okey, so I saw many threads on the forum, about disabling fatigue, and I needed this too, because of my server side model edits, and now I found really cool working solution!!!
    I tested this with trinity core 2 rev7446.
    Just open the proper files, and edit them like below:

    + means you have to add these lines to the file.
    (The lines without + are ther for help you find correct line)

    Player.cpp

    Code:
    int32 Player::getMaxTimer(MirrorTimerType timer)
    {
        switch (timer)
        {
            case FATIGUE_TIMER:
    +       {
    +        if (!isAlive() || MirrorTimerType(FATIGUE_TIMER) ||GetSession()->GetSecurity() >= sWorld.getConfig(CONFIG_DISABLE_FATIGUE))
    +            return DISABLED_MIRROR_TIMER;
           return MINUTE*IN_MILISECONDS;
    +       }
    World.cpp

    Code:
    m_configs[CONFIG_DISABLE_BREATHING] = sConfig.GetIntDefault("DisableWaterBreath", SEC_CONSOLE);
    + m_configs[CONFIG_DISABLE_FATIGUE] = sConfig.GetIntDefault("DisableFatigue", SEC_CONSOLE);
    World.h

    Code:
    CONFIG_INSTANT_LOGOUT,
       CONFIG_DISABLE_BREATHING,
    + CONFIG_DISABLE_FATIGUE,
    trinitycore.conf.dist

    Code:
      #    DisableWaterBreath
      #        Disable/enable waterbreathing for security level (0..4) or high
      #        Default: 4 (None)
    + #
    + #    DisableFatigue
    + #        Disable/enable fatigue for security level (0..4) or high
    + #        Default: 4 (None)
    
    
       DisableWaterBreath = 4
    +  DisableFatigue = 4

    Now just open your trinitycore.conf change DisableFatigue = 4 to 0.
    Your fatigue is now disabled.

    I hope this helped you :wave:
    CREDITS TO Rokee of wowemuf.org for the method.
    Last edited by homer91; 02-26-2010 at 05:45 PM.

    [C++] Fatigue On/Off (with config file)
  2. #2
    al-capwn's Avatar Private
    Reputation
    1
    Join Date
    Mar 2010
    Posts
    2
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for the share, worked for me!

  3. #3
    mag1212's Avatar Active Member
    Reputation
    55
    Join Date
    Aug 2009
    Posts
    352
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by al-capwn View Post
    Thanks for the share, worked for me!
    dont post in an old thread

  4. #4
    Tigole's Avatar Member
    Reputation
    1
    Join Date
    Sep 2008
    Posts
    33
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    This isn't an old thread. It's from the 26th of February. Read before flame.

  5. #5
    lorac's Avatar Active Member
    Reputation
    69
    Join Date
    Oct 2008
    Posts
    387
    Thanks G/R
    3/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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
    Last edited by lorac; 10-31-2010 at 09:12 PM.

Similar Threads

  1. Help with config files for public will +rep
    By defilier415 in forum WoW EMU Questions & Requests
    Replies: 18
    Last Post: 02-15-2010, 08:06 AM
  2. need help with config files!
    By ridders in forum World of Warcraft Emulator Servers
    Replies: 8
    Last Post: 11-23-2007, 05:31 PM
  3. Help with LAN File sharing
    By Niko33 in forum Community Chat
    Replies: 7
    Last Post: 07-21-2007, 10:00 PM
  4. Piss people off with symbols!
    By Nugma in forum World of Warcraft Exploits
    Replies: 6
    Last Post: 04-07-2007, 05:26 PM
  5. Help with m2. files! I find none in MyWarcraftStudio
    By blackdahliamurder in forum WoW ME Questions and Requests
    Replies: 3
    Last Post: 03-25-2007, 04:00 PM
All times are GMT -5. The time now is 11:34 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search