do_weather

From: Edward J Glamkowski (eglamkowski@angelfire.com)
Date: 05/03/02


I'd like to propose a small little change to stock in the do_weather
command:  if an immort does the weather command, it should display
the pressure, change and sky.


I added in the zone-by-zone weather, but mine looks like:

first, in utils.h, right after IN_ROOM macro:
#define IN_ZONE(ch)  (world[IN_ROOM((ch))].zone)


the act.informative.c:
ACMD(do_weather)
{
  if (OUTSIDE(ch))
  {
    send_to_char(ch, "The sky is %s and %s.\r\n",
                 sky_look[zone_table[IN_ZONE(ch)].sky],
                 (zone_table[IN_ZONE(ch)].change >= 0 ?
                  "you feel a warm wind from south" :
                  "your foot tells you bad weather is due"));

    if (GET_LEVEL(ch) >= LVL_GOD)
      send_to_char(ch, "Pressure: %d (change: %d), Sky: %d (%s)\r\n",
                 zone_table[IN_ZONE(ch)].pressure,
                 zone_table[IN_ZONE(ch)].change,
                 zone_table[IN_ZONE(ch)].sky,
                 sky_look[zone_table[IN_ZONE(ch)].sky]);
  } else
    send_to_char(ch, "You have no feeling about the weather at all.\r\n");
}


Very handy if you are toying with weather control spells or just
with the weather in general.



Is your boss reading your email? ....Probably
Keep your messages private by using Lycos Mail.
Sign up today at http://mail.lycos.com

--
   +---------------------------------------------------------------+
   | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
   | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
   | Newbie List:  http://groups.yahoo.com/group/circle-newbies/   |
   +---------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 06/25/03 PDT