On Fri, 2 Jan 1998, Erik Lundin wrote:
> and replace it with this (comm.c)
> * switch (number(0, 1)) {
> * case 0:
> * SEND_TO_Q(GREETINGS, newd);
> * break;
> * case 1:
> * SEND_TO_Q(GREETINGS1, newd);
> * break;
> * }
SEND_TO_Q(GREETINGS[number(0, MAX_GREET - 1)]);
> now this makes your mud to display 2 diffrent logos... now all you have
> to do is to add the 2nd logo into your config.c!
if you want just add another file just so config.c doesn't get cluttered
with all those grettings.
> ^ char *GREETINGS =
> ^
> ^ "\r\n\r\n"
char *GREETINGS[MAX_GREET] = {
" Greetings One ",
" Greetings Two ",
};
ooh i guess you need to define MAX_GREET somewhere. An idea would be make
greetings.c & greetings.h keepeing everything seperate makes things neat
and tidy. oops also at the top of comm.c:
- extern char *GREETINGS;
+ extern char *GREETINGS[MAX_GREET];
and add greetings.h as an include
How about that as an improvement...
,~", ,~"", nerdimac@progsoc.uts.edu.au
- D.C.F./ ", ," "--<
",,," Damjan Carlo Frankovic
Young men want to be faithful and are not; old men want to be faithless and
cannot.
-- Oscar Wilde
+------------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
| http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
+------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/15/00 PST