<?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%3ASpawnByLocationID</id>
	<title>LUA:SpawnByLocationID - 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%3ASpawnByLocationID"/>
	<link rel="alternate" type="text/html" href="https://oldwiki.eq2classic.com/index.php?title=LUA:SpawnByLocationID&amp;action=history"/>
	<updated>2026-07-14T01:20:25Z</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:SpawnByLocationID&amp;diff=4808&amp;oldid=prev</id>
		<title>Jabantiz: Created page with &quot;= LUA Functions: SpawnByLocationID() = Spawns a mob by location id  ==== Syntax ==== SpawnByLocationID(param1, param2)   ==== Parameters ==== ; Required - ''param1'' (Zone), ''pa...&quot;</title>
		<link rel="alternate" type="text/html" href="https://oldwiki.eq2classic.com/index.php?title=LUA:SpawnByLocationID&amp;diff=4808&amp;oldid=prev"/>
		<updated>2013-05-12T05:56:08Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;= LUA Functions: SpawnByLocationID() = Spawns a mob by location id  ==== Syntax ==== SpawnByLocationID(param1, param2)   ==== Parameters ==== ; Required - &amp;#039;&amp;#039;param1&amp;#039;&amp;#039; (Zone), &amp;#039;&amp;#039;pa...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= LUA Functions: SpawnByLocationID() =&lt;br /&gt;
Spawns a mob by location id&lt;br /&gt;
&lt;br /&gt;
==== Syntax ====&lt;br /&gt;
SpawnByLocationID(param1, param2)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Parameters ====&lt;br /&gt;
; Required - ''param1'' (Zone), ''param2'' (int32)&lt;br /&gt;
: ''param1'' is the zone to spawn the mob in&lt;br /&gt;
: ''param2'' is the location id&lt;br /&gt;
&lt;br /&gt;
=== Returns ===&lt;br /&gt;
;Spawn&lt;br /&gt;
: Pointer to the newly spawned mob&lt;br /&gt;
&lt;br /&gt;
==== Usage ====&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
function hailed(NPC, Spawn)&lt;br /&gt;
	zone = GetZone(Spawn)&lt;br /&gt;
	newSpawn = SpawnByLocationID(zone, 160012)&lt;br /&gt;
	if newSpawn ~= nil then&lt;br /&gt;
		Shout(newSpawn, &amp;quot;Test&amp;quot;)&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This spawn script will spawn a mob with the location id 160012, it then checks to see if the spawn was created and if so has the new spawn shout.&lt;br /&gt;
&lt;br /&gt;
=== Notes ===&lt;br /&gt;
This will spawn the mob no matter what their spawnpercentage is set to, it will also only spawn the first mob in the location list in the event the location contains multiple mobs.&lt;/div&gt;</summary>
		<author><name>Jabantiz</name></author>
		
	</entry>
</feed>