<?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=Bindatcmd</id>
		<title>Bindatcmd - 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=Bindatcmd"/>
		<link rel="alternate" type="text/html" href="https://wiki.herc.ws/w/index.php?title=Bindatcmd&amp;action=history"/>
		<updated>2026-05-01T14:13:19Z</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=Bindatcmd&amp;diff=341&amp;oldid=prev</id>
		<title>Via: Created page with &quot;== Syntax == *bindatcmd &quot;command&quot;,&quot;&lt;NPC object name&gt;::&lt;event label&gt;&quot;{,&lt;atcommand level&gt;,&lt;charcommand level&gt;};  == Description == This command will bind a NPC event label t...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.herc.ws/w/index.php?title=Bindatcmd&amp;diff=341&amp;oldid=prev"/>
				<updated>2013-05-29T12:21:32Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;== Syntax == *&lt;a href=&quot;/wiki/Bindatcmd&quot; title=&quot;Bindatcmd&quot;&gt;bindatcmd&lt;/a&gt; &amp;quot;command&amp;quot;,&amp;quot;&amp;lt;NPC object name&amp;gt;::&amp;lt;event label&amp;gt;&amp;quot;{,&amp;lt;atcommand level&amp;gt;,&amp;lt;charcommand level&amp;gt;};  == Description == This command will bind a NPC event label t...&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;
*[[bindatcmd]] &amp;quot;command&amp;quot;,&amp;quot;&amp;lt;NPC object name&amp;gt;::&amp;lt;event label&amp;gt;&amp;quot;{,&amp;lt;atcommand level&amp;gt;,&amp;lt;charcommand level&amp;gt;};&lt;br /&gt;
&lt;br /&gt;
== Description ==&lt;br /&gt;
This command will bind a NPC event label to an [[atcommand]]. Upon execution of the atcommand, the user will invoke the NPC event label. Each atcommand is only allowed one binding. If you rebind, it will override the original binding.&lt;br /&gt;
&lt;br /&gt;
The following variables are created upon execution:&lt;br /&gt;
* .@atcmd_command$: The atcmd used.&lt;br /&gt;
* .@atcmd_numparameters: The number of parameters defined.&lt;br /&gt;
* .@atcmd_parameters$[]: Array containing the given parameters, starting from an index of 0.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
When a user types the command &amp;quot;@test&amp;quot;, an angel effect will be shown.&lt;br /&gt;
&lt;br /&gt;
 -	[[Basic_Scripting#NPC|script]]	atcmd_example	-1,{&lt;br /&gt;
 [[OnInit]]:&lt;br /&gt;
 	[[bindatcmd]] &amp;quot;test&amp;quot;,[[strnpcinfo]](3)+&amp;quot;::OnAtcommand&amp;quot;;&lt;br /&gt;
 	[[end]];&lt;br /&gt;
 OnAtcommand:&lt;br /&gt;
 	[[specialeffect2]] 338;&lt;br /&gt;
 	end;&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
For another good usage example of this command, see [[changelook]].&lt;br /&gt;
&lt;br /&gt;
[[Category:Script_Command]]&lt;/div&gt;</summary>
		<author><name>Via</name></author>	</entry>

	</feed>