flee.c

ds2.9a10/lib/cmds/players/flee.c · 447 B

From the archive ds2.9a10.zip

Download the archive   « Back to the archive contents

#include <lib.h>

inherit LIB_DAEMON;

mixed cmd(string str) {
    if(!(this_player()->GetInCombat())){
        write("You are not in combat.");
        return 1;
    }
    this_player()->eventWimpy("go out");
    return 1;
}

void help() {
    message("help",
      "Syntax: flee\n\n"
      "If you need to leave combat in a hurry, and don't care which way you go.\n"
      "This command doesn't work for creators.\n\n",
      this_player() );
}

Site Stats

Snippets: 1791
Codebases: 571