aboutsummaryrefslogtreecommitdiff
path: root/src/game/Object.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2009-03-28 18:03:56 -0600
committermegamage <none@none>2009-03-28 18:03:56 -0600
commit829c8022ace2ab5e31c346ec7fea2d0a9847f95b (patch)
tree3ba00cc2a620dfb09157164e659a0d211cc2e14d /src/game/Object.cpp
parent4bd98db3ab9b8a2094285c376809ca3f1aa5c733 (diff)
[7577] Implement YellToZone for different world object types. Author: VladimirMangos
--HG-- branch : trunk
Diffstat (limited to 'src/game/Object.cpp')
-rw-r--r--src/game/Object.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/game/Object.cpp b/src/game/Object.cpp
index 03c10e12cfb..2907c043602 100644
--- a/src/game/Object.cpp
+++ b/src/game/Object.cpp
@@ -1516,6 +1516,13 @@ void WorldObject::MonsterYell(int32 textId, uint32 language, uint64 TargetGuid)
cell_lock->Visit(cell_lock, message, *GetMap());
}
+void WorldObject::MonsterYellToZone(int32 textId, uint32 language, uint64 TargetGuid)
+{
+ MaNGOS::MonsterChatBuilder say_build(*this, CHAT_MSG_MONSTER_YELL, textId,language,TargetGuid);
+ MaNGOS::LocalizedPacketDo<MaNGOS::MonsterChatBuilder> say_do(say_build);
+ GetMap()->BroadcastWorker(say_do,GetZoneId());
+}
+
void WorldObject::MonsterTextEmote(int32 textId, uint64 TargetGuid, bool IsBossEmote)
{
CellPair p = Trinity::ComputeCellPair(GetPositionX(), GetPositionY());