|
ceroddick Beginner
Joined: 23 Jul 2004 Posts: 13
|
Posted: Sat Jul 24, 2004 5:33 am
alias help |
Hello,
I am new to this and trying to make an alias very similuar to the one in your help file.
#AL kk {kill %1;kick %1}
Used with a parameter. If kk rabbit is entered, the commands kill rabbit and kick rabbit are sent to the MUD.
This works the 1st time I use the alias. However when I try and use the alias on a differnt mob it is hardcoded to the first mob I killed. Why is that? I want to be able to type kk rabit the first time and next tiem type kk beast. |
|
|
|
SethRizzen Beginner
Joined: 07 Apr 2003 Posts: 15 Location: USA
|
Posted: Sat Jul 24, 2004 6:46 am |
Try this:
#alias kk {kill %0;kick %0}
Should solve your problem. |
|
|
|
geniusclown Magician
Joined: 23 Apr 2003 Posts: 358 Location: USA
|
Posted: Sat Jul 24, 2004 3:33 pm |
%0 is undocumented, and use of it may generate undesired results. If you wish to use all parameters, then use the syntax %-1 instead of %0.
Are you actually using this exact alias, or did you adapt it for your use? If you've changed it, please quote what you have. There's no reason I can see that this alias would use the previous parameter instead of your new one. I used this exact alias for a test, and it worked exactly as expected. |
|
_________________ .geniusclown |
|
|
|
ceroddick Beginner
Joined: 23 Jul 2004 Posts: 13
|
Posted: Sun Jul 25, 2004 5:04 pm |
I fiqured it out. I was entering it in the alias edit commands. Once I entered the line in the command bar everythign worked ok.
|
|
|
|
|
|