deactivate.c

ds3.0/lib/verbs/items/deactivate.c · 1.0 KB

From the archive ds3.0.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","STR on OBJ");
    SetErrorMessage("Deactivate something?");
    SetHelp("Syntax: deactivate THING\n"
            "        \n"
            "See also: activate");  
}

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 can_deactivate_str_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);
}

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

Site Stats

Snippets: 1791
Codebases: 571