summaryrefslogtreecommitdiff
path: root/src/map/send.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-02-25 13:40:10 +0300
committerAndrei Karas <akaras@inbox.ru>2015-02-25 13:40:10 +0300
commitb35860a736d42d0320e9a7afbf9d56b7b95214f9 (patch)
tree9586546b1f7a61f1e0e12d5b7344821c8e326dd7 /src/map/send.c
parentdf032822a50b15877d43920522cabf85fff78589 (diff)
downloadplugin-b35860a736d42d0320e9a7afbf9d56b7b95214f9.tar.gz
plugin-b35860a736d42d0320e9a7afbf9d56b7b95214f9.tar.bz2
plugin-b35860a736d42d0320e9a7afbf9d56b7b95214f9.tar.xz
plugin-b35860a736d42d0320e9a7afbf9d56b7b95214f9.zip
Add packet for homunculus/mercenary talk.
Diffstat (limited to 'src/map/send.c')
-rw-r--r--src/map/send.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/map/send.c b/src/map/send.c
index 61522ac..c2e79fc 100644
--- a/src/map/send.c
+++ b/src/map/send.c
@@ -261,19 +261,18 @@ void send_join_ack(int fd, const char *const name, int flag)
WFIFOSET (fd, 27);
}
-void send_pet_say(struct map_session_data *sd, const char *const message)
+void send_slave_say(struct map_session_data *sd,
+ struct block_list *bl,
+ const char *const name,
+ const char *const message)
{
- if (!sd || !sd->pd || !message)
- return;
-
- const char *const name = sd->pd->pet.name;
const int len = 24 + 7 + strlen(message);
char *buf = NULL;
CREATE(buf, char, len);
snprintf(buf, len, "%s's %s : %s", sd->status.name, name, message);
buf[len - 1] = 0;
- clif->GlobalMessage(&sd->pd->bl, buf);
+ clif->GlobalMessage(bl, buf);
aFree(buf);
}