Crimson wrote in with a 'meeting' command. 
                               -----------------  
                              | Meeting command.|
                               -----------------
Well,this is fairly(ok,very) easy code and im putting up this up for the fun of it.This is
my FIRST snippet. This patch is maybe necessary to show the locations, if you want to add 
similar commands like this. I hate automatic patches, cause they suck in every way. Who will 
have a STOCK Mud after their first patch? Maybe OLC,but that varies. So i suggest everyone to
 stop doing auto-patches, just a suggestion ;). The file 'meeting' has to be manually created 
in /lib/text to avoid conflicts (ie. crash)If you have any suggestions, ideas ,?bugs? , mail 
me hennu@iname.com or reach me at MATRIX MUD {oesel.edu.ee, port 4000} or 
{syg.edu.ee, port 4000} -- They are the same Mud,but i'm moving to a Linux server.
--Crimson-- 10.01.2000
Files needed:
act.informative.c
db.c
db.h
interpreter.c
interpreter.h
tedit.c
Meeting command manual patch instructions:
----------------------------------------------------------------------------------------------
in act.informative.c ->
 extern char *news;
+extern char *meeting; 
  ....
 case SCMD_NEWS:
     page_string(ch->desc, news, 0);
     break;
+case SCMD_MEETING:                   
+    page_string(ch->desc, news, 0);  
+    break;                           
----------------------------------------------------------------------------------------------
in db.h ->
 #define NEWS_FILE	 LIB_TEXT"news"	   /* for the 'news' command	 */
+#define MEETING_FILE    LIB_TEXT"meeting" /* for the 'meeting' command */
----------------------------------------------------------------------------------------------
in db.c ->
 char *news = NULL;		/* mud news			 */
+char *meeting = NULL;          /* mud meeting news              */
  ....
 file_to_string_alloc(NEWS_FILE, &news);
+file_to_string_alloc(MEETING_FILE, &meeting); 
  ....
 else if (!str_cmp(arg, "news"))
   file_to_string_alloc(NEWS_FILE, &news);
+else if (!str_cmp(arg, "meeting"))          
+  file_to_string_alloc(MEETING_FILE, &meeting);
-log("Reading news, credits, help, bground, info & motds.");
+log("Reading news, meeting, credits, help, bground, info & motds."); 
 file_to_string_alloc(NEWS_FILE, &news);
+file_to_string_alloc(MEETING_FILE, &meeting); 
----------------------------------------------------------------------------------------------
in tedit.c ->
 extern const char *news;
+extern const char *meeting;
  ....
 { "news",	LVL_GRGOD,	&news,		8192,	NEWS_FILE},
+{ "meeting",   LVL_IMPL,       &meeting,       8192,   MEETING_FILE}, 
----------------------------------------------------------------------------------------------
in interpreter.h ->
 #define SCMD_WHOAMI     11  
+#define SCMD_MEETING    12
----------------------------------------------------------------------------------------------
in interpreter.c ->
 { "news"     , POS_SLEEPING, do_gen_ps   , 0, SCMD_NEWS },
+{ "meeting"  , POS_SLEEPING, do_gen_ps   , 0, SCMD_MEETING }, 
<< Adding Wear Slots [by Earthwolf] | Reply | View as text | Threaded | Manual color codes [by Renx] >> 
  | 
 
  | 
|||||||||||||||||||||||||||||||
| 
 | 
| *agreement* by Banana (castiglione@dingoblue.net.au) on Sunday, May 13th @ 04:08:11 AM http://  | 
| Let me just add support for the thing against auto-patches... it's very annoying if you're using a different platform (Mac OS in my case) to try and install some code that's in the form of a patch file.. | 
| [ Reply to this comment ] |