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
atraeyu
Novice


Joined: 29 Dec 2006
Posts: 41
Location: Chester, VT

PostPosted: Mon Jan 01, 2007 7:09 pm   

Client Heartbeat (Timed Actions)
 
The MUD I play on has a heartbeat ... it sends me set text every few seconds.

I'd like to make my own "client based heartbeat" that happens on semi-random intervals.

Basically, I'd like an alias to run automatically, every 15-30 seconds. Is that possible?
Reply with quote
Tech
GURU


Joined: 18 Oct 2000
Posts: 2733
Location: Atlanta, USA

PostPosted: Mon Jan 01, 2007 9:40 pm   
 
Code:

alias c_heartbeat {
   #ALARM {+%random(15,30)} {
      #RAISE heartBeat
      c_heartbeat
   }
}


It's untested, but that should do what you want.

It raises an EVENT so can have the alias execute when you login. Actually the easiest way would be to put in in the system defined event OnConnect
_________________
Asati di tempari!
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