deactivate.c

ds2.4.1/lib/verbs/items/deactivate.c · 802 B

From the archive ds2.4.1.zip

Download the archive   « Back to the archive contents

#include <lib.h>
#include <daemons.h>

inherit LIB_VERB;

static void create() {
    verb::create();
    SetVerb("deactivate");
    SetRules("", "OBJ","OBJ on OBJ");
    SetErrorMessage("Deactivate something?");
    SetHelp("Syntax: <deactivate> THING\n"
      "        \n"
      "");  
}

mixed can_deactivate() {
    return this_player()->CanManipulate();
}

mixed can_deactivate_obj(mixed foo) {
    return this_player()->CanManipulate();
}

mixed can_deactivate_obj_on_obj(mixed foo) {
    return this_player()->CanManipulate();
}

mixed do_deactivate() {
    return "Deactivate what?";
    return 1;
}

varargs mixed do_deactivate_obj(mixed foo, mixed foo2) {
    return foo->eventTurnOff();
}

varargs mixed do_deactivate_obj_on_obj(mixed foo, mixed foo2) {
    return foo->eventTurnOff(foo2);
}

Site Stats

Snippets: 1791
Codebases: 571