SINKINGB.C
LIB3/D/HOME/CITY/SINKINGB.C · 2.8 KB
From the archive nm4dos.zip
Download the archive « Back to the archive contents
#include "path.h"
inherit "/std/pub";
object board;
void reset()
{
if (!board) {
board = clone_object("obj/misc/board");
board->move(this_object());
board->set_datafile("sinkingbarrel");
}
}
setup()
{
add_alias("sign", "menu");
add_alias("small sign", "menu");
add_menu_item("Beer", "alcohol", 10, 0, 30, 30,
"buy a pint of local beer. It tastes terrible, but you manage "+
"to force it down your gullet",
"buys a pint of the revolting local beer. They must be very "+
"hard up before they resort to that vile brew");
add_menu_item("Ale", "alcohol", 100, 0, 50, 50,
"buy a flagon of ale, and down it rapidly",
"buys a flagon of ale and drinks it quickly");
add_menu_item("Best lager", "alcohol", 350, 0, 60, 60,
"buy some of the best lager. You drink it all, then almost "+
"choke to death on the bit of lime",
"buys some fancy imported lager. What a show off. You are just "+
"hoping they will choke on it when they do");
add_menu_item("Wine", "alcohol", 1000, 0, 120, 120,
"buy a bottle of good red wine, decork it, savour its pleasent "+
"bouquet, then guzzle the lot",
"buys a whole bottle of red wine, and proceeds to get at least "+
"half of it in their mouth");
add_menu_alias("ale", "Ale");
add_menu_alias("beer", "Beer");
add_menu_alias("lager", "Best lager");
add_menu_alias("best lager", "Best lager");
add_menu_alias("wine", "Wine");
set_short("The Sinking Barrel Pub");
set_long("You are in the Sinking Barrel pub, one of the meanest and "
+"most filthy joints in "+CITYNAME+". A grubby looking bar is "
+"propped up against one wall, with a small stained menu on it, and crowds of very smelly "
+"people crowd about you. The exit is to the east of here, "
+"and seems to be a very welcome proposal. \n");
add_item("bar",
"Well, to call it a bar is a bit of and exaggeration. Maybe "
+"a roughly hewn plank over which toxic substances are "
+"vended? \n");
add_item( ({ "exit", "door" }),
"It seems to be calling out to you, 'use me, use me!' \n");
add_item( ({"crowd", "people", "local" }),
"Unfortunately for you, many of the crowd seem to be sailors "
+"who have just spent three weeks offshore catching and "
+"gutting fish, with not a single drop of water spare to "
+"bathe in. You feel sick. \n");
add_item( ({"drink", "substance", "glass", "booze", "liquor" }),
"What passes for drink here would better be described by an "
+"expert in toxic warfare, or perhaps an elephant keeper. \n");
add_monster(MONSTERS+"sailor", 2);
add_monster(MONSTERS+"tough_sailor", 2);
add_exit("east", HOMECITY+"kipperrow4", "door");
set_zone("docks");
set_light(60);
}