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
➜ Trick with Aliases
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Borgia
Italy (10 posts) Bio
|
Date
| Thu 08 Mar 2007 05:06 AM (UTC) |
Message
| Greetings. I hope you can help me.
Being a dyslexic I have hardship with games that offer not a line break between two spammy poses.
Being a demanding perfectionist bastard, I like my poses well-formatted.
And being a lazy bone, I like to simplify things, so there goes the question.
How do I set my aliases, in a way that, every time I type:
@emit (whatever)
say (whatever)
"(whatever)
pose (whatever)
: (whatever)
I send to the world
@emit %r%t(whatever)
say %r%t(whatever)
"%r%t(whatever)
pose %r%t(whatever)
: %r%t(whatever)
?
I have tried with the @emit example. But if I put @emit * on the alias and a @emit %r%t on the send boxes, all I send are nothing.
Any lights anyone? ^_^
Thank you, any advices will be greatly appreciated.
| Top |
|
Posted by
| Nick Gammon
Australia (23,133 posts) Bio
Forum Administrator |
Date
| Reply #1 on Thu 08 Mar 2007 05:10 AM (UTC) |
Message
|
Quote:
@emit %r%t
In the send box you need to echo the wildcard, which is %1 (%1 is the first wildcard). Also you need to double the %, so it should read:
@emit %%r%%t%1
That should work for you. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Borgia
Italy (10 posts) Bio
|
Date
| Reply #2 on Thu 08 Mar 2007 05:22 AM (UTC) Amended on Thu 08 Mar 2007 09:41 PM (UTC) by Nick Gammon
|
Message
| Actually it didn't. I am online now, and rather than come with a new line and a tab, the emit is coming out quite normal.
I want it to come in the world as
test
test
test
and not as
test
test
test
;) | Top |
|
Posted by
| Borgia
Italy (10 posts) Bio
|
Date
| Reply #3 on Thu 08 Mar 2007 05:28 AM (UTC) |
Message
| Ops...
There's a return (%R) and a tab of 5 to 8 spaces (%t) in front of the first test, test and test examples...
I think the format ate the tabs. Sorry. | Top |
|
Posted by
| Nick Gammon
Australia (23,133 posts) Bio
Forum Administrator |
Date
| Reply #4 on Thu 08 Mar 2007 09:43 PM (UTC) |
Message
| I have reformatted your post to show what you mean.
Not sure why it isn't working, maybe the MUD removes the %t. Does it work if you type it manually (without the alias)? eg.
say %r%t hi there
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Borgia
Italy (10 posts) Bio
|
Date
| Reply #5 on Fri 09 Mar 2007 09:14 AM (UTC) |
Message
| Yes, it works when I type anything by hand.
Like @emit %r%r Blabla %r%tBlabla.
I don't know why the alias isn't working...
How do I set it to work please?
Thanks! | Top |
|
Posted by
| Nick Gammon
Australia (23,133 posts) Bio
Forum Administrator |
Date
| Reply #6 on Fri 09 Mar 2007 07:30 PM (UTC) |
Message
| |
Posted by
| Borgia
Italy (10 posts) Bio
|
Date
| Reply #7 on Fri 09 Mar 2007 08:43 PM (UTC) Amended on Fri 09 Mar 2007 08:46 PM (UTC) by Borgia
|
Message
| Sure thing. Here we go... spammy. I left my MSN name on my profile. If you wish to contact me, feel free to. But say it is you, because I just receive pages from my contact list, that's richly composed of 2 people so far :p
The first file - when I tried to do the simple Alias my way.
<aliases>
<alias
match="@emit"
enabled="y"
ignore_case="y"
sequence="100"
>
<send>@emit %r%t</send>
</alias>
</aliases>
The second: when I replaced with wildcard *
<aliases>
<alias
match="@emit *"
enabled="y"
ignore_case="y"
sequence="100"
>
<send>@emit %r%t </send>
</alias>
</aliases>
The third, when I did with wildcard in two places
<aliases>
<alias
match="@emit *"
enabled="y"
ignore_case="y"
sequence="100"
>
<send>@emit %r%t *</send>
</alias>
</aliases>
The fourth, on the example %1 you gave on a post above.
<aliases>
<alias
match="@emit "
enabled="y"
ignore_case="y"
sequence="100"
>
<send>@emit %%r%%t%1</send>
</alias>
</aliases> | Top |
|
Posted by
| Nick Gammon
Australia (23,133 posts) Bio
Forum Administrator |
Date
| Reply #8 on Sat 10 Mar 2007 12:30 AM (UTC) |
Message
|
Quote:
The fourth, on the example %1 you gave on a post above.
<aliases>
<alias
match="@emit "
enabled="y"
ignore_case="y"
sequence="100"
>
<send>@emit %%r%%t%1</send>
</alias>
</aliases>
You haven't got a wildcard there, it won't be matching. It should match on:
match="@emit *"
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Borgia
Italy (10 posts) Bio
|
Date
| Reply #9 on Sat 10 Mar 2007 06:19 AM (UTC) |
Message
| Heya,
I tested with @emit and it is working fine.
But it doesn't work with pose :
example:
: waves.
It doesn't format the poses. :p
Why?
Thanks! | Top |
|
Posted by
| Nick Gammon
Australia (23,133 posts) Bio
Forum Administrator |
Date
| Reply #10 on Sat 10 Mar 2007 07:23 PM (UTC) |
Message
| You will make things much faster if you anticipate my questions. Last time I asked you to post the exact alias, and when you did I suggested a fix.
Now you are asking, without showing me what you have done, what is wrong with the next one.
Please post the alias, so I, or someone else, can help you:
http://www.gammon.com.au/forum/bbshowpost.php?bbsubject_id=4776
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | 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.
25,807 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top