|
Moorthon Newbie
Joined: 29 Sep 2005 Posts: 5
|
Posted: Thu Sep 29, 2005 9:00 am
Trigger Help |
On a MUD I am playing on, there is a system implemented that you have to wait a certain amount of time to either "Train" or "Learn" from NPCs or in certain situations. I need assistance making a trigger to automatically re-train after the time specified expires, it should be noted that the time isn't always the same.
Code: |
Pattern: You will be able to train again in 5 min 39 sec.
|
The above is the exact phrase given. Although the time varies.
I am unsure how to make a trigger that will not interfere with my normal triggers, #WAIT is the debil!, while I am waiting for the time to pass by.
Basically what I want is this.
- You will be able to train again in 5 min 39 sec.
- Add a timer for 5 seconds longer than my wait time. (5 min 44 sec)
- When timer expires: Save ; Train
Thanks in advance. |
|
|
|
Vitae Enchanter
Joined: 17 Jun 2005 Posts: 673 Location: New York
|
Posted: Thu Sep 29, 2005 2:01 pm |
#TRIGGER {You will be able to train again in (%d) min (%d) sec.} {#MATH wtfreak ((%1*60)+%2);#ALARM +%eval( @wtfreak) {Save;Train}}
#var wtfreak {} {}
#echo You will be able to train again in 0 min 5 sec.
5 seconds later:
Save
Train |
|
|
|
|
|