From 8cf94d0d5bf546255926b4a563a974a9079f15e2 Mon Sep 17 00:00:00 2001 From: mekolat Date: Fri, 22 May 2015 11:09:18 -0400 Subject: implement change music packet --- src/map/clif.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'src/map/clif.cpp') 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 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); +} + /*========================================== * *------------------------------------------ -- cgit v1.2.3-70-g09d2