[7577] Implement YellToZone for different world object types. Author: VladimirMangos

--HG--
branch : trunk
This commit is contained in:
megamage
2009-03-28 18:03:56 -06:00
parent 4bd98db3ab
commit 829c8022ac
7 changed files with 28 additions and 0 deletions

View File

@@ -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());