Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
daemoan.vermillious
Apprentice


Joined: 28 Feb 2009
Posts: 135
Location: Chico, Ca

PostPosted: Fri Nov 13, 2009 8:14 pm   

Idle Flag, Action Flag
 
is there a way to tap into the idle flag
the thing on the tabs tells you that theres new data in that window, does a lil green bubble me's thinks or
is there a way you can trigger idleness?
if no triggers fired "out to mud" mud, no actions inputed in, for 45 seconds do this?

#waitfor {zmud action} 45000 {quit} {sleep}
Reply with quote
daemoan.vermillious
Apprentice


Joined: 28 Feb 2009
Posts: 135
Location: Chico, Ca

PostPosted: Sat Nov 14, 2009 1:34 am   
 
#IF {No Class Activity\mud activity} {quit}
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Sat Nov 14, 2009 5:42 am   
 
You could make one.

#trigger {*} {#call %alarm(talmIdle,45000)}
#alarm "talmIdle" {-45} {#sendraw quit}
_________________
EDIT: I didn't like my old signature
Reply with quote
daemoan.vermillious
Apprentice


Joined: 28 Feb 2009
Posts: 135
Location: Chico, Ca

PostPosted: Sat Nov 14, 2009 5:47 am   
 
thanks matt, can you explain what this is doing for me so I can understand it for future use?

Ive never used %alarm or send or #sendraw before....
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Sat Nov 14, 2009 6:04 am   
 
The - represents the connection timer, so when you quit this alarm will stop working instead of continuously firing every 45 seconds. In your case, you want it to fire at 45 seconds.

#SENDRAW sends stuff directly to the game. It doesn't go through any parser, and it's not echoed back on the screen.

%alarm is used to report the time remaining until the named alarm fires again; it can also be used to assign a new value to count down from.
_________________
EDIT: I didn't like my old signature
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD 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