fighter.c
ds2.1.1/lib/realms/template/area/npc/fighter.c · 576 B
From the archive ds2.1.1.zip
Download the archive « Back to the archive contents
#include <lib.h>
#include "../../customdefs.h"
inherit LIB_NPC;
static void create(){
npc::create();
SetKeyName("fighter");
SetId( ({"human","npc","warrior","fighter"}) );
SetShort("a fighter");
SetLong("This is a sample warrior NPC.");
SetLevel(10);
SetRace("human");
SetClass("fighter");
SetGender("male");
SetInventory(([
MY_ARMOR "/chainmail.c" : "wear chainmail",
MY_ARMOR "/leather_boot_r.c" : "wear boot",
MY_ARMOR "/leather_boot_l.c" : "wear boot",
MY_WEAP "/sword.c" : "wield sword",
]));
}
void init(){
::init();
}