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
nutsnbolts
Apprentice


Joined: 01 May 2002
Posts: 188
Location: USA

PostPosted: Thu May 16, 2002 3:23 pm   

Need help with timer.
 
I have an exp counter that calculate totals my exp every mob kill and basically I want to tie this in with the timer. Basically what I have now is whenever I want to know how much xp I have gained anytime, I can group tell it. However, what I want to do is be able to set a time for whatever length say for every hour, stating how much xp I have gained every half hour. In addition, I would like to also be able to change the timer time to whatever I want, like every half hour, every hour or every two hours...etc..

Anyone can help.

Sup
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Thu May 16, 2002 4:24 pm   
 
You can use an alarm to do this. If you want to change the time period, you can do so in the editor.
#ALA {*:00:00} {#SAY {I have gained @exp in %eval(%ctime/60) minutes, that's %eval((@exp*1800/%ctime)xp per half-hour.}}

LightBulb
Vague questions get vague answers
Reply with quote
nutsnbolts
Apprentice


Joined: 01 May 2002
Posts: 188
Location: USA

PostPosted: Thu May 16, 2002 4:45 pm   
 
Where is the alarm?

I'm not too familiar with the alarm.

Sup
Reply with quote
nutsnbolts
Apprentice


Joined: 01 May 2002
Posts: 188
Location: USA

PostPosted: Thu May 16, 2002 6:30 pm   
 
Where is the alarm editor?

Sup
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Thu May 16, 2002 8:17 pm   
 
An alarm is just another type of trigger. You can type what LightBulb posted directly into the command line or, if you want to use the settings editor, create a new trigger and put as the pattern the *:00:00 and the commands is the other stuff, and then set the Type setting for the trigger to Alarm.

Kjata
Reply with quote
nutsnbolts
Apprentice


Joined: 01 May 2002
Posts: 188
Location: USA

PostPosted: Thu May 16, 2002 9:20 pm   
 
Anyway to put the *:00:00 into a variable. This way I don't have to the settings just to adjust the amount of xp time I want it to automatically say. Right now I have it set for a half hour. -30:00

I want to be able to, let's say,

setxptimer -60:00

Then when I start the xptimercounter, it would then start countdown from -60:00.

Basically, I want to be lazy and not have to go to the settings to do the change.

Sup
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Thu May 16, 2002 9:38 pm   
 
I'm inclined to think the answer is no, but the only way anyone will know for sure is to try it. Since it's your question, and since you are the one who doesn't want to bother using the editor, I'd suggest you be the one to try using a variable for the #ALARM time.

LightBulb
Vague questions get vague answers
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