Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[12524] Add generic DoDisplayText function and use additional data of…
… dbscripts table Signed-off-by: Schmoozerd <schmoozerd@cmangos.net>
- Loading branch information
1 parent
b32291d
commit d2fd4ba
Showing
7 changed files
with
174 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
d2fd4ba
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can't wait these are backported to classic. I'll now more easily track why MonsterTextEmote does not work with AIEvent or DBScript. Thanks :)
d2fd4ba
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is MonsterTextEmote supported by the classic client?
After all these all are just high-level changes...
So if it didn't work before on classic, it won't now.
d2fd4ba
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, it is. If core calls MonsterTextEmote by providing a string as an argument, the client displays it correctly. If MonsterTextEmote is provided a textID, the client raises an error. I did not yet track precisely where the error occurs: when the core try to call the string from db? When building the packet in MonsterChatBuilder?
d2fd4ba
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes - i will look into it when i finished with tbc (anyhow it is time for classic backporting)
d2fd4ba
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see two differences:
especially .npc textemote is called without target, possible that the textemotes simply don't support target in classic which causes the packet to fail
The direction version uses this->GetName() and target->GetName - where the other version uses GetNameForLocaleIdx
But I would suggest to try with NULL target for some testings, then only with Player targets, maybe this is it already :)
Call Stack notes: http://paste2.org/9GnK6dzD