User Tag List

Results 1 to 4 of 4

Thread: Achievements Disable

  1. #1
    Member
    Join Date
    Jul 2016
    Posts
    15
    XP
    176
    Level
    2
    Thanks
    0
    Thanked 1 Time in 1 Post

    Achievements Disable

    I know there is a way where gm will not earn achievements (that was on arcemu) not sure if thats possible in TrinityCore.

    But i'm wondering is there a way to disable achievements for all players?

  2. #2
    Exalted Member <span style='color: #FF0000'><span class='glow_8B0000'>Reloac</span></span>'s Avatar
    Join Date
    May 2013
    Location
    Birmingham, UK
    Posts
    217
    XP
    393,679
    Level
    124
    Thanks
    66
    Thanked 51 Times in 34 Posts
    Quote Originally Posted by LordSeaworth View Post
    I know there is a way where gm will not earn achievements (that was on arcemu) not sure if thats possible in TrinityCore.

    But i'm wondering is there a way to disable achievements for all players?
    GMs who are in GM mode won't earn achievements.

  3. #3
    Emulation Addict
    Join Date
    Jul 2016
    Posts
    34
    XP
    535
    Level
    5
    Thanks
    7
    Thanked 4 Times in 2 Posts
    Code:
    // disable for gamemasters with GM-mode enabled
        if (m_player->IsGameMaster())
            return;
    This is how is achievements are disabled for game masters. I'm sure you can expand on this. Example could be:

    Code:
    // disable for everyone
        if (m_player->IsGameMaster() || !m_player->IsGameMaster())
            return;
    This checks if the player is a GM or is not a GM.
    This is the AchievementMgr.CPP and you would have to replace all the instances from the first line. I've tried this with my core for making chat universal and it worked good so I'm guessing it should work fine in this situation. Backup your source and compile and should be good.
    Last edited by Grim; 08-06-2016 at 02:16 PM.
    Achievements:
    Level I Member 3 months registered Level V

  4. #4
    Original Poster
    Member
    Join Date
    Jul 2016
    Posts
    15
    XP
    176
    Level
    2
    Thanks
    0
    Thanked 1 Time in 1 Post
    Thanks, used the code below and its working now. Thanks for the help.
    Code:
    // disable for everyone
    if (m_player->IsGameMaster() || !m_player->IsGameMaster())
      return;

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •