Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Due to spam on this forum, all posts now need moderator approval.
Entire forum
➜ MUSHclient
➜ General
➜ Quick question about Aliases
Quick question about Aliases
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Isildur
(12 posts) Bio
|
Date
| Sat 11 Aug 2007 03:58 PM (UTC) |
Message
| I used to use MM2k and was quite used to being able to type /alias {aliasname}{commands;and;stuff} to make a quick alias. Is there a way to do this in MUSHclient?
Also, I noticed the Getting Started section. Great job, Nick. Those are awesome and I learned a few things from those. Keep 'em coming.
isildur | Top |
|
Posted by
| Zeno
USA (2,871 posts) Bio
|
Date
| Reply #1 on Sat 11 Aug 2007 05:49 PM (UTC) |
Message
| |
Posted by
| Isildur
(12 posts) Bio
|
Date
| Reply #2 on Sat 11 Aug 2007 08:57 PM (UTC) |
Message
| Ok. I am close to understanding this. I am connected to Aardwolf mud and I typed this:
AddAlias("containers","lib","look in bag",alias_flag.Enabled,"")
I hit enter and got
"That is not a command."
from the mud. I have my options set to Lua as my scripting language. Am I missing something here? Is there a command symbol (/ # $) that must prefix a script command?
Thanks! | Top |
|
Posted by
| Shaun Biggs
USA (644 posts) Bio
|
Date
| Reply #3 on Sat 11 Aug 2007 09:07 PM (UTC) |
Message
| Press ctrl-shft-6 to get the scripting configuration menu, then look at the box in the lower right-hand corner. Most people put a backslash in there so they would access the script with "/AddAlias.." |
It is much easier to fight for one's ideals than to live up to them. | Top |
|
Posted by
| Shaun Biggs
USA (644 posts) Bio
|
Date
| Reply #5 on Sat 11 Aug 2007 09:18 PM (UTC) |
Message
| Here's a quick script that I made which doesn't bother dealing with script prefixes. I changed the "/alias" to "#alias" so it doesn't interfere with my scripting. Actually it was designed so I could input zmud speedwalks, but I can lie and say I did it for you. Just copy the whole block of code below and then open up the alias configuration window with ctrl-shft-9. There's a 'paste' button which will only be active if you have a valid alias in the clipboard. That should work out for you. If you do change the scripting prefix to a / and change the alias matching here to "/alias {*}{*}" then it will not work, as the client will check to see if it's a script before alias matching.
<aliases>
<alias
name="addalias"
match="#alias {*}{*}"
enabled="y"
send_to="12"
sequence="100"
>
<send>AddAlias("commandalias"..os.time(), "%1", "%2", alias_flag.Enabled, "")</send>
</alias>
</aliases>
|
It is much easier to fight for one's ideals than to live up to them. | Top |
|
Posted by
| Isildur
(12 posts) Bio
|
Date
| Reply #6 on Sat 11 Aug 2007 11:18 PM (UTC) |
Message
| lol, thanks for doing that for me. :)
isildur | Top |
|
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
20,999 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top