View Single Post
Old 03-16-2003, 11:33 PM   #5 (permalink)
stheno
Registered User
 
stheno's Avatar
 
Join Date: Mar 2003
Location: in my head
Posts: 7
stheno is on a distinguished road
room

#include "../path.h"
#include <weather.h>
inherit STD_ROOM;

void reset(int arg) {
::reset();
if(arg) return;
set_short("Undead Island");
set_outdoors(4);
set_terrain("cemetery");
set_long("You're standing at the edge of a great cliff. You "+
"can hear the sounds of the ocean, far below you. There "+
"is a very cold breeze blowing, carrying with it the "+
"sounds of the anguished undead, unable to die.\n");
add_obj("bigdk",1,"present");
set_light(0);

add_exit(UNDEAD+"undead/rooms/rm14", "east");
add_exit(UNDEAD+"undead/rooms/rm23", "north");

}
smell_room(string arg) {
if(!arg || arg=="room" || arg=="the room"){
write("The air is filled with a nausiating and putrid stench.\n");
return 1;
}
say(this_player()->query_name()+" takes a wiff of the putrid air.\n");
return 1;
}

pray() {
write("You may not do that here.\n");
return 1;
}
query_no_summon() {return 1;}
query_can_escape() {return 1;}
query_island() { return "the Undead"; }
query_undead_present(){
object *obj;
int index;
obj=all_inventory(this_object());
index=sizeof(obj);
while(index){
if(obj[index-1]->query_undead()) return 1;
index--;
}
return 0;
}
stheno is offline   Reply With Quote