Drop Say/Yell/etc string versions.
1) DB based string_id versions must be used.
2) for debug purposes raw WorldObject::MonsterSay/etc versions can be used
Author: VladimirMangos
--HG--
branch : trunk
This commit is contained in:
1 parent
fe6bfc2ef1
commit
7fc442263d
5 files changed
+4
-20
No files matched your search
+4
-4
@@ -53,7 +53,7 @@ bool ChatHandler::HandleNpcSayCommand(const char* args)
|
||||
return false;
|
||||
}
|
||||
|
||||
pCreature->Say(args, LANG_UNIVERSAL, 0);
|
||||
pCreature->MonsterSay(args, LANG_UNIVERSAL, 0);
|
||||
|
||||
return true;
|
||||
}
|
||||
@@ -71,7 +71,7 @@ bool ChatHandler::HandleNpcYellCommand(const char* args)
|
||||
return false;
|
||||
}
|
||||
|
||||
pCreature->Yell(args, LANG_UNIVERSAL, 0);
|
||||
pCreature->MonsterYell(args, LANG_UNIVERSAL, 0);
|
||||
|
||||
return true;
|
||||
}
|
||||
@@ -91,7 +91,7 @@ bool ChatHandler::HandleNpcTextEmoteCommand(const char* args)
|
||||
return false;
|
||||
}
|
||||
|
||||
pCreature->TextEmote(args, 0);
|
||||
pCreature->MonsterTextEmote(args, 0);
|
||||
|
||||
return true;
|
||||
}
|
||||
@@ -119,7 +119,7 @@ bool ChatHandler::HandleNpcWhisperCommand(const char* args)
|
||||
if (HasLowerSecurity(objmgr.GetPlayer(receiver_guid), 0))
|
||||
return false;
|
||||
|
||||
pCreature->Whisper(text,receiver_guid);
|
||||
pCreature->MonsterWhisper(text,receiver_guid);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user