shop.c

final_realms_fluffos_v1/lib/d/newbie/dwarf/rooms/shop.c · 1.6 KB

From the archive final_realms_fluffos_v1.zip

Download the archive   « Back to the archive contents

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

void setup() {
   set_short("Realm of the Dwarf:  Zundrin's Equipment Shop");
   set_light(80);
   set_long("\n   Realm of the Dwarf:  Zundrin's Equipment Shop\n\n"
            "     This is Zundrin's Equipment Shop.  There are shelves "
            "along each of the walls that are full of items for "
            "you to purchase.  It appears to be good quality used "
            "merchandise.  There is a small counter here with a "
            "large handwritten sign on the wall behind it.  "
            "\n\n");
   add_item("sign","The sign reads:\n"
                "Try /list/ to get a list of the items available.\n"
                "Try /sell/ to sell an unwanted item.\n"
                "Try /browse/ to look at the item before you buy.\n"
                "Try /buy/ to buy the item.\n\n");
   add_item("counter","This is a simple wooden counter that runs "
                "along the northern wall.  There is a small sign sitting "
                "upon it."
                "\n\n");
   add_clone(CHAR+"zundrin.c",1);
   add_exit("out",ROOM+"dwarf37.c","door");
   set_store_room(ROOM+"store2.c");
   set_item_table(ROOM+"SHOP_TABLE.c");
}

/*
void init() {
  ::init();
  add_action("do_buy", "buy");
  add_action("do_sell", "sell");
}

int do_buy(string str) {
if(!present("zundrin")) {
     notify_fail("There doesn't seem to be anyone here to take your order.\n");
      return 1;
   }
   return(0);
}

int do_sell(string str) {
if(!present("zundrin")) {
    notify_fail("Sorry, you cannot sell items here unless a clerk is present.\n");
      return 1;
   }
  return(0);
}
*/

Site Stats

Snippets: 1791
Codebases: 571