Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
Yoggin
Beginner


Joined: 12 Mar 2004
Posts: 14
Location: Sweden

PostPosted: Sat Mar 27, 2004 12:05 am   

Colors!
 
Hmmm got a question dont think this is possible but might as well ask =P

If someone tells me green with red color is there anyway that zmud can trigger on the color of the line and tell green back in red to that person? [8]
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Sun Mar 28, 2004 5:34 am   
 
Yes. Use the ansi option with your trigger to detect the color and the appropriate mudcodes to send the same color back. You'll probably need a separate trigger for each and every possibility.
Reply with quote
Yoggin
Beginner


Joined: 12 Mar 2004
Posts: 14
Location: Sweden

PostPosted: Fri Apr 09, 2004 5:32 pm   
 
hmmmm....dont understand really how ansi function works, would be glad if someone could help me out with it.

Balah tells you 'HOHO'

then I want script to dectect what ansi on word and tell that back to Balah..
Reply with quote
Pega
Magician


Joined: 08 Jan 2001
Posts: 341
Location: Singapore

PostPosted: Fri Apr 09, 2004 7:29 pm   
 
Does your mud allow you to send colours using ANSI escape codes? Perhaps it has a special way of displaying colours using codes like @R for red, @B for blue.

In that case you will have to match each colour with each appropriate colour code to reproduce a matching colour.

In order to detect the colours on a line you should use the ANSI trigger option. This enables the trigger to detect the ANSI colour codes on each line, that are usually stripped before pattern matching in the trigger. In this way you can use wildcards to capture or detect the numbers and letters within any ANSI colour code received.

Try logging your mud output with and without ANSI codes, then you will see for yourself how ANSI codes are turned into colours.

Normally muds will not allow users to send ANSI escape codes because this leaves it open to abuse. In some muds colours are allowed in communication channels using mud-specific special codes like the one i mentioned above.
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Sat Apr 10, 2004 4:18 pm   
 
You haven't supplied any information on how to send color commands to your MUD. Most MUDs do allow users to to send color commands, but there are many different ways of doing so. Without that information, there is no possibility that anybody here can do what you ask.

Personally, I would think it pretty stupid if everytime I 'told' someone something, they immediately 'told' it back to me. This is something that little children do to annoy their brothers and sisters. I'd be certain they were doing it with triggers and I'd suspect them of running a bot whether they duplicated my colors or not.
Reply with quote
Dharkael
Enchanter


Joined: 05 Mar 2003
Posts: 593
Location: Canada

PostPosted: Mon Apr 12, 2004 12:07 am   
 
Hey Yoggin I made a script component that should do what you want with a little tweaking.
check it out here http://forums.zuggsoft.com/phpbb/viewtopic.php?t=15922


Last edited by Dharkael on Sat Mar 31, 2007 12:43 pm; edited 1 time in total
Reply with quote
Pega
Magician


Joined: 08 Jan 2001
Posts: 341
Location: Singapore

PostPosted: Mon Apr 12, 2004 6:14 am   
 
quote:
Personally, I would think it pretty stupid if everytime I 'told' someone something, they immediately 'told' it back to me. This is something that little children do to annoy their brothers and sisters. I'd be certain they were doing it with triggers and I'd suspect them of running a bot whether they duplicated my colors or not.

How about an ELIZA bot? Very Happy
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net