<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://oldwiki.eq2classic.com/index.php?action=history&amp;feed=atom&amp;title=LUA%3AGetNPC</id>
	<title>LUA:GetNPC - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://oldwiki.eq2classic.com/index.php?action=history&amp;feed=atom&amp;title=LUA%3AGetNPC"/>
	<link rel="alternate" type="text/html" href="https://oldwiki.eq2classic.com/index.php?title=LUA:GetNPC&amp;action=history"/>
	<updated>2026-07-15T03:35:06Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.31.3</generator>
	<entry>
		<id>https://oldwiki.eq2classic.com/index.php?title=LUA:GetNPC&amp;diff=537&amp;oldid=prev</id>
		<title>John Adams: New page: == LUA Functions: GetNPC(param, id) == Returns the nearest '''spawn id''' to ''param''. The parameter can be either the targeted player or the NPC.  [[Developer:LUA_Functions | Back to LUA...</title>
		<link rel="alternate" type="text/html" href="https://oldwiki.eq2classic.com/index.php?title=LUA:GetNPC&amp;diff=537&amp;oldid=prev"/>
		<updated>2009-04-02T00:53:25Z</updated>

		<summary type="html">&lt;p&gt;New page: == LUA Functions: GetNPC(param, id) == Returns the nearest &amp;#039;&amp;#039;&amp;#039;spawn id&amp;#039;&amp;#039;&amp;#039; to &amp;#039;&amp;#039;param&amp;#039;&amp;#039;. The parameter can be either the targeted player or the NPC.  [[Developer:LUA_Functions | Back to LUA...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== LUA Functions: GetNPC(param, id) ==&lt;br /&gt;
Returns the nearest '''spawn id''' to ''param''. The parameter can be either the targeted player or the NPC.&lt;br /&gt;
&lt;br /&gt;
[[Developer:LUA_Functions | Back to LUA Functions Index]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Syntax ===&lt;br /&gt;
var = GetNPC(param, id) &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Parameters ===&lt;br /&gt;
Required: ''param'' (int) - must be one of the vars in the function params, usually &amp;quot;NPC&amp;quot; or &amp;quot;Spawn&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Required: ''id'' (int) - must be a valid '''id''' in the ''spawn'' table&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Usage ===&lt;br /&gt;
Need a usage example&lt;/div&gt;</summary>
		<author><name>John Adams</name></author>
		
	</entry>
</feed>