> ...like, I don't want players to be able to set coloured titles or
> something...

I had this same problem...  I found a tiny function of code that has proved
quite useful, and basically prevents
all but immortals from setting the { color tags.

http://kyndig.com/pub/mud/diku/merc/rom/snippets/limit.txt

The snippet uses lines like this:

   if(*pointer == 'z') /* blinking */
   {
    *bufin = ' ';
   }

to strip the characters after the { trigger, leaving a null color.  So, in
reality, it's merely sending a false char
to the lope's code.  I updated this snippet to ignore ALL mortal colors...

  if(*pointer == '{')
  {
   *bufin = ' ';

   pointer++;
   bufin++;

   *bufin = ' ';
  }

Take a look at the snippet, it prevents rainbow titles and other headaches.

~Tandon Miir
http://worldofeternaldreams.tripod.com
^ MUD Site ^
http://wakarimasu.javagamz.com
^ Personal Site ^


Reply via email to