mud/lib/verbs/items/capture.c
2020-09-06 05:43:07 -07:00

33 lines
962 B
C

/* /verbs/items/capture.c
* From the Dead Souls Mud Library
* A verb to allow people to capture or catch things with an object
* Creatd by Descartes of Borg 961010
* Version: @(#) capture.c 1.4@(#)
* Last modified: 96/10/10
*/
#include <lib.h>
inherit LIB_VERB;
static void create() {
verb::create();
SetVerb("capture");
SetRules("LIV with OBJ", "LIV in OBJ");
SetSynonyms("catch", "trap");
SetErrorMessage("Capture what with what?");
SetHelp("Syntax: <capture OBJECT with OBJECT>\n\n"
"Some objects can be used to trap living things. This command "
"therefore allows you to capture those things.\n\n"
"Synonyms: catch, trap\n\n"
"See also: free");
}
mixed can_capture_liv_word_obj() {
return this_player()->CanManipulate();
}
mixed do_capture_liv_word_obj(object target, string word, object tool) {
return tool->eventCapture(this_player(), target);
}