PEB15.C
LIB3/D/HOME/CITY/PEB15.C · 1.4 KB
From the archive nm4dos.zip
Download the archive « Back to the archive contents
#include "path.h"
inherit "/std/room.c";
setup()
{
set_short("Pebblestone Avenue");
set_long("You are near the southern end of Pebblestone Avenue, which "
+"continues to the north and south of here. One of the houses "
+"by the edge of the road has some graffiti painted on it. \n");
add_item( ({"road", "Pebblestone Avenue", "avenue", "pebblestone avenue", "street"}),
"Pebblestone avenue is a rather pointless street. When you "
+"think about it though, most roads are kind of flat, with "
+"not many points... \n");
add_item( ({"house", "building"}),
"The houses by the edge of the road are all run-down and "
+"dilapidated. \n");
add_sign("The graffiti has been crudely daubed on a "+
"wall.\n", "The graffiti reads :-\n\n Go Home Greens!\n",
0, "graffiti");
add_exit("north", HOMECITY+"pebblestone14", "road");
add_exit("south", HOMECITY+"pebblestone16", "road");
set_zone("docks");
set_light(60);
}
void init()
{
::init();
add_action("read_graffitti", "read", 1);
}
int read_graffitti(string str)
{
if(str == "graffitti" || str == "grafitti" || str = "graffiti" ||
str == "grafiti" || str == "writing" || str == "wall" ||
str == "house" || str == "building")
{
write("The graffiti reads : %^GREEN%^Go home greens!%^RESET%^\n");
say(this_player()->query_cap_name()+
" examines the grafitti painted on a nearby house.\n");
return 1;
}
return 0;
}