|
PHLN Adept
Joined: 30 Dec 2001 Posts: 220 Location: Canada
|
Posted: 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.
|
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: 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 |
|
|
|
PHLN Adept
Joined: 30 Dec 2001 Posts: 220 Location: Canada
|
Posted: Wed Oct 09, 2002 12:11 am |
May I ask what that "~" is for infront of aim?
|
|
|
|
Kjata GURU
Joined: 10 Oct 2000 Posts: 4379 Location: USA
|
Posted: 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 |
|
|
|
PHLN Adept
Joined: 30 Dec 2001 Posts: 220 Location: Canada
|
Posted: 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*
|
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Wed Oct 09, 2002 2:35 am |
Change the time on the alarm.
#ALA *2 {~aim @target}
LightBulb
Senior Member |
|
|
|
PHLN Adept
Joined: 30 Dec 2001 Posts: 220 Location: Canada
|
Posted: Wed Oct 09, 2002 2:59 am |
Thanks to both :-)
|
|
|
|
|
|