<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="https://wiki.herc.ws/w/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://wiki.herc.ws/w/index.php?action=history&amp;feed=atom&amp;title=Getnpctimer</id>
		<title>Getnpctimer - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.herc.ws/w/index.php?action=history&amp;feed=atom&amp;title=Getnpctimer"/>
		<link rel="alternate" type="text/html" href="https://wiki.herc.ws/w/index.php?title=Getnpctimer&amp;action=history"/>
		<updated>2026-05-05T08:13:49Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.21.11</generator>

	<entry>
		<id>https://wiki.herc.ws/w/index.php?title=Getnpctimer&amp;diff=419&amp;oldid=prev</id>
		<title>Via: Created page with &quot;== Syntax == * '''getnpctimer'''(&lt;type of information&gt;{,&quot;&lt;NPC name&gt;&quot;})  == Description == This script command is one out of a set of commands and functions that create and man...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.herc.ws/w/index.php?title=Getnpctimer&amp;diff=419&amp;oldid=prev"/>
				<updated>2013-06-09T07:59:14Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;== Syntax == * &amp;#039;&amp;#039;&amp;#039;getnpctimer&amp;#039;&amp;#039;&amp;#039;(&amp;lt;type of information&amp;gt;{,&amp;quot;&amp;lt;NPC name&amp;gt;&amp;quot;})  == Description == This script command is one out of a set of commands and functions that create and man...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Syntax ==&lt;br /&gt;
* '''getnpctimer'''(&amp;lt;type of information&amp;gt;{,&amp;quot;&amp;lt;NPC name&amp;gt;&amp;quot;})&lt;br /&gt;
&lt;br /&gt;
== Description ==&lt;br /&gt;
This script command is one out of a set of commands and functions that create and manage an NPC-based timer.&lt;br /&gt;
Specifically, 'getnpctimer' provides the timer information. See [[#Parameters]] below for the type of information returned.&lt;br /&gt;
The NPC name may be omitted, in which case the calling NPC is used as target.&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
Its parameter defines what type to return:&lt;br /&gt;
&lt;br /&gt;
 0 - Will return the current tick count of the timer.&lt;br /&gt;
 1 - Will return 1 if there are remaining &amp;quot;OnTimer&amp;lt;ticks&amp;gt;:&amp;quot; labels in the &lt;br /&gt;
     specified NPC waiting for execution.&lt;br /&gt;
 2 - Will return the number of times the timer has triggered and will trigger&lt;br /&gt;
     an &amp;quot;OnTimer&amp;lt;tick&amp;gt;:&amp;quot;  label in the specified NPC.&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
 [[mes]] &amp;quot;[Man]&amp;quot;;&lt;br /&gt;
 mes &amp;quot;I have been waiting &amp;quot;+(getnpctimer(0)/1000)+&amp;quot; seconds for you&amp;quot;;&lt;br /&gt;
 // we divide the timer returned by 1000 cause it will be displayed in &lt;br /&gt;
 // milliseconds otherwise&lt;br /&gt;
 [[close]];&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Script Command]]&lt;/div&gt;</summary>
		<author><name>Via</name></author>	</entry>

	</feed>