|
Kiltedboy Newbie
Joined: 22 Aug 2006 Posts: 9
|
Posted: Wed May 13, 2009 8:10 pm
Disabiling an alias |
I have an alias that I use to set off a timed sequence of events. It works great, but I encounter one problem with it. If I want to do anything (say like move to another room) before the sequence is finished it will keep firing off, which becomes a huge hassle. My question is how do I disable the alias once the sequence has started (stop it from running and sending the rest of the commands to the mud)? I tried disabiling the class that the alias is in, but it doesn't work. The sequence of events just continues.
Thanks... |
|
|
|
Fang Xianfu GURU
Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: Thu May 14, 2009 1:08 am |
You can't. You could build checks at various points like #if (@abort) {#abort 1} and then change the @abort variable to 1 when you want it to stop. You could also divide your alias up into smaller chunks that call each other in a chain, and disable them when you want it to stop. It'll stop when it gets to the next break.
|
|
|
|
Kiltedboy Newbie
Joined: 22 Aug 2006 Posts: 9
|
Posted: Thu May 14, 2009 1:49 am |
Sounds good. I'll give it a shot.
Thanks for you help.. :) |
|
|
|
ralgith Sorcerer
Joined: 13 Jan 2006 Posts: 715
|
Posted: Fri May 15, 2009 2:04 am |
Another option if you use the movement Macros is to edit them (or better, to create new ones with the same keys and leave the default hidden ones alone) and add #ABORT 1 to them. I use that.
|
|
_________________ CrossOver: Windows Compatibility on Mac and Linux CMUD Advocate |
|
|
|
|
|