[CODE] adding timed colour

From: Kingmundi (Kingmundi@AOL.COM)
Date: 01/01/98


i wanted to give more ambience to the outdoors
by changing the room colour depending on the time of day

in act.informative.c
in the function look_at_room

replaced
        send_to_char(CCNRM(ch, C_NRM), ch);
    send_to_char("\r\n", ch);

with the following


        if (SECT(ch->in_room) != SECT_INSIDE)
        {
                /* magenta for dark, green for twilight, yellow for day */
                switch (weather_info.sunlight)
                {
                        case 0:
                                send_to_char(CCMAG(ch, C_NRM), ch);
                                break;
                        case 1:
                                send_to_char(CCGRN(ch, C_NRM), ch);
                                break;
                        case 2:
                                send_to_char(CCYEL(ch, C_NRM), ch);
                                break;
                        case 3:
                                send_to_char(CCGRN(ch, C_NRM), ch);
                                break;
                        default:
                        send_to_char(CCNRM(ch, C_NRM), ch);
        }
  }
  else
        send_to_char(CCNRM(ch, C_NRM), ch);

  send_to_char("\r\n", ch);



it seems to work , except for the stock midgaard donation room

[ 3063] The Midgaard Donation Room [ !MOB INDOORS PEACEFUL ]
   You are in a small, undecorated room just off of the main temple.  There
are a couple of small wooden benches here where people occasionally sit
while they wait for items to appear.  The temple is to the west.
[ Exits: w ]

at night time, the room description is in magenta, even though the bit
field shows that the room is indoors, this seems to be the only indoor
room around the city of midgard to do this, any ideas?


     +------------------------------------------------------------+
     | 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