|
zorra Beginner
Joined: 13 Oct 2006 Posts: 10
|
Posted: Thu Jun 12, 2008 9:55 am
Is there a command to delete all the temporary triggers? |
I have a lot of temporary triggers in the game, but if I was disconnected and automatically login again, those stored triggers may cause trouble. So I want to delete them all in some cases. Is there any command related to this? Thanks a lot in advance.
|
|
|
|
Fang Xianfu GURU
Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: Thu Jun 12, 2008 10:50 am |
Depends what you mean by temporary. Assuming you're talking about the #temp command - no, there's not. You can give them all unique ids when you create them, though (say, temp_trig1 to temp_trig23523 or whatever) and then do:
#loop 23523 {#untrig %concat("temp_trig",%i)}
in an atconnect alias. |
|
|
|
zorra Beginner
Joined: 13 Oct 2006 Posts: 10
|
Posted: Tue Jun 17, 2008 8:30 am |
Thanks for the reply. I actually found the way to do that. I use #ALARM +2 to replace the #WAIT 2000, and when create the temporary triggers, I use a temp class to hold them, like #ALARM +2 {do something} {temptimer}. And when I detect something unusual happens, I can delete them by using #DELCLASS temptimer.
|
|
|
|
|
|