/*******************************************************************************
 *         _               | File Name:   extended color.txt
 *        / \      _-'     | Description: This allows you the MUD master to 
 *      _/|  \-''- _ /     |              add extended colors to your mud.
 * __-' |          \       |              blinking/reverse image/underline
 *     /              \    |              Background colors all 16 of them
 *     /       "o.  |o |   |              
 *     |            \ ;    |              
 *                   ',    |
 *        \_         __\   | (c) 2000-2003 TAKA 
 *          ''-_    \.//   | (c) 2000-2003 The GhostMud Project Team
 *            / '-____'    | 
 *           /             | You may use this code under ROM license restriction 
 *         _'  The Wolf    | 1) This header block remains in the code.          
 *       _-'   strikes!    | 2) You email me at taka@ghostmud.com
 *_________________________|    letting me know you are using this code
 *                              please incluse your name, your mud name
 * All rights reserved          your mud address, your email and this file
 * GhostMud is copyrighted      name.                                         
 * by TAKA                   3) In your help files mention me where appropriate 
 *                              IE: help snippets.
 *********************************************************************************/

/***************************************************************************
 * (c) 2000-2003 TAKA and the GhostMud PROJECT TEAM
 *                                                                         
 *  Last thank you to all the ROM amd MERC folks for this wounderful code  
 *  base know as ROM.                                                      
 *                                                                      
 *          The Ghost Dancer MUD Project Team and me TAKA thank you
 *          for your interest.
 *
 *          You can email me at:   
 *          TAKA                                                      
 *          taka@ghostmud.com                                      
 *                                                                         
 ***************************************************************************

/*
 * Have you ever wanted to extend lopes color?
 *
 * Well here it is. Lopes color with blinking, underline, reverse image
 * background colors and all. I am including only the pieces you need to
 * change his snippet.
 */

Please insert this in your help file if you use any part of this even
as a model for your own work. Not to much to ask is it? Last also
please email me at taka@ghostmud.com.

Help addition
Syntax: colour or color    Toggles colour mode on/off

You may also talk in colour. The format is like this:
Use the left-handed brace to start, choose the letter of the color
you wish your message to be in, type your message, close with another
left-handed brace followed immediately by an x

      {r{{r  dark red      {c{{c dark cyan
      {R{{R  bright red    {C{{C bright cyan
      {G{{G  bright green  {y{{y gold
      {D{{D  grey          {Y{{Y bright yellow
      {b{{b  dark blue     {m{{m dark magenta
      {B{{B  bright blue   {M{{M bright magenta
      {W{{W  bright white  {w{{w muted white
      {{x    clear(reset colour)       e.g. brace letter <message> closing brace 

{gWhen using colour, it looks better if you finish the line with whatever
colour it would normally be in. A gossip is normally the colour magenta,
so: Lope gossips '{mhello, world{x'  looks better than Lope gossips
'hello, world'

ColoUr is written by Lope (ant@solace.mh.se)

Extended color support by Taka of GhostMUD project.
{{z never worked before now.

bright background colors
{{! black	{{@ red		{{# green	{{$ yellow	
{{% blue	{{^ magenta	{{& cyan	{{( white

dark background colors
{{< red		{{= green	{{+ yellow	{{) blue		
{{/ magenta	{{| cyan	{{> white

{{z=blinking
{{u=underscore
{{v=reverse

say {z{Whello{x 	= say {{z{{Whello{{x

Blinking white

say {z{u{Whello{x 	= say {{z{{u{{Whello{{x

blinking underlined white

Taka taka@ghostmud.com

=======================================
End of help entry!


next in MERC.H find
#define C_B_WHITE    	"\e[1;37m"
add this after it
/* 050301 Taka changes */
#define CB_RED        	"\e[0;41m"    /* Normal Colours (Background) */
#define CB_GREEN      	"\e[0;42m"
#define CB_YELLOW    	"\e[0;43m"
#define CB_BLUE        	"\e[0;44m"
#define CB_MAGENTA    	"\e[0;45m"
#define CB_CYAN        	"\e[0;46m"
#define CB_WHITE       	"\e[0;47m"
#define CB_D_GREY    	"\e[1;40m"     /* Light Colors (Background) */
#define CB_B_RED       	"\e[1;41m"
#define CB_B_GREEN    	"\e[1;42m"
#define CB_B_YELLOW    	"\e[1;43m"
#define CB_B_BLUE    	"\e[1;44m"
#define CB_B_MAGENTA   	"\e[1;45m"
#define CB_B_CYAN    	"\e[1;46m"
#define CB_B_WHITE    	"\e[1;47m"
#define C_BLINKING		"\e[5;32m"
#define C_UNDERSCORE	"\e[4;32m"
#define C_REVERSE		"\e[7;32m"
#define CLEAR_SCR		"\e[2J"		/* Clear Screen	*/
#define CLEAR_HOME		"\e[1;1H"		/* cursor home  */
/* 050301 end Taka changes */

find
#define BRIGHT        	1
add this after it
/* 050301 Taka changes */
#define UNDERSCORE		4
#define BLINKING		5
#define REVERSE			6
#define HIDDEN			8
/* 050301 end Taka changes */

in COMM.C or where ever you added 
int colour (char type, CHAR_DATA * ch, char *string)
{
find the big switch in that routine and insert this into it 
just before the end of the switch.
/* 050301 Taka changes */
		case ')':
		strcpy (code, CB_BLUE);
		break;
		case '|':
		strcpy (code, CB_CYAN);
		break;
		case '=':
		strcpy (code, CB_GREEN);
		break;
		case '/':
		strcpy (code, CB_MAGENTA);
		break;
		case '<':
		strcpy (code, CB_RED);
		break;
		case '>':
		strcpy (code, CB_WHITE);
		break;
		case '+':
		strcpy (code, CB_YELLOW);
		break;
		case '%':
		strcpy (code, CB_B_BLUE);
		break;
		case '&':
		strcpy (code, CB_B_CYAN);
		break;
		case '#':
		strcpy (code, CB_B_GREEN);
		break;
		case '^':
		strcpy (code, CB_B_MAGENTA);
		break;
		case '@':
		strcpy (code, CB_B_RED);
		break;
		case '(':
		strcpy (code, CB_B_WHITE);
		break;
		case '$':
		strcpy (code, CB_B_YELLOW);
		break;
		case '!':
		strcpy (code, CB_D_GREY);
		break;
		case 'z':
		strcpy (code, C_BLINKING);
		break;
		case 'u':
		strcpy (code, C_UNDERSCORE);
		break;
		case 'v':
		strcpy (code, C_REVERSE);
		break;
/* end 050301 taka changes */

You are done clean make and reboot.

Taka
taka@ghostmud.com
bb12.betterbox.net 3333
Ghost Dancer Mud
www.ghostmud.com