diff options
Diffstat (limited to 'src/map/clif.cpp')
-rw-r--r-- | src/map/clif.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/map/clif.cpp b/src/map/clif.cpp index 75c6752..d8e0b7e 100644 --- a/src/map/clif.cpp +++ b/src/map/clif.cpp @@ -3820,6 +3820,22 @@ void clif_npc_send_title(Session *s, BlockId npcid, XString msg) send_buffer(s, buf); } +void clif_change_music(dumb_ptr<map_session_data> sd, XString music) +{ + nullpo_retv(sd); + if(sd->client_version < 2) + return; + + size_t msg_len = music.size(); + if (msg_len > 128) + return; + + Packet_Head<0x0227> head_227; + Buffer buf = create_vpacket<0x0227, 4, 1>(head_227, music); + + send_buffer(sd->sess, buf); +} + /*========================================== * *------------------------------------------ |