<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://addonstudio.org/mw1/index.php?action=history&amp;feed=atom&amp;title=WoW%3AAPI_NoPlayTime</id>
	<title>WoW:API NoPlayTime - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://addonstudio.org/mw1/index.php?action=history&amp;feed=atom&amp;title=WoW%3AAPI_NoPlayTime"/>
	<link rel="alternate" type="text/html" href="https://addonstudio.org/mw1/index.php?title=WoW:API_NoPlayTime&amp;action=history"/>
	<updated>2026-06-02T00:04:31Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://addonstudio.org/mw1/index.php?title=WoW:API_NoPlayTime&amp;diff=17726&amp;oldid=prev</id>
		<title>Move page script: Move page script moved page API NoPlayTime to WoW:API NoPlayTime without leaving a redirect</title>
		<link rel="alternate" type="text/html" href="https://addonstudio.org/mw1/index.php?title=WoW:API_NoPlayTime&amp;diff=17726&amp;oldid=prev"/>
		<updated>2023-08-15T04:46:58Z</updated>

		<summary type="html">&lt;p&gt;Move page script moved page &lt;a href=&quot;/wiki/WoW:API_NoPlayTime&quot; title=&quot;WoW:API NoPlayTime&quot;&gt;API NoPlayTime&lt;/a&gt; to &lt;a href=&quot;/wiki/WoW:API_NoPlayTime&quot; title=&quot;WoW:API NoPlayTime&quot;&gt;API NoPlayTime&lt;/a&gt; without leaving a redirect&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 04:46, 15 August 2023&lt;/td&gt;
				&lt;/tr&gt;
&lt;!-- diff cache key addonstu_asmw2:diff::1.12:old-17725:rev-17726 --&gt;
&lt;/table&gt;</summary>
		<author><name>Move page script</name></author>
	</entry>
	<entry>
		<id>https://addonstudio.org/mw1/index.php?title=WoW:API_NoPlayTime&amp;diff=17725&amp;oldid=prev</id>
		<title>WoWWiki&gt;Vladinator: New page: {{wowapi}}   NoPlayTime();  ---- ;&#039;&#039;Arguments&#039;&#039;  : none  ---- ;&#039;&#039;Returns&#039;&#039;  : Returns true if you have played more than 5 hours and is in a tired state. This is a global account function t...</title>
		<link rel="alternate" type="text/html" href="https://addonstudio.org/mw1/index.php?title=WoW:API_NoPlayTime&amp;diff=17725&amp;oldid=prev"/>
		<updated>2007-12-29T21:29:41Z</updated>

		<summary type="html">&lt;p&gt;New page: {{wowapi}}   NoPlayTime();  ---- ;&amp;#039;&amp;#039;Arguments&amp;#039;&amp;#039;  : none  ---- ;&amp;#039;&amp;#039;Returns&amp;#039;&amp;#039;  : Returns true if you have played more than 5 hours and is in a tired state. This is a global account function t...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{wowapi}}&lt;br /&gt;
&lt;br /&gt;
This function is not in any way related to the rested state per character and resting in inns or cities. This function is to limit people from playing the game for too long, acting as a global account API that returns the same value no matter what character you logon.&lt;br /&gt;
&lt;br /&gt;
 NoPlayTime();&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
;&amp;#039;&amp;#039;Arguments&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
: none&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
;&amp;#039;&amp;#039;Returns&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
: Returns true if you have played more than 5 hours and are in a tired state. This is a global account state that affects all characters. Otherwise it returns nil if you are either only half affected of the tired state or not affected at all. This function is only working in continents like Asia where you have the rested system enabled, US and EU are not under such limitations.&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
;&amp;#039;&amp;#039;Example&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
Based on the official function, changed a bit to output the text in the chat rather than the tooltip on your avatar:&lt;br /&gt;
 if ( PartialPlayTime() ) then&lt;br /&gt;
    DEFAULT_CHAT_FRAME:AddMessage(format(PLAYTIME_TIRED, REQUIRED_REST_HOURS - floor(GetBillingTimeRested()/60)));&lt;br /&gt;
 elseif ( NoPlayTime() ) then&lt;br /&gt;
    DEFAULT_CHAT_FRAME:AddMessage(format(PLAYTIME_UNHEALTHY, REQUIRED_REST_HOURS - floor(GetBillingTimeRested()/60)));&lt;br /&gt;
 else&lt;br /&gt;
    DEFAULT_CHAT_FRAME:AddMessage(&amp;quot;You are not limited by PartialPlayTime nor NoPlayTime.&amp;quot;);&lt;br /&gt;
 end&lt;br /&gt;
&lt;br /&gt;
;&amp;#039;&amp;#039;Related&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
Take a look on the [[API PartialPlayTime|PartialPlayTime]]() API and the [[API GetBillingTimeRested|GetBillingTimeRested]]() API.&lt;/div&gt;</summary>
		<author><name>WoWWiki&gt;Vladinator</name></author>
	</entry>
</feed>