Trick with Aliases

Posted by Borgia on Thu 08 Mar 2007 05:06 AM — 11 posts, 36,494 views.

Italy #0
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.

Australia Forum Administrator #1
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.
Italy #2
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


;)
Amended on Thu 08 Mar 2007 09:41 PM by Nick Gammon
Italy #3
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.
Australia Forum Administrator #4
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
Italy #5
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!
Australia Forum Administrator #6
Can you please use the technique described on this page to show your exact alias you are using?


http://www.gammon.com.au/forum/bbshowpost.php?bbsubject_id=4776
Italy #7
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>
Amended on Fri 09 Mar 2007 08:46 PM by Borgia
Australia Forum Administrator #8
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 *"
Italy #9
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!
Australia Forum Administrator #10
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