>void do_auto_exits(struct char_data * ch) >{ ... > /* added to take into account dark rooms */ > if(IS_SET(ROOM_FLAGS(EXIT(ch, door)->to_room), ROOM_DARK)) { > strcpy(temp, "Too dark to see"); > } > else { > strcpy(temp, world[EXIT(ch,door)->to_room].name); > } > /* End added section, change line below as well though*/ ... >} /* added to take into account dark rooms */ if(IS_SET(ROOM_FLAGS(EXIT(ch, door)->to_room), ROOM_DARK)) { if (GET_EQ(ch, WEAR_LIGHT) != NULL) if (GET_OBJ_TYPE(GET_EQ(ch, WEAR_LIGHT)) == ITEM_LIGHT) if (GET_OBJ_VAL(GET_EQ(ch, WEAR_LIGHT), 2)) /* Light is ON */ strcpy(temp, world[EXIT(ch,door)->to_room].name); else strcpy(temp, "Too dark to see"); } else { strcpy(temp, world[EXIT(ch,door)->to_room].name); } /* End added section, change line below as well though*/ This might work also if you haven't yet used another way. (I've been gone for awhile) -SexyCoder ______________________________________________________ Get Your Private, Free Email at http://www.hotmail.com +------------------------------------------------------------+ | Ensure that you have read the CircleMUD Mailing List FAQ: | | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html | +------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/15/00 PST