orc_boss.c
ds2.1.1/lib/domains/town/npc/orc_boss.c · 797 B
From the archive ds2.1.1.zip
Download the archive « Back to the archive contents
#include <lib.h>
inherit LIB_NPC;
int CheckOrc(mixed val){
if(!val) return 0;
if(!objectp(val)) return 0;
if(val->GetRace() == "orc") return 0;
else eventForce("growl at "+val->GetKeyName());
return 1;
}
static void create() {
npc::create();
SetKeyName("boss orc");
SetId(({"orc","boss","boss"}));
SetAdjectives(({"dirty","orc","boss"}));
SetShort("the boss orc");
SetLong("This orc is typical of its breed: nasty, brutish, and short. It is larger "
"than the local orcs you've seen, and looks mean and tough.");
SetLevel(1);
SetRace("orc");
SetClass("fighter");
SetGender("male");
SetMaxHealthPoints(200);
SetEncounter( (: CheckOrc :) );
SetInventory(([
"/domains/town/weap/dagger":"wield dagger",
]) );
}