|
| 1 | +## 4.0.0-dev.13 | Commit: [bc82f36f1ff46bb21d32e1cfdaec8271dde08af1 |
| 2 | +](https://github.com/azerothcore/azerothcore-wotlk/commit/bc82f36f1ff46bb21d32e1cfdaec8271dde08af1 |
| 3 | + |
| 4 | + |
| 5 | +### Added |
| 6 | + |
| 7 | +```cpp |
| 8 | +// Unit.cpp |
| 9 | + virtual void Talk(std::string_view text, ChatMsg msgType, Language language, float textRange, WorldObject const* target); |
| 10 | + virtual void Say(std::string_view text, Language language, WorldObject const* target = nullptr); |
| 11 | + virtual void Yell(std::string_view text, Language language, WorldObject const* target = nullptr); |
| 12 | + virtual void TextEmote(std::string_view text, WorldObject const* target = nullptr, bool isBossEmote = false); |
| 13 | + virtual void Whisper(std::string_view text, Language language, Player* target, bool isBossWhisper = false); |
| 14 | + virtual void Talk(uint32 textId, ChatMsg msgType, float textRange, WorldObject const* target); |
| 15 | + virtual void Say(uint32 textId, WorldObject const* target = nullptr); |
| 16 | + virtual void Yell(uint32 textId, WorldObject const* target = nullptr); |
| 17 | + virtual void TextEmote(uint32 textId, WorldObject const* target = nullptr, bool isBossEmote = false); |
| 18 | + virtual void Whisper(uint32 textId, Player* target, bool isBossWhisper = false); |
| 19 | +``` |
| 20 | +
|
| 21 | +### Removed |
| 22 | +
|
| 23 | +```cpp |
| 24 | +// Object.cpp |
| 25 | + void MonsterSay(const char* text, uint32 language, WorldObject const* target); |
| 26 | + void MonsterYell(const char* text, uint32 language, WorldObject const* target); |
| 27 | + void MonsterTextEmote(const char* text, WorldObject const* target, bool IsBossEmote = false); |
| 28 | + void MonsterWhisper(const char* text, Player const* target, bool IsBossWhisper = false); |
| 29 | + void MonsterSay(int32 textId, uint32 language, WorldObject const* target); |
| 30 | + void MonsterYell(int32 textId, uint32 language, WorldObject const* target); |
| 31 | + void MonsterTextEmote(int32 textId, WorldObject const* target, bool IsBossEmote = false); |
| 32 | + void MonsterWhisper(int32 textId, Player const* target, bool IsBossWhisper = false); |
| 33 | +
|
| 34 | + void SendPlaySound(uint32 Sound, bool OnlySelf); |
| 35 | +``` |
| 36 | + |
| 37 | +### How to upgrade |
| 38 | + |
| 39 | +```diff |
| 40 | +- creature->MonsterSay(text, LANG_XXX, nullptr); |
| 41 | ++ creature->Say(text, LANG_XXX); |
| 42 | + |
| 43 | +- creature->MonsterTextEmote(text, 0); |
| 44 | ++ creature->TextEmote(text); |
| 45 | + |
| 46 | +- creature->MonsterWhisper(text, receiver); |
| 47 | ++ creature->Whisper(text, LANG_XXX, receiver); |
| 48 | + |
| 49 | +- creature->MonsterYell(text, LANG_XXX, NULL); |
| 50 | ++ creature->Yell(text, LANG_XXX); |
| 51 | + |
| 52 | +- creature->MonsterWhisper(text, target, isBossWhisper); |
| 53 | ++ creature->Whisper(text, LANG_XXX, target, isBossWhisper); |
| 54 | + |
| 55 | +- SendPlaySound(uint32 Sound, bool OnlySelf); |
| 56 | + PlayDirectSound(uint32 sound_id, Player* target = nullptr); |
| 57 | +``` |
| 58 | + |
1 | 59 | ## 4.0.0-dev.12 | Commit: [bcec4191e43de8a7b57a4219d6baaa7c5e3dfaf1
|
2 | 60 | ](https://github.com/azerothcore/azerothcore-wotlk/commit/bcec4191e43de8a7b57a4219d6baaa7c5e3dfaf1
|
3 | 61 |
|
|
0 commit comments