|
DeReP Adept
Joined: 14 Jun 2003 Posts: 222 Location: Chile
|
Posted: Fri Jul 11, 2003 4:28 am
Slowwalking Wait |
Hi, I need some help from anyone
I'm writing some triggers using pahts and I need to know if there's any way to make the script wait for the path to be completely walked and then execute next command
Eg:
#slow 3n2en2s
Some random command here
#slow 2sw3sn
If the trigger script is just as it is up there it will execute the first slow walking followed by the next random command and then the second slowwalking all at once, is there any way to make it wait for the first slow walk to be finished then continue parsing commands? |
|
|
|
galldron Novice
Joined: 08 Nov 2002 Posts: 34 Location: Elanthia
|
Posted: Fri Jul 11, 2003 5:51 am |
You could try using an Alarm command
#slow 3n2en2s
#alarm +15 {Random comands}
#alarm +16 {#slow 2sw3sn}
Where 15 is the amount of time needed to walk and 16 is the amount of time needed to complete the random commands |
|
|
|
Vijilante SubAdmin
Joined: 18 Nov 2001 Posts: 5182
|
Posted: Fri Jul 11, 2003 11:43 am |
You can use the special alias name of onwalkend to execute further scripts. This can be done most easily by use of a variable containing the name of the next alias to run and the #EXEC command.
|
|
|
|
DeReP Adept
Joined: 14 Jun 2003 Posts: 222 Location: Chile
|
Posted: Fri Jul 11, 2003 9:56 pm |
What version of zmud includes that alias?
|
|
|
|
Kjata GURU
Joined: 10 Oct 2000 Posts: 4379 Location: USA
|
Posted: Fri Jul 11, 2003 10:16 pm |
6.53+
By the way, the alias is not included. You just need to write an alias that has that particular name and zMUD will call it when it ends a speedwalk. |
|
|
|
DeReP Adept
Joined: 14 Jun 2003 Posts: 222 Location: Chile
|
Posted: Fri Jul 11, 2003 10:21 pm |
Oh ok, thanx a lot for the help
|
|
|
|
|
|