Switched rest of pet messages to MT_PetResponse

Overloaded Mob::Say_StringID with a version that takes a message type
This commit is contained in:
mackal
2013-04-03 16:09:44 -04:00
parent 6fa93f243f
commit 20f086dc37
4 changed files with 28 additions and 10 deletions
+13 -1
View File
@@ -2544,7 +2544,7 @@ void Mob::Say(const char *format, ...)
void Mob::Say_StringID(uint32 string_id, const char *message3, const char *message4, const char *message5, const char *message6, const char *message7, const char *message8, const char *message9)
{
char string_id_str[10];
snprintf(string_id_str, 10, "%d", string_id);
entity_list.MessageClose_StringID(this, false, 200, 10,
@@ -2553,6 +2553,18 @@ void Mob::Say_StringID(uint32 string_id, const char *message3, const char *messa
);
}
void Mob::Say_StringID(uint32 type, uint32 string_id, const char *message3, const char *message4, const char *message5, const char *message6, const char *message7, const char *message8, const char *message9)
{
char string_id_str[10];
snprintf(string_id_str, 10, "%d", string_id);
entity_list.MessageClose_StringID(this, false, 200, type,
GENERIC_STRINGID_SAY, GetCleanName(), string_id_str, message3, message4, message5,
message6, message7, message8, message9
);
}
void Mob::Shout(const char *format, ...)
{
char buf[1000];