<?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%3AGetFactionAmount</id>
	<title>LUA:GetFactionAmount - 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%3AGetFactionAmount"/>
	<link rel="alternate" type="text/html" href="https://oldwiki.eq2classic.com/index.php?title=LUA:GetFactionAmount&amp;action=history"/>
	<updated>2026-07-13T11:25:30Z</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:GetFactionAmount&amp;diff=4709&amp;oldid=prev</id>
		<title>Jabantiz: Created page with &quot;= LUA Functions: GetFactionAmount() = Returns the current amount of faction the given spawn has with the given faction.   ==== Syntax ==== var = GetFactionAmount(param1, param2) ...&quot;</title>
		<link rel="alternate" type="text/html" href="https://oldwiki.eq2classic.com/index.php?title=LUA:GetFactionAmount&amp;diff=4709&amp;oldid=prev"/>
		<updated>2012-10-17T22:25:49Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;= LUA Functions: GetFactionAmount() = Returns the current amount of faction the given spawn has with the given faction.   ==== Syntax ==== var = GetFactionAmount(param1, param2) ...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= LUA Functions: GetFactionAmount() =&lt;br /&gt;
Returns the current amount of faction the given spawn has with the given faction.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Syntax ====&lt;br /&gt;
var = GetFactionAmount(param1, param2)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Parameters ====&lt;br /&gt;
; Required - ''param1'' (Spawn), ''param2'' (int32)&lt;br /&gt;
: ''param1'' is the player who we are checking for, must be a player&lt;br /&gt;
: ''param2'' is the faction id we are checking&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;
    -- Assume Test Faction has a faction id of 1&lt;br /&gt;
    Say(NPC, &amp;quot;Your faction with Test Faction is &amp;quot; .. GetFactionAmount(Spawn, 1) .. &amp;quot;!&amp;quot;)&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This makes the NPC respond to the player with their faction with Test Faction (faction id 1).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
Faction ID comes from the factions table in the DB.&lt;br /&gt;
&lt;br /&gt;
The Faction ID used in the example is fake and only used for the example.&lt;/div&gt;</summary>
		<author><name>Jabantiz</name></author>
		
	</entry>
</feed>