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
tejing
Wanderer


Joined: 21 Dec 2001
Posts: 59
Location: USA

PostPosted: 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
Reply with quote
nexela
Wizard


Joined: 15 Jan 2002
Posts: 1644
Location: USA

PostPosted: 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.
Reply with quote
tejing
Wanderer


Joined: 21 Dec 2001
Posts: 59
Location: USA

PostPosted: 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.
Reply with quote
tejing
Wanderer


Joined: 21 Dec 2001
Posts: 59
Location: USA

PostPosted: 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?
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