quell.c

ds2.10/lib/cmds/creators/quell.c · 732 B

From the archive ds2.10.zip

Download the archive   « Back to the archive contents

// By Magnafix 10-14-96
// required addition of list_new_posts() in bboard daemon
#include <daemons.h>
#include <lib.h>

inherit LIB_COMMAND;


int cmd(string str){
    write("You casually wave your hand, and bring about peace.");
    say(this_player()->GetCapName()+" waves "+possessive()+" hand "+
            "and brings peace to the area.");
    foreach(object combatant in get_livings(environment(this_player()))){
        if(combatant->GetInCombat()) tell_object(combatant,"You stop fighting.");
        combatant->eventQuell();
    }

    return 1;
}



string GetHelp(string str) {
    return "Syntax: <quell>\n"
        "This command brings peace between combatants in your environment.\n"
        "See also: unquell\n";
}

Site Stats

Snippets: 1791
Codebases: 571