mud/lib/domains/oogtopia/npc/party_ooga.c
2020-09-06 05:43:07 -07:00

41 lines
1.2 KiB
C

#include <lib.h>
inherit LIB_SENTIENT;
int CheckOrc(mixed val){
if(!val) return 0;
if(!objectp(val)) return 0;
if(val->GetRace() == "ooga") return 0;
else eventForce("growl at "+val->GetKeyName());
if(playerp(val) && val->GetRace() != "ooga") return 1;
else return 0;
}
static void create() {
sentient::create();
SetKeyName("ooga");
SetId(({"ooga"}));
SetAdjectives(({"armored","professional"}));
SetShort("an ooga booga");
SetLong("This is an ooga booga, they're ready to party. They don't like technology or civilization but they sure do like music and booze by the firelight.");
SetInventory(([
"/domains/town/weap/sword" : "wield sword",
"/domains/town/obj/orc_rucksack" : "wear my sack",
"/domains/town/armor/leather_armor" : "wear leather armor",
"/domains/town/armor/orc_boot_l" : "wear left boot",
"/domains/town/armor/orc_boot_r" : "wear right boot",
]));
SetLevel(1);
SetWanderSpeed(10);
SetRace("ooga");
SetClass("explorer");
SetGender("sparkly");
SetEncounter( (: CheckOrc :) );
}
void init(){
::init();
}