From: "Edward J Glamkowski" <eglamkowski@angelfire.com> > So clearly we need: > send_to_zone You mean like this ? comm.h: void send_to_zone(zone_rnum zrnum, const char *messg, ...)\ __attribute__ ((format (printf, 2, 3))); comm.c: void send_to_zone(zone_rnum zrnum, const char *messg, ...) { struct descriptor_data *i; if (!messg || !*messg || zrnum == NOWHERE || zrnum > top_of_zone_table) return; for (i = descriptor_list; i; i = i->next) { va_list args; if (STATE(i) != CON_PLAYING || i->character == NULL) continue; if (!AWAKE(i->character)) continue; if (IN_ROOM(i->character) == NOWHERE || world[IN_ROOM(i->character)].zone != zrnum) continue; va_start(args, messg); vwrite_to_output(i, messg, args); va_end(args); } } Welcor -- +---------------------------------------------------------------+ | 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/26/03 PDT