<?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=Playerattached</id>
		<title>Playerattached - 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=Playerattached"/>
		<link rel="alternate" type="text/html" href="https://wiki.herc.ws/w/index.php?title=Playerattached&amp;action=history"/>
		<updated>2026-05-03T20:01:45Z</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=Playerattached&amp;diff=387&amp;oldid=prev</id>
		<title>Via: Created page with &quot;==Syntax== *'''playerattached'''();  ==Description== Returns the RID of the player currently attached to the script. It will return 0 if none is attached, or if the attach...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.herc.ws/w/index.php?title=Playerattached&amp;diff=387&amp;oldid=prev"/>
				<updated>2013-06-09T05:27:13Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;==Syntax== *&amp;#039;&amp;#039;&amp;#039;playerattached&amp;#039;&amp;#039;&amp;#039;();  ==Description== Returns the &lt;a href=&quot;/wiki/RID&quot; title=&quot;RID&quot;&gt;RID&lt;/a&gt; of the player currently attached to the script. It will return 0 if none is attached, or if the attach...&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;
*'''playerattached'''();&lt;br /&gt;
&lt;br /&gt;
==Description==&lt;br /&gt;
Returns the [[RID]] of the player currently attached to the script. It will return 0 if none is attached, or if the attached player is no longer on the map server. It is wise to check for the attached player in script functions that deal with timers as there is no guarantee the player will still be logged on when the timer triggers.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
 [[mes]] &amp;quot;Please wait for a bit...&amp;quot;;&lt;br /&gt;
 [[sleep2]] 5000;&lt;br /&gt;
 &lt;br /&gt;
 [[if]](!playerattached())&lt;br /&gt;
 {&lt;br /&gt;
     [[announce]] &amp;quot;It appears, that the winner could not even wait 5 seconds for the prize..&amp;quot;,bc_all;&lt;br /&gt;
     [[end]];&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 [[getitem]] 512,100;  // Apple&lt;br /&gt;
 mes &amp;quot;Here you go, enjoy your prize.&amp;quot;;&lt;br /&gt;
 [[close]];&lt;br /&gt;
[[Category:Script_Command]]&lt;/div&gt;</summary>
		<author><name>Via</name></author>	</entry>

	</feed>