|
adamwalker Apprentice
Joined: 12 Mar 2005 Posts: 195
|
Posted: Mon May 23, 2005 7:15 pm
Direction question |
Quick question...
How can I issue a command after each direction...
eg.
n;get gold
s;get gold
etc
but only when i enter the direction (n,s,e,w). Not manually like above |
|
|
|
minish1 Beginner
Joined: 24 Feb 2005 Posts: 23
|
Posted: Mon May 23, 2005 8:20 pm |
well, you could do a very simple alias for each direction:
#AL n {n; get gold}
#AL s {s; get gold}
#AL e {e; get gold}
#AL w {w; get gold}
then, everytime you enter the command 'n' it will send the command n; get gold to the mud. hope this helps |
|
|
|
Aarlot Adept
Joined: 30 Dec 2003 Posts: 226
|
Posted: Mon May 23, 2005 9:23 pm |
That's gonna infinite loop as you have it atm... since it's calling the alias within the alias.
#AL n {~n; get gold}
#AL s {~s; get gold}
#AL e {~e; get gold}
#AL w {~w; get gold}
This should work |
|
_________________ Everyone is entitled to their beliefs - until they die. Then only the truth matters. |
|
|
|
adamwalker Apprentice
Joined: 12 Mar 2005 Posts: 195
|
Posted: Mon May 23, 2005 10:12 pm simple! |
chears you two. I always think too complicated. that worked a treat.
|
|
|
|
|
|