Hello. I implemented this bit of code to do the standard "what am I missing in my help files" bit, but I actually want to understand it and eventually tweak it.
/* In act_info.c, as part of void do_help, define: */
char nohelp[MAX_STRING_LENGTH];
/* Then, at the beginning of the function, add: */
strcpy(nohelp, argument);
/* Change if(!found) to: */
if(!found) { send_to_char("No help on that word.\n\r", ch); append_file( ch, HELP_FILE, nohelp ); }
The output is something like <character name> <room number> <missing help file>. How is it creating that?
The rest of the picture would be in your "append_file" function. The snippet you've shown is alerting that function every time someone hasn't found help on a keyword they typed. I'm assuming that it is that function which logs enough information about the event for you to know if you should add such a help file or if the user simply mistyped.
I implemented this bit of code to do the standard "what am I missing in my help files" bit, but I actually want to understand it and eventually tweak it.
The output is something like <character name> <room number> <missing help file>. How is it creating that?
Best Regards,
Arholly