<?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%3AKillSpawnByDistance</id>
	<title>LUA:KillSpawnByDistance - 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%3AKillSpawnByDistance"/>
	<link rel="alternate" type="text/html" href="https://oldwiki.eq2classic.com/index.php?title=LUA:KillSpawnByDistance&amp;action=history"/>
	<updated>2026-07-15T18:25:08Z</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:KillSpawnByDistance&amp;diff=5023&amp;oldid=prev</id>
		<title>Jabantiz: Created page with &quot;= LUA Functions: KillSpawnByDistance() = Kills all the spawns within the given distance of the given spawn   ==== Syntax ==== KillSpawnByDistance(param1, param2, [param3], [param...&quot;</title>
		<link rel="alternate" type="text/html" href="https://oldwiki.eq2classic.com/index.php?title=LUA:KillSpawnByDistance&amp;diff=5023&amp;oldid=prev"/>
		<updated>2013-09-12T03:55:35Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;= LUA Functions: KillSpawnByDistance() = Kills all the spawns within the given distance of the given spawn   ==== Syntax ==== KillSpawnByDistance(param1, param2, [param3], [param...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= LUA Functions: KillSpawnByDistance() =&lt;br /&gt;
Kills all the spawns within the given distance of the given spawn&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Syntax ====&lt;br /&gt;
KillSpawnByDistance(param1, param2, [param3], [param4])&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Parameters ====&lt;br /&gt;
; Required - ''param1'' (Spawn), ''param2'' (float)&lt;br /&gt;
: ''param1'' is the spawn killing all spawns around it&lt;br /&gt;
: ''param2'' is the distance&lt;br /&gt;
; Optional - ''param3'' (int8), ''param4'' (int8)&lt;br /&gt;
: ''param3'' kill players&lt;br /&gt;
: ''param4'' send packet&lt;br /&gt;
&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;
    KillSpawnByDistance(NPC, 25.5, 1, 1)&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When hailed the NPC will kill all spawns, including players, within 25.5 feet and send the packets&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
''param3'' and ''param4'' will default to false&lt;/div&gt;</summary>
		<author><name>Jabantiz</name></author>
		
	</entry>
</feed>