garden9.c

./lib/room/city/garden/garden9.c · 2.0 KB

From the archive h7v3.0a.tar.gz

Download the archive   « Back to the archive contents

#include <mudlib.h>
inherit ROOM;

status enter(string str);
void reset(status arg) {
  object obj;

  if(!present("tree")) {
    obj = clone_object("skills/obj/tree");
    move_object(obj, this_object());
    obj -> grow();
  }

  if(arg) return;

  set_short("the city garden");
  set_long(
     "A tall white rotunda stands amid a blossoming bushes of waratah, \n"+
     "its new white paint contrasting the brilliant reds of the native \n"+
     "australian flowers. ");

  set_day_desc(
     "The sunlight beams down on you from on high,\npeeking through the "+
     "white fluffy clouds.\n");
  set_night_desc(
     "The moon stares down at you as dark sinister \nclouds pass by.\n");

  set_listen("You think you hear the chattering of possums.\n");
  set_smell("The fragrance of the waratah is beautiful.\n");

  set_items(({
     "rotunda", 
          "A tall white wooden building, mainly used for resting, \n"+
          "or for Sunday picnics. It is a quiet place to sit.     \n"+
          "Perhaps you care to enter the rotunda and rest for a while",
     "waratah#flower#flowers",
          "The brilliant red waratah is in full bloom here, its large \n"+
          "flowers several inches in diameter. it is certainly beautiful",
  }));
  set_day_items(({
     "sunlight#sun#light",
          "Do you want to go blind?",
     "cloud#clouds",
          "They are white and fluffy. One reminds you of a big kangaroo",
  }));
  set_night_items(({
     "moon",
          "A white barron moon",
     "cloud#clouds",
          "They look dark and sinister...and very spooky",
  }));
  set_exits(({
     "room/city/garden/garden6", "south",
     "room/city/garden/garden8", "west",
  }));
  set_weather(1,4,0);
}

void init() {
  ::init();
  add_action("enter", "enter");
}

status enter(string str) {
  if(str == "rotunda") {
    write("You enter the rotunda.\n\n");
    this_player()->move_player("into the rotunda#room/city/garden/rotunda");
    return 1;
  }
  else {
    notify_fail("Enter what?\n");
    return 0;
  }
}

Site Stats

Snippets: 1791
Codebases: 571