[Question][Code] Send to zone

From: Dust (dustlos@hotmail.com)
Date: 06/04/01


I've recently put in independent weather/sky/temperature/wind directions for
zones and need to make a function to send a message to people who are
outside, in a certain zone.. so far I have this which doesn't work, this
should be a quickie with any luck :) Thanks in advance

void send_to_i_zone(int zone_rnum, const char *messg)
{
  struct descriptor_data *i;

  if (!messg || !*messg)
    return;

  for (i = descriptor_list; i; i = i->next) {
    if (STATE(i) != CON_PLAYING || i->character == NULL)
       continue;
    if (world[IN_ROOM(i->character)].zone != zone_rnum)
       continue;
    if (IN_ROOM(i->character) != NOWHERE)
       continue;
    if (!AWAKE(i->character) || !OUTSIDE(i->character))
       continue;
    SEND_TO_Q(messg, i);
  }
}

--
   +---------------------------------------------------------------+
   | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
   | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
   +---------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/05/01 PST