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


Joined: 13 Jul 2002
Posts: 51
Location: Malaysia

PostPosted: Wed Aug 28, 2002 3:47 pm   

A pinger + timer question.
 
I'm wondering how to get this pinger working??
I have a pinger, basically what it says is tell a mob ping until it pops.
But i want to add a timer to it, so i know how long it is before it repops.
Can anyone help me with this?

Cameth
Saweth
Fledeth my asseth offeth
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Wed Aug 28, 2002 5:26 pm   
 
To find out how long something takes, subtract the start time from the stop time.

Record your start time (when the mob dies, probably). You can probably use a trigger for this.
#MATH pingstart {(%time(hh) * 3600) + (%time(nn) * 60) + %time(ss)}
Record the stoptime and/or calculate elapsed time when the mob repops. Again, you'll probably want to use a trigger for this.
#MATH pingstop {(%time(hh) * 3600) + (%time(nn) * 60) + %time(ss)}
#MATH pingtime {(@pingstop - @pingstart + (3600 * 24)) (3600 * 24)}
#VAR pinghms {%eval(@pingtime / 3600) hrs, %eval((@pingtime 3600) / 60) mins, %eval(@pingtime 60) secs}

LightBulb
Senior Member
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