Zecho (Area Echo) v1.0 ====================== Disclaimer ============================ This snippet has been installed and tested on a Smaug Based Codebase, since CbC Codebase is moderatly modified, this snippet may NOT work WITHOUT a few corrections to suit your code. If you change the snippet in any way, I will not be liable for the results, once you install the snippet, I am NOT liable for anything that happens to your code, server, or anything else. Terms of Use ============================ (1) You MUST put a section saying that you are using this snippet (and any others) in your credits help file, wherever it may be. (2) You also MUST send me an emailing, stating that you are using the snippet, so that I will take my time to release more snippets to the public. (3) All comments/headers in files must be left in place. (4) If you find a bug, please report it, noplex@crimsonblade.org Instructions ============================ (1) act_wiz.c Add to the bottom: /* * Zone Echo v2.0 -Nopey * noplex@crimsonblade.org */ void do_zecho( CHAR_DATA *ch, char *argument ) { if( !IS_IMMORTAL(ch) || IS_NPC(ch) ) { send_to_char( "Huh?\r\n", ch ); return; } if( argument[0] == '\0' ) { send_to_char( "Zecho what?\r\n", ch ); return; } /* let's try this once more... */ { AREA_DATA *pArea = ch->in_room->area; DESCRIPTOR_DATA *d = NULL; for( d = first_descriptor; d; d = d->next ) if( d->character && d->character->in_room->area == pArea ) pager_printf_color( d->character, "%s&g\r\n", argument ); } return; } (2) Add do_zecho to tables.c and mud.h (3) Make clean, compile. Description ============================ This sends an ECHO to everyone in the area that the immortal is in. It can be used with NORMAL color tags and not the cheapass ECHO tags. Help? ============================ Send a email to: noplex@crimsonblade.org With the Subject: ZECHO Author ============================ Noplex, Implmentor of Crimson Blade http://www.crimsonblade.org http://www.crimsonblade.org/snippets/index.html telnet://www.crimsonblade.org:8888