abandon.c

ds2.10/lib/verbs/players/abandon.c · 561 B

From the archive ds2.10.zip

Download the archive   « Back to the archive contents


#include <lib.h>

inherit LIB_VERB;

static void create() {
    ::create();
    SetVerb("abandon");
    SetRules("LIV");
    SetErrorMessage("Whom would you like to abandon?");
    SetHelp("Syntax: abandon LIV\n"
            "\n"
            "If a living object is specified, this command allows "
            "you to leave the creature's companionship.\n" 
            "\n"
            "See also: mount, dismount, befriend");
}

mixed can_abandon_liv() { return 1; }


mixed do_abandon_liv(object ob) {
    ob->eventAbandon(this_player());
    return 1;
}


Site Stats

Snippets: 1791
Codebases: 571