|
tejing Wanderer
Joined: 21 Dec 2001 Posts: 59 Location: USA
|
Posted: Thu May 13, 2004 3:46 am
trigger on any text actually sent to the mud |
how do i trigger on any text that is actually sent to the mud? i want to keep myself from logging off due to idle time.
I have 2 triggers right now:
#CLASS {keep} {enable}
#ALARM "keeptrig1" {-600} {look}
#ONINPUT "keeptrig2" {*} {#noop %alarm( keeptrig1, 600000)}
#CLASS 0
but zmud just suddenly quits when i type in a command after this script is running |
|
|
|
nexela Wizard
Joined: 15 Jan 2002 Posts: 1644 Location: USA
|
Posted: Thu May 13, 2004 4:54 pm |
It might have something to do with the -time alarm try this one instead
#ALARM "keeptrig1" {*600} {look}
#ONINPUT "keeptrig2" {*} {#CALL %alarm( keeptrig1, 600000)}
If that doesn't work you can always get rid of the #oninput trigger and use #CR as the command for the alarm and you will hardly ever notice it going off. |
|
|
|
tejing Wanderer
Joined: 21 Dec 2001 Posts: 59 Location: USA
|
Posted: Fri May 14, 2004 2:20 am |
ok, figured it out. i'm not sure if the * made a difference but i switched the oninput to newline instead of prompt, not sure how it got set to that. it works perfectly now.
|
|
|
|
tejing Wanderer
Joined: 21 Dec 2001 Posts: 59 Location: USA
|
Posted: Fri May 14, 2004 4:00 am |
now i have a new problem:
#CLASS {keep} {enable}
#ALARM "keeptrig1" {*750} {look}
#ONINPUT "keeptrig2" {^*$} {#noop %alarm( keeptrig1, %random( 450000, 750000))}
#CLASS 0
doesn't set to a random number, it always sets it to 750000. anybody know why? |
|
|
|
|
|