is the line arcemu has:
Code:
data = sChatHandler.FillMessageData( CHAT_MSG_SAY, lang, msg.c_str(), _player->GetGUID(), _player->HasFlag(PLAYER_FLAGS, PLAYER_FLAG_GM) ? 4 : 0 );
is the line your using:
Code:
data = sChatHandler.FillMessageData( CHAT_MSG_SAY, 0, msg.c_str(), _player->GetGUID(), _player->bGMTagOn ? 4 : 0 );
is this going to make much of a difference?
i wrote this up as
Code:
//data = sChatHandler.FillMessageData( CHAT_MSG_SAY, lang, msg.c_str(), _player->GetGUID(), _player->HasFlag(PLAYER_FLAGS, PLAYER_FLAG_GM) ? 4 : 0 );
if(GetPlayer()->IsSanctuaryFlagged() == true);
{
data = sChatHandler.FillMessageData( CHAT_MSG_SAY, 0, msg.c_str(), _player->GetGUID(), _player->HasFlag(PLAYER_FLAGS, PLAYER_FLAG_GM) ? 4 : 0 );
}
else
{
data = sChatHandler.FillMessageData( CHAT_MSG_SAY, lang, msg.c_str(), _player->GetGUID(), _player->HasFlag(PLAYER_FLAGS, PLAYER_FLAG_GM) ? 4 : 0 );
}
but the else is erroring saying expecting a statement