<?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%3ASetFactionID</id>
	<title>LUA:SetFactionID - 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%3ASetFactionID"/>
	<link rel="alternate" type="text/html" href="https://oldwiki.eq2classic.com/index.php?title=LUA:SetFactionID&amp;action=history"/>
	<updated>2026-07-12T19:10:10Z</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:SetFactionID&amp;diff=8477&amp;oldid=prev</id>
		<title>Cynnar: Created page with &quot;{{LUAFunction |Name = SetFactionID |Description = Sets the faction of a spawn to a faction id |Param1 = Spawn |Param1Desc = is the spawn to change the faction of |Param2 = int...&quot;</title>
		<link rel="alternate" type="text/html" href="https://oldwiki.eq2classic.com/index.php?title=LUA:SetFactionID&amp;diff=8477&amp;oldid=prev"/>
		<updated>2022-06-16T00:43:02Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{LUAFunction |Name = SetFactionID |Description = Sets the faction of a spawn to a faction id |Param1 = Spawn |Param1Desc = is the spawn to change the faction of |Param2 = int...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{LUAFunction&lt;br /&gt;
|Name = SetFactionID&lt;br /&gt;
|Description = Sets the faction of a spawn to a faction id&lt;br /&gt;
|Param1 = Spawn&lt;br /&gt;
|Param1Desc = is the spawn to change the faction of&lt;br /&gt;
|Param2 = int32&lt;br /&gt;
|Param2Desc = is the id of the faction we want to use&lt;br /&gt;
|Example =&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
function hailed(NPC, Player)&lt;br /&gt;
	SetFactionID(NPC, 1)&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|ExampleDesc = An NPC with this script will set it's faction to 1 when hailed.&lt;br /&gt;
|Notes&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>Cynnar</name></author>
		
	</entry>
</feed>