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
jtviper456
Novice


Joined: 17 Jan 2003
Posts: 37

PostPosted: 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 :)
Reply with quote
Tech
GURU


Joined: 18 Oct 2000
Posts: 2733
Location: Atlanta, USA

PostPosted: 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!
Reply with quote
jtviper456
Novice


Joined: 17 Jan 2003
Posts: 37

PostPosted: 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.
Reply with quote
Vitae
Enchanter


Joined: 17 Jun 2005
Posts: 673
Location: New York

PostPosted: 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.
_________________
http://www.Aardwolf.com
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: 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
Reply with quote
Vitae
Enchanter


Joined: 17 Jun 2005
Posts: 673
Location: New York

PostPosted: 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
_________________
http://www.Aardwolf.com
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