#include "path.h" inherit "/std/shop"; void setup() { set_short("Realm of the Elf: Cirrion's Equipment Shop"); set_light(80); set_long("\n Realm of the Elf: Cirrion's Equipment Shop\n\n" " This is Cirrion's Equipment Shop. This is a " "really big shop for being in a tree. The walls are lined " "with equipment you can buy. Cirrion is known for " "having fair prices and giving fair prices. " "There is a small counter here with a " "large handwritten sign on the wall behind it. " "\n\n"); add_property("no_undead",1); add_item("sign","The sign reads:\n" "Try /list/ to get a list of the items available.\n" "Do not try to sell anything here, Cirrion doesn't like to buy anything back.\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_exit("northeast",ROOM+"center.c","door"); add_clone(CHAR+"cirrion.c",1); set_store_room(ROOM+"store2.c"); set_item_table(ROOM+"SHOP_TABLE"); } void init() { ::init(); add_action("buy_me","buy"); add_action("do_sell","se*ll"); } int buy_me(string str) { if(!present("cirrion")) { write("There doesn't seem to be anyone here to take your order.\n"); return(1); } } int do_sell(string str) { if(!present("cirrion")) { write("Sorry, you cannot sell items here unless a clerk is present.\n"); return(1); } }