On Sun, 2 Feb 1997, Corey Hoitsma wrote: > This is something that's VERY VERY VERY VERY easy to do, but > I'm sending this to the list in case some newbie wants > to know how to do it, or someone just hasn't thought of it > before:) Good idea :) I added a little function to handler.c and a little code to store_mail to notify people in the game if someone's sent them mail. In store_mail: struct char_data *recipient; recipient = get_char_by_id(to); if(recipient) send_to_char("You have new mail.\r\n", recipient); And add this function to handler.c: struct char_data *get_char_by_id(long id) { struct descriptor_data *d; for(d = descriptor_list; d; d = d->next) if(GET_IDNUM(d->character) == id) return(d->character); return NULL; } You'll have to figure out where in store_mail to put it, since my store_mail only has the function name in common with the stock function. Sam +-----------------------------------------------------------+ | Ensure that you have read the CircleMUD Mailing List FAQ: | | http://cspo.queensu.ca/~fletcher/Circle/list_faq.html | +-----------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/18/00 PST