NEWSHOP.C

LIB3/D/HOME/CITY/NEWSHOP.C · 1.2 KB

From the archive nm4dos.zip

Download the archive   « Back to the archive contents

#include "path.h"
inherit "/std/shop.c";

void setup()
{
   add_sign("A small sign, giving instructions on how to use "+
      "this shop.\n", "You can :- \n\n     'buy' an item,\n     "+
      "'sell' and item,\n     'list' what is for sale here,\n"+
      "     'browse' an item,\n  or 'value' and item.\n", 0, 0);
   set_short("General Store on Diamond Street");
   set_long("You are in a general store on Diamond Street. Items may be "
      +"bought and sold here, or valued. A counter up against the "
      +"north wall displays the goods for sale here, and a small "
      +"sign gives instructions on how to use the shop. \n");
   set_store_room(HOMECITY+"newbieshopstore");
   add_item( ({"counter", "display", "table", "cabinet"}),
      "The counter is basically a wooden table, but a glass cover "
      +"protects the goods from thieves, allowing access to them "
      +"only from the rear. \n");
   add_item( ({"item", "good", "thing"}),
      "These are the things the shop has for sale right now. Type "
      +"'list' to see what they are and 'browse <object>' to study "
      +"one more closely. \n");
   set_zone("newbie");
   set_light(60);
   add_exit("south", HOMECITY+"diamondstreet5", "door");
}

Site Stats

Snippets: 1791
Codebases: 571