summaryrefslogtreecommitdiff
path: root/src/map/clif.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/clif.cpp')
-rw-r--r--src/map/clif.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/map/clif.cpp b/src/map/clif.cpp
index c120428..75c6752 100644
--- a/src/map/clif.cpp
+++ b/src/map/clif.cpp
@@ -3806,6 +3806,20 @@ void clif_message(dumb_ptr<block_list> bl, XString msg)
clif_send(buf, bl, SendWho::AREA, MIN_CLIENT_VERSION);
}
+void clif_npc_send_title(Session *s, BlockId npcid, XString msg)
+{
+ size_t msg_len = msg.size() + 1;
+ if (msg_len > 50)
+ return;
+
+ Packet_Head<0x0228> head_228;
+ head_228.npc_id = npcid;
+ head_228.string_length = msg_len;
+ Buffer buf = create_vpacket<0x0228, 10, 1>(head_228, msg);
+
+ send_buffer(s, buf);
+}
+
/*==========================================
*
*------------------------------------------