<?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=Disablenpc</id>
		<title>Disablenpc - 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=Disablenpc"/>
		<link rel="alternate" type="text/html" href="https://wiki.herc.ws/w/index.php?title=Disablenpc&amp;action=history"/>
		<updated>2026-05-01T11:33:41Z</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=Disablenpc&amp;diff=507&amp;oldid=prev</id>
		<title>Via: Created page with &quot;Category:Script_Command  ==Syntax== *disablenpc &quot;&lt;NPC object name&gt;&quot;; *'''enablenpc''' &quot;&lt;NPC object name&gt;&quot;;  ==Description==  These two commands will disable and en...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.herc.ws/w/index.php?title=Disablenpc&amp;diff=507&amp;oldid=prev"/>
				<updated>2013-06-22T23:54:59Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;&lt;a href=&quot;/wiki/Category:Script_Command&quot; title=&quot;Category:Script Command&quot;&gt;Category:Script_Command&lt;/a&gt;  ==Syntax== *&lt;a href=&quot;/wiki/Disablenpc&quot; title=&quot;Disablenpc&quot;&gt;disablenpc&lt;/a&gt; &amp;quot;&amp;lt;NPC object name&amp;gt;&amp;quot;; *&amp;#039;&amp;#039;&amp;#039;&lt;a href=&quot;/wiki/Enablenpc&quot; class=&quot;mw-redirect&quot; title=&quot;Enablenpc&quot;&gt;enablenpc&lt;/a&gt;&amp;#039;&amp;#039;&amp;#039; &amp;quot;&amp;lt;NPC object name&amp;gt;&amp;quot;;  ==Description==  These two commands will disable and en...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[Category:Script_Command]]&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
*[[disablenpc]] &amp;quot;&amp;lt;NPC object name&amp;gt;&amp;quot;;&lt;br /&gt;
*'''[[enablenpc]]''' &amp;quot;&amp;lt;NPC object name&amp;gt;&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
==Description==&lt;br /&gt;
&lt;br /&gt;
These two commands will disable and enable, respectively, an NPC object &lt;br /&gt;
specified by name. The disabled NPC will disappear from sight and will no longer &lt;br /&gt;
be triggerable in the normal way. It is not clear whether it will still be &lt;br /&gt;
accessible through '[[donpcevent]]' and other triggering commands, but it probably &lt;br /&gt;
will be. You can disable even warp NPCs if you know their object names, which is &lt;br /&gt;
an easy way to make a map only accessible through walking half the time. Then &lt;br /&gt;
you '[[enablenpc]]' them back.&lt;br /&gt;
&lt;br /&gt;
You can also use these commands to create the illusion of an NPC switching &lt;br /&gt;
between several locations, which is often better than actually moving the NPC -&lt;br /&gt;
create one NPC object with a visible and a hidden part to their name, make a few &lt;br /&gt;
copies, and then disable all except one.&lt;br /&gt;
&lt;br /&gt;
==Examples==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
prontera,100,100,4	script	Tim	81,{&lt;br /&gt;
	disablenpc &amp;quot;timsbrothertom&amp;quot;;&lt;br /&gt;
	mes &amp;quot;Hey you, I disabled my brother Tom by accident :S&amp;quot;;&lt;br /&gt;
	mes &amp;quot;Can you help me to enable him back?&amp;quot;;&lt;br /&gt;
	next;&lt;br /&gt;
	if(select(&amp;quot;Yes, sure!:No!&amp;quot;) == 2) close;&lt;br /&gt;
	enablenpc &amp;quot;timsbrothertom&amp;quot;;&lt;br /&gt;
	mes &amp;quot;Thank you very much! He is back now :)&amp;quot;;&lt;br /&gt;
	close;&lt;br /&gt;
}&lt;br /&gt;
prontera,102,100,4	script	Tom#1::timsbrothertom	81,{&lt;br /&gt;
	mes &amp;quot;Hi, I'm Tims brother!&amp;quot;;&lt;br /&gt;
	close;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Via</name></author>	</entry>

	</feed>