abandon.c

ds3.0/lib/verbs/players/abandon.c · 526 B

From the archive ds3.0.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" 
            "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