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
➜ calling plugin functions from aliases
calling plugin functions from aliases
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Broud
Netherlands (10 posts) Bio
|
Date
| Sat 01 Nov 2008 05:13 PM (UTC) |
Message
| im using aardmush, and want to make an alias for a series of commands:
say @B------>spelling up %1
spellup other %1
say @Bspellup done<------
rub
The "spellup other %1" command however gives an error msg from the mud (unknown command). Any solutions how to call the plugin command (spellup other) within an alias? | Top |
|
Posted by
| Nick Gammon
Australia (23,133 posts) Bio
Forum Administrator |
Date
| Reply #1 on Sat 01 Nov 2008 09:56 PM (UTC) |
Message
| In the alias, instead of Send to: World, change it to Send to: Execute.
That way the alias sent text is re-evaluated as if you had typed it in, and the plugin will catch it. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Broud
Netherlands (10 posts) Bio
|
Date
| Reply #2 on Sun 02 Nov 2008 07:22 AM (UTC) |
Message
| thanks, that's it for the spellup other bit. but then my other lines wont work. can i specify one line to be send to execute? | Top |
|
Posted by
| Nick Gammon
Australia (23,133 posts) Bio
Forum Administrator |
Date
| Reply #3 on Sun 02 Nov 2008 07:05 PM (UTC) |
Message
| Well you can with scripting. But why won't the other lines work? Have you tried it and they don't work? If so, can you please specify in what way, and also copy and paste the actual alias you are using, see http://mushclient.com/copying.
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Broud
Netherlands (10 posts) Bio
|
Date
| Reply #4 on Mon 03 Nov 2008 05:28 AM (UTC) |
Message
| my bad. it worked. did something wrong. sorry about that.
<aliases>
<alias
match="spellother *"
enabled="y"
send_to="10"
keep_evaluating="y"
sequence="100"
>
<send>say @B------>spelling up %1
spellup other %1
say @Bspellup done<------
rub</send>
</alias>
</aliases>
THANKS! | 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.
14,305 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top