Hello,
The version I am using is one that comes standard in QuickMUD and other
versions of OLC. I believe
it is 1.81. Here's what save_other_helps looks like:
void save_other_helps(CHAR_DATA *ch)
{
extern HELP_AREA * had_list;
HELP_AREA *ha;
FILE *fp;
for(ha = had_list; ha; ha = ha->next)
if(ha->changed == TRUE)
{
fp = fopen(ha->filename, "w");
if(!fp)
{
perror(ha->filename);
return;
}
save_helps(fp, ha);
if(ch)
printf_to_char(ch, "%s\n\r", ha->filename);
fprintf(fp, "#$\n");
fclose(fp);
}
return;
}
In retrospect, you are absolutely correct about how I assign AREA_CHANGED, it
really shouldn't be
based on that area the person is standing in, but what area the help has been
created in. Should be
something relating to the area of the actual helpfile being edited, not the
area of the room you're
in. Thanks for pointing that out.
- Jeremy
----- Original Message -----
From: "Michael Gerner Andreasen" <[EMAIL PROTECTED]>
To: "Jeremy Hill" <[EMAIL PROTECTED]>
Sent: Sunday, March 02, 2003 11:58 AM
Subject: Re: Hedit and save_other_helps; a workaround
> What version of olc are you useing? i use 1.81 or i used to, now it is a
> hack and mixed with most other versions, simply puled what i liked from
> other versions...
>
>
> The fix you surplyed would make the edieted help save in the file of the
> area you would be standing in, it is one way to go, others made it so that
> you should stand in a pre set area and only save helps there, i redid it so
> that all my helps was located in one help file and made it not save to areas
> at all, but you could of cours make the hedit function take another argument
> and save it to the area file of the choosen argument, it is all up to who
> you are and how you want it...
>
> soon i will be going in the direction of sql, hope some of the once that
> made this work give a hand where i proberly get stuck..
>
> -- Kawaki
>