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
PHLN
Adept


Joined: 30 Dec 2001
Posts: 220
Location: Canada

PostPosted: Tue Oct 08, 2002 11:03 pm   

Aliase and looping trigger with auto stop...
 
I was wondering if anyone could help me make a aliase and trigger system that has a auto stop feature. What I want to do is to have the command "aim target (where target is what I will input at the time I want the auto loop aliase and trigger system to start)" continue to be inputted, until it see a certain line from the mud, then the command "clear" will be inputted. For example:, "aim nurse" will have zMUD keep having "aim nurse" enter send to the mud, until "You have perfect aim" line is return from the mud, then the "clear" command will be inputted.
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Tue Oct 08, 2002 11:10 pm   
 
#AL aim {#VAR target %1;#T+ aiming}
#CLASS aiming disable
#ALA *1 {~aim @target}
#TR {You have perfect aim} {#T- aiming;clear}
#CLASS 0


LightBulb
Senior Member
Reply with quote
PHLN
Adept


Joined: 30 Dec 2001
Posts: 220
Location: Canada

PostPosted: Wed Oct 09, 2002 12:11 am   
 
May I ask what that "~" is for infront of aim?
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Wed Oct 09, 2002 12:21 am   
 
There is a ~ in front of aim because you already have an alias called "aim". If you don't put the ~, zMUD will think you are trying to call the "aim" alias. When you put the ~, zMUD knows that what you want is to send the "aim" command to the MUD and not called the "aim" alias.

Kjata
Reply with quote
PHLN
Adept


Joined: 30 Dec 2001
Posts: 220
Location: Canada

PostPosted: Wed Oct 09, 2002 1:54 am   
 
and also, how would I go about delaying each aim for 2 seconds? It seem I spam it and flood the mud *blush*
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Wed Oct 09, 2002 2:35 am   
 
Change the time on the alarm.
#ALA *2 {~aim @target}

LightBulb
Senior Member
Reply with quote
PHLN
Adept


Joined: 30 Dec 2001
Posts: 220
Location: Canada

PostPosted: Wed Oct 09, 2002 2:59 am   
 
Thanks to both :-)
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