Skip to content

Player::Say() #11625

Closed
Magnifikator opened this Issue Feb 18, 2014 · 0 comments

1 participant

@Magnifikator

On Jan 10 the functions Player::Say(), Player::Yell(), Player::TextEmote() was changed in a commit.

The line
BuildPlayerChat(&data, CHAT_MSG_SAY, _text, language);
was replaced by this:
ChatHandler::BuildChatPacket(data, CHAT_MSG_SAY, Language(language), this, this, text);

I think the correct line must be this (with underline):
ChatHandler::BuildChatPacket(data, CHAT_MSG_SAY, Language(language), this, this, _text);

Because otherwise it's not anymore possible to change the textmsg in a custom script. F.ex. I have used a custom script to modify the color of the text.
After the commit it was not anymore possible.

@DDuarte DDuarte added a commit that closed this issue Feb 18, 2014
@DDuarte DDuarte Core/Chat: Fix BuildChatPacket calls so scripts that use OnPlayerChat…
… can actually change the text

Closes #11625
27d69cf
@DDuarte DDuarte closed this in 27d69cf Feb 18, 2014
@DDuarte DDuarte added a commit to raczman/TrinityCore that referenced this issue Apr 20, 2014
@DDuarte DDuarte Core/Chat: Fix BuildChatPacket calls so scripts that use OnPlayerChat…
… can actually change the text

Closes #11625
a42808a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.