<?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=Doevent</id>
		<title>Doevent - 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=Doevent"/>
		<link rel="alternate" type="text/html" href="https://wiki.herc.ws/w/index.php?title=Doevent&amp;action=history"/>
		<updated>2026-05-05T12:10:28Z</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=Doevent&amp;diff=512&amp;oldid=prev</id>
		<title>Via: Created page with &quot;==Syntax== *'''doevent''' &lt;&quot;event label&quot;&gt;;  ==Description== This command invokes a script at given event label in an another NPC. The parameter ''event label'' has the for...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.herc.ws/w/index.php?title=Doevent&amp;diff=512&amp;oldid=prev"/>
				<updated>2013-06-23T00:03:00Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;==Syntax== *&amp;#039;&amp;#039;&amp;#039;doevent&amp;#039;&amp;#039;&amp;#039; &amp;lt;&amp;quot;event label&amp;quot;&amp;gt;;  ==Description== This command invokes a script at given event label in an another &lt;a href=&quot;/wiki/NPC&quot; title=&quot;NPC&quot;&gt;NPC&lt;/a&gt;. The parameter &amp;#039;&amp;#039;event label&amp;#039;&amp;#039; has the for...&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;
*'''doevent''' &amp;lt;&amp;quot;event label&amp;quot;&amp;gt;;&lt;br /&gt;
&lt;br /&gt;
==Description==&lt;br /&gt;
This command invokes a script at given event label in an another [[NPC]]. The parameter ''event label'' has the form &amp;quot;NpcName::OnLabel&amp;quot; and unlike in [[donpcevent]], it cannot target multiple NPCs by omitting the NPC name. It works much like a [[goto]] command into an another NPC. If there was an [[RID]] attached to the invoking script, it will be attached to the invoked script as well.&lt;br /&gt;
&lt;br /&gt;
This command is not used very much, because it is more limited than donpcevent and passing RID to another script is usually not required.&lt;br /&gt;
&lt;br /&gt;
==Examples==&lt;br /&gt;
 prontera,150,150,3	script	NPC1	53,{&lt;br /&gt;
     [[mes]] &amp;quot;Let's see, no one look, so let as deal.&amp;quot;;&lt;br /&gt;
     [[next]];&lt;br /&gt;
     doevent &amp;quot;NPC2::OnTalk&amp;quot;;&lt;br /&gt;
     mes &amp;quot;Damn, we were spotted, so no trade for you.&amp;quot;;&lt;br /&gt;
     [[close]];&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 prontera,152,150,5	script	NPC2	53,{&lt;br /&gt;
     // ...&lt;br /&gt;
 OnTalk:&lt;br /&gt;
     [[npctalk]] &amp;quot;Everyone look, &amp;quot;+[[strcharinfo]](0)+&amp;quot; tries to buy forbidden goods!&amp;quot;;&lt;br /&gt;
     [[end]];&lt;br /&gt;
 }&lt;br /&gt;
Every time a player talks to NPC1, NPC2 will scream into it's area, what the player is about to do. Since doevent passes the RID to NPC2, it can use strcharinfo to retrieve the player's name.&lt;br /&gt;
&lt;br /&gt;
[[Category:Script Command]]&lt;/div&gt;</summary>
		<author><name>Via</name></author>	</entry>

	</feed>