summaryrefslogtreecommitdiff
path: root/src/map/clif.cpp
diff options
context:
space:
mode:
authormekolat <mekolat@users.noreply.github.com>2016-04-15 11:12:56 -0400
committermekolat <mekolat@users.noreply.github.com>2016-04-15 11:12:56 -0400
commitd3c96421dd371db34119de1437fe7f25a05dc4bc (patch)
treeb54e989cae9eaee8f3e7695300bd7e75d90b0d6b /src/map/clif.cpp
parentd5e9d1ecbee0f7540acbe4343bd68e6482e8394a (diff)
downloadtmwa-d3c96421dd371db34119de1437fe7f25a05dc4bc.tar.gz
tmwa-d3c96421dd371db34119de1437fe7f25a05dc4bc.tar.bz2
tmwa-d3c96421dd371db34119de1437fe7f25a05dc4bc.tar.xz
tmwa-d3c96421dd371db34119de1437fe7f25a05dc4bc.zip
implement SMSG_PLAYER_CLIENT_COMMAND
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 bf20b57..df21a88 100644
--- a/src/map/clif.cpp
+++ b/src/map/clif.cpp
@@ -3906,6 +3906,20 @@ void clif_server_message(dumb_ptr<map_session_data> sd, uint8_t type, XString ms
clif_send(buf, sd, SendWho::SELF, wrap<ClientVersion>(5), altbuf);
}
+void clif_remote_command(dumb_ptr<map_session_data> sd, XString cmd)
+{
+ nullpo_retv(sd);
+
+ size_t msg_len = cmd.size() + 4;
+ if (msg_len > 512)
+ return;
+
+ Packet_Head<0x0230> head_230;
+ Buffer buf = create_vpacket<0x0230, 4, 1>(head_230, cmd);
+
+ clif_send(buf, sd, SendWho::SELF, wrap<ClientVersion>(6));
+}
+
void clif_change_music(dumb_ptr<map_session_data> sd, XString music)
{
nullpo_retv(sd);