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
darkspot
Apprentice


Joined: 29 Jul 2002
Posts: 105

PostPosted: Thu Mar 04, 2004 10:03 pm   

Alias output
 
#alias akick { #forall @chacterlist {:%i:%if(%2="",,#%2 ) kick %1} }
#var characterlist {joe|mike|lou}
Now this alias does almost what I want. When I use the alias

akick MOB 5

it outputs to EACH window in the characterlist

#5 kick MOB

which would be great, but that outputs it directly do the mud, is there any way to make it do the actually parsing on the #5... I also had a similair version of the alias...

#alias akick { #forall @chacterlist {%if(%2="",,#%2 ) :%i: kick %1} }
#var characterlist {joe|mike|lou}

It displayed instead on the window the alias was started on..
#5 :joe: kick MOB
#5 :mike: kick MOB
#5 :lou: kick MOB

either way, is there any way to make this parse out and actually perform the action based on zmuds scripting, instead of sending it straight to the mud?
thanks
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Fri Mar 05, 2004 12:22 am   
 
Use the #IF command instead of the %if function.
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