Aliases

Posted by Myddrin on Mon 28 Apr 2003 03:58 AM — 12 posts, 31,386 views.

#0
Here is my problem , I'm trying to color my channels, I.E.

Say '&WHi'
instead of the default cyan , ive tried:
alias: say
send: say &W%1
but no luck..
any ideas will be muchly appreciated
Australia Forum Administrator #1
How is this supposed to work? Does the MUD support colours like that?

What you want, anyway, is:

alias: say *
send: say &W%1

Otherwise it won't match. The * is a wildcard-matcher.
#2
well
all I get is
when I type say Hello
I get
say &W
You say ''
It dont work , I just know Zmud , also known as gaymud used to be able to do it , just wondering about MUSH i guess not though
Australia Forum Administrator #3
Are you on an MXP-enabled MUD?

With MXP inactive, this is what I get:


say hello
say &Whello
You say, "&Whello"


However, with MXP on it thinks "&Whello" is an entity (like ") and supresses it, because it isn't in its entity list.

So, if the MUD is an MXP MUD it should be converting & to & however I gather you are typing &W because you want a colour, not to see &W echoed back at you.

I'm trying to work out what you are wanting here. Is the &W supposed to convert to a colour at the client end, or is the server supposed to handle it? If the server is supposed to do it, it seems it isn't, that is your problem.

What happens, if you type "say &Whello" without using an alias? Does that work? If not, then the alias isn't going to do much more than that.
#4
see , without the alias , when I type say &WHello it comes back as You say 'Hello" but the hello is white, i was just wanting to know if i could make all my text on a certian channel a certian color, only way i thought of doing it is aliases , if there is an easier way , feel free to suggest it..im not sure about the MPX thing , mud is down atm
Australia Forum Administrator #5
I can't see what difference using the alias would make. It should work. What is the MUD? I can try it myself - when it is up.
#6
Unicorn Valley
Unicornvalley.org:2500
Australia Forum Administrator #7

I just connected to that, and the alias worked fine for me. Here it is ...


say &Whello
You say 'hello'

<Type HELP START>
<Type HELP START>
Amended on Tue 29 Apr 2003 03:57 AM by Nick Gammon
Australia Forum Administrator #8
This is my alias, try copying it and using it yourself:


<aliases>
  <alias
   match="say *"
   enabled="y"
   sequence="100"
  >
  <send>say &amp;W%1</send>
  </alias>
</aliases>

#9
hmm..where do I put that?I was trying to add it to the alias thing in the configuration....
Australia Forum Administrator #10
Copy from, and including <aliases> ... </aliases>.

Go to the alias configuration screen. Click on "paste".
#11
IT WORKS:D
thanks a kazillionbazillion trillion:D