mount.c
ds2.4.1/lib/verbs/players/mount.c · 618 B
From the archive ds2.4.1.zip
Download the archive « Back to the archive contents
#include <lib.h>
#include <daemons.h>
#include <function.h>
inherit LIB_VERB;
static void create() {
verb::create();
SetVerb("mount");
SetRules("LIV");
SetErrorMessage("Mount something?");
SetHelp("Syntax: <mount CREATURE>\n"
"\n"
"This command allows you to put yourself astride a "
"creature suitable and ready for riding.\n\n"
"See also: dismount, befriend, abandon");
}
mixed can_mount_liv() {
if(this_player()->CanManipulate())
return bool_reverse(this_player()->GetParalyzed());
}
mixed do_mount_liv(object ob) {
return ob->eventMount(this_player());
}