• This is a read only backup of the old Emudevs forum. If you want to have anything removed, please message me on Discord: KittyKaev

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?
 

Reloac

BETA Tester
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.
 

Grim

Emulation Addict
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:
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;
 
Top