Changing a command?

Posted by Llokii7 on Tue 20 Mar 2018 03:25 PM — 3 posts, 13,830 views.

#0
I'm fairly new to using MUSHclient and by that I mean I have very little grasp of how to work anything behind the scenes. I recently joined a MU at the request of a friend which uses +pose to emit, and pose for ooc. In most of the other MU I've played to date "pose" has been the shortcut for emit, so my question is this: Is there a way to edit the "pose" command there to function as @emit just as the +pose does?

I asked in the newbie channel was was only told that it was easy, and that the person who responded has done it for all of their MU, but they never actually mentioned how they managed it. I've tried reading through the forums in search of the issue but haven't found it, or haven't understood it if I did come across it.

As an example:

"+pose <pose>" results in:
"<pose>"

"pose" results in:
"<<ooc>> <user> <pose>"

I would like to change "pose" to result in:
"<pose>"
Amended on Tue 20 Mar 2018 03:30 PM by Llokii7
Australia Forum Administrator #1
Yes, you make an alias to match on "+pose *" (the asterisk is a wildcard) and output @emit %1. Like this:


<aliases>
  <alias
   match="+pose *"
   enabled="y"
   sequence="100"
  >
  <send>@emit %1</send>
  </alias>
</aliases>


Template:pasting
For advice on how to copy the above, and paste it into MUSHclient, please see Pasting XML.
#2
Thank you, that fixed it smoothly. Thank you very much.