PDA

View Full Version : Achievements Disable



LordSeaworth
08-03-2016, 04:49 PM
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
08-04-2016, 03:10 AM
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
08-04-2016, 04:45 PM
// 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:


// 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.

LordSeaworth
08-05-2016, 04:54 PM
Thanks, used the code below and its working now. Thanks for the help.


// disable for everyone
if (m_player->IsGameMaster() || !m_player->IsGameMaster())
return;