raiseroom.c
final_realms_fluffos_v1/lib/d/newbie/gnome/rooms/raiseroom.c · 2.2 KB
From the archive final_realms_fluffos_v1.zip
Download the archive « Back to the archive contents
inherit "/std/raiseroom";
#include "path.h"
object helper;
void setup () {
set_short("Macedonia: Temple of Reorx");
set_light(40);
set_long("Macedonia: Temple of Reorx\n\n"
" As you walk into the temple, a sense of reverance "
"is strongly felt. "
"The marble floor and the white wall are a little "
"plain, but the maple pews and altar give this temple "
"the architecture that the citizens of this valley "
"were looking to have. This temple is a perfect place "
"for the citizen of this valley, especially the priests, "
"to worship to Reorx."
"\n\n");
add_sign(" Gnome Raiseroom.\n"
"You can get raised here by typing: raise me ");
//added by Christian oct 28 (items)//
add_item(({"pews","seats","chairs","benches"}),"The pews are made of fine wood, and are "
"well taken care of by the priests of this chapel.\n");
add_item("altar","The altar is a massive carving of marble that dominates the front of the chapel.\n");
add_item(({"floor","ground"}),"The ground is made of fine, smooth marble. It is a pale gray.\n");
add_exit("southeast",VALLEY +"gnome14","path");
add_clone("/d/newbie/gnome/npcs/priest.c",1);
}
void reset()
{
if (!helper)
{
helper = clone_object("/baseobs/monsters/healer");
helper->move(this_object());
}
helper->set_name("wise_gnome");
helper->set_short("Old Gnome");
helper->add_alias("gnome");
helper->add_alias("healer");
helper->set_long("A rather old and distracted looking gnome stands "
"here waiting to raise those unfortunate enough to die in their "
"struggles to become mighty adventurers. "
"\n");
::reset();
} /* void reset */
void dest_me()
{
if (helper)
helper->dest_me();
::dest_me();
} /* void dest me */
/*
void init()
{
::init();
add_action("do_raising","raise");
}
*/
int do_raising(string str)
{
object ob;
if(!helper)
{
tell_room(this_object(),"There appears to be a sad lack of someone here "
"to raise people, perhaps if you waited ?.\n");
return 1;
}
ob = present(str);
if(ob && ob->query_dead() && helper)
{
helper->do_raising(ob);
return 1;
}
}