smiley.c

foundation2_fluffos_v1/lib/domains/Examples/npc/smiley.c · 741 B

From the archive foundation2_fluffos_v1.zip

Download the archive   « Back to the archive contents

/*    /domains/Examples/npc/smiley.c
 *    from the Foundation II LPC Library
 *    a smiling dwarf
 *    created by Descartes of Borg 950410
 */

#include <lib.h>

inherit LIB_NPC;

void eventSmile();

static void create() {
    npc::create();
    SetKeyName("smiley");
    SetId( ({ "smiley", "dwarf" }) );
    SetShort("Smiley, the smiling dwarf");
    SetLong("A smiling dwarf from far away.  He is short and stocky like "
	    "just about every other dwarf you have ever seen, but he looks "
	    "drunk and just smiles with that stupid smile.");
    SetLevel(3);
    SetRace("dwarf");
    SetClass("fighter");
    SetGender("male");
    SetMorality(-450);
    SetAction(10, (: eventSmile :));
}
void eventSmile() { command("smile"); }

Site Stats

Snippets: 1791
Codebases: 571