From 3474fe93eef3cde085b6a9ee8c7efd4a5e2cddea Mon Sep 17 00:00:00 2001 From: mekolat Date: Thu, 7 May 2015 20:42:47 -0400 Subject: add a builtin to change npc direction and make them sit --- src/map/atcommand.cpp | 27 --------------------------- 1 file changed, 27 deletions(-) (limited to 'src/map/atcommand.cpp') 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 @@ -4156,30 +4156,6 @@ ATCE atcommand_npcmove(Session *, dumb_ptr, return ATCE::OKAY; } -static -ATCE atcommand_npcsit(Session *, dumb_ptr sd, - ZString message) -{ - NpcName character; - dumb_ptr 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 sd, ZString message) @@ -5291,9 +5267,6 @@ Map atcommand_info = {"npcmove"_s, {" "_s, 80, atcommand_npcmove, "Force an NPC to move on the map"_s}}, - {"npcsit"_s, {""_s, - 80, atcommand_npcsit, - "Force an NPC to move on the map"_s}}, {"charpvp"_s, {" "_s, 40, atcommand_charpvp, "Set the pvp channel of another player"_s}}, -- cgit v1.2.3-70-g09d2