diff options
author | mekolat <mekolat@users.noreply.github.com> | 2015-05-07 20:42:47 -0400 |
---|---|---|
committer | mekolat <mekolat@users.noreply.github.com> | 2015-05-19 18:52:48 -0400 |
commit | 3474fe93eef3cde085b6a9ee8c7efd4a5e2cddea (patch) | |
tree | 9cb612e35201d2019bf140a470ca90087fa77c04 /src/map/atcommand.cpp | |
parent | 6fd7eab6ba5d836c47847aca618ee02a50967072 (diff) | |
download | tmwa-3474fe93eef3cde085b6a9ee8c7efd4a5e2cddea.tar.gz tmwa-3474fe93eef3cde085b6a9ee8c7efd4a5e2cddea.tar.bz2 tmwa-3474fe93eef3cde085b6a9ee8c7efd4a5e2cddea.tar.xz tmwa-3474fe93eef3cde085b6a9ee8c7efd4a5e2cddea.zip |
add a builtin to change npc direction and make them sit
Diffstat (limited to 'src/map/atcommand.cpp')
-rw-r--r-- | src/map/atcommand.cpp | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/src/map/atcommand.cpp b/src/map/atcommand.cpp index d587bde..63a1159 100644 --- a/src/map/atcommand.cpp +++ b/src/map/atcommand.cpp @@ -4157,30 +4157,6 @@ ATCE atcommand_npcmove(Session *, dumb_ptr<map_session_data>, } static -ATCE atcommand_npcsit(Session *, dumb_ptr<map_session_data> sd, - ZString message) -{ - NpcName character; - dumb_ptr<npc_data> nd = nullptr; - - if (!asplit(message, &character)) - return ATCE::USAGE; - - nd = npc_name2id(character); - if (nd == nullptr) - return ATCE::EXIST; - - if(nd->sit == DamageType::SIT) - nd->sit = DamageType::STAND; - else - nd->sit = DamageType::SIT; - - clif_sitnpc(sd, nd, true); - - return ATCE::OKAY; -} - -static ATCE atcommand_addwarp(Session *s, dumb_ptr<map_session_data> sd, ZString message) { @@ -5291,9 +5267,6 @@ Map<XString, AtCommandInfo> atcommand_info = {"npcmove"_s, {"<x> <y> <npc-name>"_s, 80, atcommand_npcmove, "Force an NPC to move on the map"_s}}, - {"npcsit"_s, {"<npc-name>"_s, - 80, atcommand_npcsit, - "Force an NPC to move on the map"_s}}, {"charpvp"_s, {"<charname> <channel>"_s, 40, atcommand_charpvp, "Set the pvp channel of another player"_s}}, |