Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Due to spam on this forum, all posts now need moderator approval.
Entire forum
➜ MUSHclient
➜ General
➜ Tick timer
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Poromenos
Greece (1,037 posts) Bio
|
Date
| Tue 27 May 2003 07:50 PM (UTC) |
Message
| Is it possible to make a tick timer plugin, or is tick a special signal sent from the mud? What exactly is a tick timer? It sounds useful :p
|
Vidi, Vici, Veni.
http://porocrom.poromenos.org/ Read it! | Top |
|
Posted by
| Meerclar
USA (733 posts) Bio
|
Date
| Reply #1 on Tue 27 May 2003 08:29 PM (UTC) |
Message
| A tick is an internal process by which a MU* measures time. Almost all events other than combat are measured in ticks. A tick is typically anywhere from 45 to 90 seconds long depending on codebase and in a few rare cases a randomized factor (DoT is the most notanble random tick). The most important factors for players that are tick controlled are regen, spell duration and zonelife. As for designing a tick timer, if your mud has a standard time between hp/mana regen pulses, set your timer for that length with a world.send message of some kind. Best way to find out what the duration is would be either a stop watch or by asking a reasonably friendly knowledgable immortal. |
Meerclar - Lord of Cats
Coder, Builder, and Tormenter of Mortals
Stormbringer: Rebirth
storm-bringer.org:4500
www.storm-bringer.org | Top |
|
Posted by
| Poromenos
Greece (1,037 posts) Bio
|
Date
| Reply #2 on Wed 28 May 2003 08:01 PM (UTC) |
Message
| Hmm, I thought so... I play on Realms of Despair, and I measured the tick, it seems to be random... One tick was 61 and one 82... Thanks for the info :) |
Vidi, Vici, Veni.
http://porocrom.poromenos.org/ Read it! | Top |
|
Posted by
| Xelethin
(2 posts) Bio
|
Date
| Reply #3 on Mon 02 Feb 2004 07:44 PM (UTC) |
Message
| The reason for this is because the codebase is most likely set to have tick timers at 45 seconds, but depending on the ammount of code is has to refresh it takes a little longer. I play on RedemptionMUD and have the same problem, but have setup timers and triggers at 45 seconds (the mid to high range for our ticks) and have no issues. | Top |
|
Posted by
| Nick Gammon
Australia (23,162 posts) Bio
Forum Administrator |
Date
| Reply #4 on Mon 02 Feb 2004 08:11 PM (UTC) |
Message
| Also, some MUDs deliberately randomise the length of ticks with a view to confusing clients that are trying to measure them.
So the best you can probably hope for is to measure the average or lower-end of the scale. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Slickricksc777
(5 posts) Bio
|
Date
| Reply #5 on Mon 09 Feb 2004 03:49 AM (UTC) |
Message
| the mud i play has like a 28 - 30 second tic...but it tells u how often it goes off
ex: (Advice:
and that would be the tic, but i would like to know how to set a trigger that will let me know 10 seconds before the tic is coming up
someone help me out with it? | Top |
|
Posted by
| Nick Gammon
Australia (23,162 posts) Bio
Forum Administrator |
Date
| Reply #6 on Mon 09 Feb 2004 06:20 AM (UTC) |
Message
| Well, it is hard to predict a future event, but what you could do is, if each tick is 30 seconds, make a trigger that matches the tick, and then does a DoAfterNote for 20 seconds. eg.
Match: (Advice:*
Send: world.DoAfterNote 20, "tick coming ..."
Send to: script
See:
http://www.gammon.com.au/scripts/doc.php?function=DoAfterNote |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Slickricksc777
(5 posts) Bio
|
Date
| Reply #7 on Mon 09 Feb 2004 08:03 AM (UTC) |
Message
| Hrmm, I'm still not gettin it, let me see if i can put it in a way thats more understandable
Ok im connected to my world and playing etc...
(Advice:
<30 seconds in between>
(Advice:
<30 seconds in between>
(Advice: and so on
I wanna know exactly what i have to put in where...like what i put down on triggers, what i put down on scripts
and after 20 seconds after the advice tic pops up, i want it to tell the group that the tic is coming in 10 seconds | Top |
|
Posted by
| Nick Gammon
Australia (23,162 posts) Bio
Forum Administrator |
Date
| Reply #8 on Mon 09 Feb 2004 08:18 PM (UTC) |
Message
| Copy and paste the stuff below into the trigger list window by clicking the "paste" button there ...
<triggers>
<trigger
custom_colour="2"
enabled="y"
match="*(Advice:*"
send_to="12"
sequence="100"
>
<send>world.DoAfterNote 20, "tick coming ..."
</send>
</trigger>
</triggers>
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Slickricksc777
(5 posts) Bio
|
Date
| Reply #9 on Tue 10 Feb 2004 01:43 AM (UTC) |
Message
| heh, sorry to bug u again but i guess thats what your'e here for
now that i got that done with, all i need to know is how to send a group tell of that to the wolrd/mud | Top |
|
Posted by
| Nick Gammon
Australia (23,162 posts) Bio
Forum Administrator |
Date
| Reply #10 on Tue 10 Feb 2004 02:56 AM (UTC) |
Message
| Edit the trigger, and in the "send" box add a new line (Ctrl+Enter):
DoAfter 20, "grouptell ---Tick coming---"
(Or whatever the exact syntax is for a group tell) |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| PJ
USA (48 posts) Bio
|
Date
| Reply #11 on Sun 02 May 2004 01:17 AM (UTC) |
Message
| Well, this seems like the best spot to post this..
The mud I play (Abandoned Realms) typically has between 28 and 31 second ticks and does not have something like "advice:" go off every tick.
However, it does have plenty of chances to reset a timer to keep it accurate, examples: "You rub the dirt out of your eyes." "Your adrenaline stops rushing." "The day is about to begin."
I want to add a sub on my vbscript so every time I have a trigger fire or I use a certain alias it will reset my counter.. Could someone show me basically what to add? I want the sub to be referred to as TCS and the counter as TCC. | Top |
|
Posted by
| Flannel
USA (1,230 posts) Bio
|
Date
| Reply #12 on Sun 02 May 2004 08:59 AM (UTC) |
Message
| Well, youve got your timer, named TCC, with a length of... umm, well, 28 to 31.
If you want like, a five second warning, then you want to do offset 5. (that means the timer 'fires' 5 seconds before the 28 to 31) that way, the timer stays on a 28-31 cycle, but you get your warning.
Then youd have a trigger to match on all the stuff, so a regexp with a bunch of pipes. (A|B|...|Z)
Then youd have the trigger send to script:
World.ResetTimer "TCC"
OR you have each of your triggers for that stuff to call a script, the sub would be as follows:
sub TCS (sName,sText,aryWld)
World.ResetTimer "TCC"
end sub
And that just goes in your script file, then you call it from all of your 'reset' triggers. |
~Flannel
Messiah of Rose
Eternity's Trials.
Clones are people two. | Top |
|
Posted by
| PJ
USA (48 posts) Bio
|
Date
| Reply #13 on Sun 02 May 2004 07:44 PM (UTC) |
Message
| World.ResetTimer "TCC" to script..
Thanks. | Top |
|
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
45,184 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top