diff options
author | mekolat <mekolat@users.noreply.github.com> | 2015-05-21 19:17:03 -0400 |
---|---|---|
committer | mekolat <mekolat@users.noreply.github.com> | 2015-06-20 06:41:30 -0400 |
commit | db20d783fe41bb9b44b92461f9843a31146a5ce7 (patch) | |
tree | f22254f43e8414c2a2a06514a7108ecb917b4b31 /src/map/clif.cpp | |
parent | 4835eae62fe129ff6ee36d82b56e07913ca19f81 (diff) | |
download | tmwa-db20d783fe41bb9b44b92461f9843a31146a5ce7.tar.gz tmwa-db20d783fe41bb9b44b92461f9843a31146a5ce7.tar.bz2 tmwa-db20d783fe41bb9b44b92461f9843a31146a5ce7.tar.xz tmwa-db20d783fe41bb9b44b92461f9843a31146a5ce7.zip |
npc actions
Diffstat (limited to 'src/map/clif.cpp')
-rw-r--r-- | src/map/clif.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/map/clif.cpp b/src/map/clif.cpp index d8e0b7e..73315d8 100644 --- a/src/map/clif.cpp +++ b/src/map/clif.cpp @@ -800,6 +800,24 @@ void clif_mob0078(dumb_ptr<mob_data> md, Buffer& buf) buf = create_fpacket<0x0078, 54>(fixed_78); } +void clif_npc_action(dumb_ptr<map_session_data> sd, BlockId npcid, + short command, int id, short x, short y) +{ + nullpo_retv(sd); + if(sd->client_version < 2) + return; + + Packet_Fixed<0x0212> fixed_212; + fixed_212.npc_id = npcid; + fixed_212.command = command; + fixed_212.id = id; + fixed_212.x = x; + fixed_212.y = y; + + Buffer buf = create_fpacket<0x0212, 16>(fixed_212); + send_buffer(sd->sess, buf); +} + /*========================================== * MOB表示2 *------------------------------------------ |