![](templates/Classic/images/spacer.gif) |
jtviper456 Novice
Joined: 17 Jan 2003 Posts: 37
|
Posted: Fri Aug 04, 2006 3:14 am
Deleting Temporary Triggers |
Is there any way to have a temporary trigger delete another temporary trigger? I'm making a script to bot while I have no legals on, but I'm stuck on getting it to check for legals :)
|
|
|
![](templates/Classic/images/spacer.gif) |
Tech GURU
![](images/avatars/172896370346230b24779a1.gif)
Joined: 18 Oct 2000 Posts: 2733 Location: Atlanta, USA
|
Posted: Fri Aug 04, 2006 3:32 am |
You shouldn't need to delete temporary triggers. They are deleted automatically after the are executed. See #TEMP for more information.
|
|
_________________ Asati di tempari! |
|
|
![](templates/Classic/images/spacer.gif) |
jtviper456 Novice
Joined: 17 Jan 2003 Posts: 37
|
Posted: Fri Aug 04, 2006 4:31 am Temp Triggers |
I also don't want to have a billion temporary triggers that don't set themselves off...I get these lines:
** Logged on outlaws:
** 80 Nowhere Illegal target [Tenno]
** 64 Eiseg Illegal target [Tenno]
** 44 Dammit Legal target [Hackers]
No other outlaws on.
so I create a temp. trigger from an alias, run the command 'outlaws' and if Dammit is on, disable the bot, if he is not, then when I run the alias again, the temporary trigger is recreated. It will keep recreating until executed once...I need to delete it if it's not executed. I could use the "No other outlaws on." as the pattern to delete it. |
|
|
![](templates/Classic/images/spacer.gif) |
Vitae Enchanter
![](images/avatars/6054352674a564a4da8af6.jpg)
Joined: 17 Jun 2005 Posts: 673 Location: New York
|
Posted: Fri Aug 04, 2006 12:56 pm |
dunno, but since you didn't put your code in all i can say is maybe you can work that out with the #abort command:
#IF (@Name="Zugg") {Command 1;#abort;Command 2};Command 3
Another contrived example. In this one, Command 3 is always executed. If @Name is "Zugg" then Command 1 is executed. Command 2 is never executed.
I guess, "Command 2" would be the trigger part? *shrug*
Side note: I coulda SWORN there was a deltrig command...couldn't find it in the search feature on this site. |
|
|
![](templates/Classic/images/spacer.gif) |
Kjata GURU
![](images/avatars/190086853941eff9946d4cf.jpg)
Joined: 10 Oct 2000 Posts: 4379 Location: USA
|
Posted: Fri Aug 04, 2006 1:47 pm |
Vitae wrote: |
Side note: I coulda SWORN there was a deltrig command...couldn't find it in the search feature on this site. |
It's called #UNTRIGGER. |
|
_________________ Kjata |
|
|
![](templates/Classic/images/spacer.gif) |
Vitae Enchanter
![](images/avatars/6054352674a564a4da8af6.jpg)
Joined: 17 Jun 2005 Posts: 673 Location: New York
|
Posted: Fri Aug 04, 2006 2:36 pm |
DOH
So, name the temp trigger, then if it sees what he wants to disable then #untrigger it then ![Wink](images/smiles/icon_wink.gif) |
|
|
![](templates/Classic/images/spacer.gif) |
|
|