summaryrefslogtreecommitdiff
path: root/src/map/clif.cpp
diff options
context:
space:
mode:
authormekolat <mekolat@users.noreply.github.com>2015-05-22 11:09:18 -0400
committermekolat <mekolat@users.noreply.github.com>2015-06-19 23:08:38 -0400
commit8cf94d0d5bf546255926b4a563a974a9079f15e2 (patch)
treeb536327c6f57c603619a05fe9b3d27b367776491 /src/map/clif.cpp
parentf008d4510f391aa802c31bc06b7cac2628a8b3fb (diff)
downloadtmwa-8cf94d0d5bf546255926b4a563a974a9079f15e2.tar.gz
tmwa-8cf94d0d5bf546255926b4a563a974a9079f15e2.tar.bz2
tmwa-8cf94d0d5bf546255926b4a563a974a9079f15e2.tar.xz
tmwa-8cf94d0d5bf546255926b4a563a974a9079f15e2.zip
implement change music packet
Diffstat (limited to 'src/map/clif.cpp')
-rw-r--r--src/map/clif.cpp16
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);
+}
+
/*==========================================
*
*------------------------------------------