Color Code

From: Chaotichavok (nhlstar6@YAHOO.COM)
Date: 01/04/02


http://www.circlemud.org/pub/CircleMUD/contrib/code/colour/colour.txt

Is where I went so it says

-=-=-=-=-=-=-=-=-=-
      comm.c
-=-=-=-=-=-=-=-=-=-

Search for:
#include "structs.h"

Above it, add:
#include "screen.h"

Search for:
extern char *help[];

Below it, add:
void proc_color(char *inbuf, int color);

Search for:
  /* add the extra CRLF if the person isn't in compact mode */
  if (!t->connected && t->character && !PRF_FLAGGED(t->character,
PRF_COMPACT))
    strcat(i + 2, "\r\n");

Below it, add:
  if(t->character)
    proc_color(i, (clr(t->character, C_NRM)));


So I do this but next it says

-=-=-=-=-=-=-=-=-=-
     Makefile
-=-=-=-=-=-=-=-=-=-

Search for:

spells.o utils.o weather.o

Change to:

spells.o utils.o weather.o color.o

Search for:
class.o: class.c conf.h sysdep.h structs.h db.h utils.h spells.h
interpreter.h

$(CC) -c $(CFLAGS) class.c

Below it, add:
color.o: color.c conf.h

$(CC) -c $(CFLAGS) color.c
^^^^^^^^
***MAKE SURE THIS IS A <TAB> OR ELSE THE MAKEFILE WILL PRODUCE ERRORS!!!!!
***

and in the makefile I can't find

class.o: class.c conf.h sysdep.h structs.h db.h utils.h spells.h
interpreter.h


what do I do?

--
   +---------------------------------------------------------------+
   | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
   | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
   | Newbie List:  http://groups.yahoo.com/group/circle-newbies/   |
   +---------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 06/25/03 PDT