 |
Yoggin Beginner
Joined: 12 Mar 2004 Posts: 14 Location: Sweden
|
Posted: 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] |
|
|
 |
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: 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.
|
|
|
 |
Yoggin Beginner
Joined: 12 Mar 2004 Posts: 14 Location: Sweden
|
Posted: 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.. |
|
|
 |
Pega Magician
Joined: 08 Jan 2001 Posts: 341 Location: Singapore
|
Posted: 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. |
|
|
 |
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: 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. |
|
|
 |
Dharkael Enchanter

Joined: 05 Mar 2003 Posts: 593 Location: Canada
|
|
Last edited by Dharkael on Sat Mar 31, 2007 12:43 pm; edited 1 time in total |
|
|
 |
Pega Magician
Joined: 08 Jan 2001 Posts: 341 Location: Singapore
|
Posted: 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?  |
|
|
 |
|
|