Login
User Name:

Password:



Register
Forgot your password?
Vote for Us!
auth_update crash
Dec 23, 2017, 10:15 pm
By Remcon
check_tumble
Dec 18, 2017, 7:21 pm
By Remcon
parse description bug
Dec 15, 2017, 10:08 pm
By Remcon
Couple bugs
Dec 12, 2017, 5:42 pm
By Remcon
Bug in disarm( )
Nov 12, 2017, 6:54 pm
By GatewaySysop
LoP 1.46
Author: Remcon
Submitted by: Remcon
LOP 1.45
Author: Remcon
Submitted by: Remcon
LOP Heroes Edition
Author: Vladaar
Submitted by: Vladaar
Heroes sound extras
Author: Vladaar
Submitted by: Vladaar
6Dragons 4.3
Author: Vladaar
Submitted by: Vladaar
Users Online
CommonCrawl, Yandex, Raine

Members: 1
Guests: 5
Stats
Files
Topics
Posts
Members
Newest Member
478
3,708
19,242
612
Jacki72H
Today's Birthdays
There are no member birthdays today.
Related Links
» SmaugMuds.org » General » Smaug Snippets » Custom ansi color - v3.0
Forum Rules | Mark all | Recent Posts

Custom ansi color - v3.0
< Newer Topic :: Older Topic > Any suggestions?

Pages:<< prev 1 next >>
Post is unread #1 Jan 11, 2003, 5:32 pm
Go to the top of the page
Go to the bottom of the page

Guest - (Unregistered)

Hey guys,

I installed Custom Ansi Color -V3.0 on Chronicles code base about a month ago. I know you said use Sadiq's that it was not compatible, but it seems to fit in just right with a few calls added.

However, as I go bragging about that....
I have noticed the following problems, and I am curious if you may be able to tell me some suggestions on how to fix this.

when I use mpechoat and such in mobprograms colors with & sign in front of them don't work. However, colors with _Yell for example would work. Odd.

Another thing I noticed, when I installed your custom slay snippet, the & color codes of the die slay don't work. Well that is my problem, and I'm sure its a simple fix, of just a call I am missing or something, but if this rings any bells for you please let me know.

Thanks,

Vladaar
Call to Arms
       
Post is unread #2 Jan 11, 2003, 10:44 pm   Last edited Nov 24, 2007, 4:45 pm by Samson
Go to the top of the page
Go to the bottom of the page

Samson
Black Hand
GroupAdministrators
Posts3,639
JoinedJan 1, 2002

Interesting. I'd always been under the impression it was totally incompatible. But after I went back and looked, I realized it's more or less bypassing and replacing everything in the Smaug system as it is anyway. So the final fix is easy since it's in act() that you're having the trouble. So.....

comm.c:

Locate the following in the act() function:

	if (to->desc)
	{
	  if ( AType == AT_COLORIZE )
	  {
	     if ( txt[0] == '&' )
	     	send_to_char_color( txt, to );
	     else
	     {
	        set_char_color(AT_MAGIC, to );
		write_to_buffer( to->desc, txt, strlen(txt) );
	     }
	  }
	  else {
	     set_char_color(AType, to);
	     write_to_buffer( to->desc, txt, strlen(txt) );
	  }
	}


Change that all to read as follows:

	if (to->desc)
	{
        set_char_color(AType, to);
        send_to_char( txt, to );
	}


This should work for pretty much every Smaug deriv for this install so I'll be adding it to the install instructions now.
       
Post is unread #3 Jan 12, 2003, 5:38 am
Go to the top of the page
Go to the bottom of the page

Guest - (Unregistered)

Samson,

That worked beautifully thanks.

Vladaar
       
Pages:<< prev 1 next >>