dsI/bin/
dsI/extra/creremote/
dsI/extra/mingw/
dsI/extra/wolfpaw/
dsI/fluffos-2.7-ds2.018/
dsI/fluffos-2.7-ds2.018/ChangeLog.old/
dsI/fluffos-2.7-ds2.018/Win32/
dsI/fluffos-2.7-ds2.018/compat/
dsI/fluffos-2.7-ds2.018/compat/simuls/
dsI/fluffos-2.7-ds2.018/testsuite/
dsI/fluffos-2.7-ds2.018/testsuite/clone/
dsI/fluffos-2.7-ds2.018/testsuite/command/
dsI/fluffos-2.7-ds2.018/testsuite/data/
dsI/fluffos-2.7-ds2.018/testsuite/etc/
dsI/fluffos-2.7-ds2.018/testsuite/include/
dsI/fluffos-2.7-ds2.018/testsuite/inherit/
dsI/fluffos-2.7-ds2.018/testsuite/inherit/master/
dsI/fluffos-2.7-ds2.018/testsuite/log/
dsI/fluffos-2.7-ds2.018/testsuite/single/
dsI/fluffos-2.7-ds2.018/testsuite/single/tests/compiler/
dsI/fluffos-2.7-ds2.018/testsuite/single/tests/efuns/
dsI/fluffos-2.7-ds2.018/testsuite/single/tests/operators/
dsI/fluffos-2.7-ds2.018/testsuite/u/
dsI/fluffos-2.7-ds2.018/tmp/
dsI/lib/cfg/
dsI/lib/cmds/common/
dsI/lib/cmds/creators/include/
dsI/lib/cmds/creators/include/SCCS/
dsI/lib/daemon/services/
dsI/lib/doc/
dsI/lib/domains/Ylsrim/
dsI/lib/domains/Ylsrim/adm/
dsI/lib/domains/Ylsrim/armour/
dsI/lib/domains/Ylsrim/broken/
dsI/lib/domains/Ylsrim/fish/
dsI/lib/domains/Ylsrim/meal/
dsI/lib/domains/Ylsrim/npc/
dsI/lib/domains/Ylsrim/virtual/
dsI/lib/domains/Ylsrim/weapon/
dsI/lib/domains/default/creator/
dsI/lib/domains/default/etc/
dsI/lib/domains/default/room/
dsI/lib/lib/comp/
dsI/lib/lib/lvs/
dsI/lib/lib/user/
dsI/lib/lib/virtual/
dsI/lib/obj/
dsI/lib/obj/include/
dsI/lib/realms/
dsI/lib/save/kills/a/
dsI/lib/save/kills/b/
dsI/lib/save/kills/f/
dsI/lib/save/kills/m/
dsI/lib/save/kills/q/
dsI/lib/save/kills/r/
dsI/lib/secure/cfg/
dsI/lib/secure/cfg/classes/
dsI/lib/secure/cfg/races/SCCS/
dsI/lib/secure/cmds/creators/include/
dsI/lib/secure/cmds/players/
dsI/lib/secure/cmds/players/include/
dsI/lib/secure/daemon/include/
dsI/lib/secure/lib/
dsI/lib/secure/lib/include/
dsI/lib/secure/lib/net/
dsI/lib/secure/lib/net/include/
dsI/lib/secure/lib/std/
dsI/lib/secure/obj/
dsI/lib/secure/obj/include/
dsI/lib/secure/save/
dsI/lib/spells/
dsI/lib/verbs/admins/include/
dsI/lib/verbs/common/
dsI/lib/verbs/common/include/
dsI/lib/verbs/creators/
dsI/lib/verbs/creators/include/
dsI/lib/verbs/players/include/SCCS/
dsI/lib/verbs/rooms/
dsI/lib/verbs/rooms/include/
dsI/lib/www/
dsI/v22.2b14/
dsI/win32/
/*    /domains/Ylsrim/room/bazaar.c
 *    From the Dead Souls V Object Library
 *    An example of a simple room
 *    created by Descartes of Borg 950928
 */

#include <lib.h>

inherit LIB_ROOM;

static void create() {
    object ob; // this will be used to create dummy items

    // setup the stuff you inherit
    room::create();
    // set the town, as native Ylsrimites can do special things in Ylsrim
    SetTown("Ylsrim");
    // the climate in Ylsrim is arid because it is a desert town
    SetClimate("arid");
    // the is the amount of light the street lamps make at night
    SetNightLight(18);
    // the obvious exits tell people how to leave the room
    SetObviousExits("n, s, enter armoury, enter weaponry");
    // set the sounds people hear
    SetListen("Vendors are begging you to come look at their goods.");
    // set the short description... should not be capitalized
    SetShort("the central bazaar of Ylsrim");
    // this is the description people see at day
    SetDayLong("Shops and vendors selling all types of goods fill "
	       "the central bazaar of Ylsrim.  Local villagers and "
	       "exotic travellers are passing about you in search of a "
	       "bargain, or even in some cases, in search of trouble.  "
	       "Kaliid Road crosses Ylsrim from the west to the east just "
	       "north of you, with an armoury and a weapon shop straddling "
	       "both sides of the bazaar.  The bazaar stretches on south.");
    // this is the description people see at night
    SetNightLong("Though most areas of Ylsrim are peaceful right now, "
		 "the central bazaar is still filled with people doing "
		 "business, even though most of the shops are closed.  "
		 "Kaliid Road is just north of here, and a closed armoury "
		 "and weapons shop sit on both sides of the bazaar.  "
		 "The bazaar stretches south.");
    // set up dummy items... the first few are simple
    AddItem(({ "villager", "traveller" }),
	    "Both villagers and travellers are out looking for good "
	    "deals.");
    AddItem(({ "road" }), "It leads through Ylsrim from the Great Desert "
            "in the west towards more fertile land east.", ({ "kaliid" }));
    // people need to enter the armoury, so we need to do something special
    // first create an armoury dummy item
    ob = new(LIB_DUMMY, ({ "armoury", "shop" }),
	     function(string str) {
	         if( query_night() ) {
		     return "It is closed.";
		 }
		 else {
		     return "It is open.";
		 }
	     }, ({ "armour" }));
    // set it so when people 'enter armoury', they move to the armoury
    ob->SetEnter("/domains/Ylsrim/room/"+ "armoury");
    // now add it as an item
    AddItem(ob);
    // do the same stuff for the weaponry
    ob = new(LIB_DUMMY, ({ "weaponry", "shop" }),
	     function(string str) {
	         if( query_night() ) {
		     return "It is closed.";
		 }
		 else {
		     return "It is open.";
		 }
	     }, ({ "weapon" }));
    ob->SetEnter("/domains/Ylsrim/room/"+ "weaponry");
    AddItem(ob);
    // set the directional exits
    SetExits( ([ "north" : "/domains/Ylsrim/room/"+ "kaliid4",
		"south" : "/domains/Ylsrim/room/"+ "s_bazaar" ]) );
}
void init(){
::init();
}