 |
megamog75 Enchanter

Joined: 20 Nov 2002 Posts: 627 Location: USA
|
Posted: Tue Jan 07, 2003 8:34 pm
expand aliases |
Is there a way to expand an alias if it is the second or third word in the command line?
Example:
give gold meg
and it expands to :
give gold megamog75
and sends that to the mud?
megamog75 |
|
|
 |
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Tue Jan 07, 2003 9:06 pm |
#ONINPUT
LightBulb
Senior Member |
|
|
 |
megamog75 Enchanter

Joined: 20 Nov 2002 Posts: 627 Location: USA
|
Posted: Tue Jan 07, 2003 9:35 pm |
I had to play with it but it works good.
seems the word you want to expand has to have either a $ after it or another wild card
example: give gold meg
Trigger: #trigger {(*) meg$} {megamog}
expands to: give gold megamog
however if you needed one that does one of this: tell meg hi
or : give meg hi five
trigger: #trigger {(*) meg (*)} {%1 megamog %2}
expands correctly but if you dont put something at the end of meg it wont expand?
Is this right?
megamog75 |
|
|
 |
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Wed Jan 08, 2003 4:42 am |
For a better solution, just put megamog in your #TAB list.
#TAB megamog
Then, whenever you're feeling lazy, you can type give gold meg
You won't have to worry about looping. You won't have problems when you try to "kill meg" (the megamonster mob) that you'll end up attacking megamog (your suddenly ex-friend). You'll have total control over whether "meg" turns into megamog or not.
LightBulb
Senior Member |
|
|
 |
|
|