|
a157n Newbie
Joined: 02 Jun 2010 Posts: 2
|
Posted: Thu Jul 22, 2010 5:22 pm
Help w/ Respawn timer |
I was wondering if there's a way to create a respawn timer that shows a countdown to a zone respawn?
The way I have it right now I just use #alarm to echo a message when the zone is about to respawn. But what I'm looking for is something similiar to the tick timer. |
|
|
|
Rahab Wizard
Joined: 22 Mar 2007 Posts: 2320
|
Posted: Fri Jul 23, 2010 12:09 pm |
You can use #ALARM to send a message every minute, or whatever. You could have the #ALARM set a #STATUS, which will appear in the status bar above the command line, or #STWIN to have it appear in the status window.
|
|
|
|
a157n Newbie
Joined: 02 Jun 2010 Posts: 2
|
Posted: Fri Jul 23, 2010 7:44 pm |
If I'm understanding you right I should use.
#alarm "respawn" {+20} {#ECHO Fired.}
#st %alarm(respawn)
How do I get the status to refresh? Do i have to set a repeating alarm to refresh it every X seconds or minutes?
On a side note, is there a way to do #math with %time? |
|
|
|
Rahab Wizard
Joined: 22 Mar 2007 Posts: 2320
|
Posted: Mon Aug 02, 2010 1:44 pm |
Sorry, I was away on vacation for a week.
The status bar or status window will automatically refresh when the variable which it refers to changes.
You could use a repeating alarm, or create a new alarm each time.
Unfortunately, Cmud does not have any built-in functions for doing math with time values. |
|
|
|
|
|