<?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%3AGetQuest</id>
	<title>LUA:GetQuest - 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%3AGetQuest"/>
	<link rel="alternate" type="text/html" href="https://oldwiki.eq2classic.com/index.php?title=LUA:GetQuest&amp;action=history"/>
	<updated>2026-07-14T21:23:39Z</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:GetQuest&amp;diff=4984&amp;oldid=prev</id>
		<title>Jabantiz: Created page with &quot;= LUA Functions: GetQuest() = Gets the quest with the given id for the given player   ==== Syntax ==== var = GetQuest(param1, param2)   ==== Parameters ==== ; Required - ''param1...&quot;</title>
		<link rel="alternate" type="text/html" href="https://oldwiki.eq2classic.com/index.php?title=LUA:GetQuest&amp;diff=4984&amp;oldid=prev"/>
		<updated>2013-09-12T00:14:54Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;= LUA Functions: GetQuest() = Gets the quest with the given id for the given player   ==== Syntax ==== var = GetQuest(param1, param2)   ==== Parameters ==== ; Required - &amp;#039;&amp;#039;param1...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= LUA Functions: GetQuest() =&lt;br /&gt;
Gets the quest with the given id for the given player&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Syntax ====&lt;br /&gt;
var = GetQuest(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 we want to check&lt;br /&gt;
: ''param2'' is the id of the quest&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;
    local quest = GetQuest(Spawn, 1234)&lt;br /&gt;
    if quest ~= nil then&lt;br /&gt;
        Say(NPC, &amp;quot;You have the quest&amp;quot;)&lt;br /&gt;
    else&lt;br /&gt;
        Say(NPC, &amp;quot;You do not have the quest&amp;quot;)&lt;br /&gt;
    end&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The NPC will respond if the player who hailed it has quest 1234&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
Returns a quest pointer&lt;/div&gt;</summary>
		<author><name>Jabantiz</name></author>
		
	</entry>
</feed>