Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
ceroddick
Beginner


Joined: 23 Jul 2004
Posts: 13

PostPosted: 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.
Reply with quote
SethRizzen
Beginner


Joined: 07 Apr 2003
Posts: 15
Location: USA

PostPosted: Sat Jul 24, 2004 6:46 am   
 
Try this:

#alias kk {kill %0;kick %0}

Should solve your problem.
Reply with quote
geniusclown
Magician


Joined: 23 Apr 2003
Posts: 358
Location: USA

PostPosted: 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
Reply with quote
ceroddick
Beginner


Joined: 23 Jul 2004
Posts: 13

PostPosted: 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.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net