<?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%3ASetQuestFlags</id>
	<title>LUA:SetQuestFlags - 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%3ASetQuestFlags"/>
	<link rel="alternate" type="text/html" href="https://oldwiki.eq2classic.com/index.php?title=LUA:SetQuestFlags&amp;action=history"/>
	<updated>2026-07-12T06:22:03Z</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:SetQuestFlags&amp;diff=5461&amp;oldid=prev</id>
		<title>Jabantiz: Created page with &quot;= LUA Functions: SetQuestFlags() = Sets the custom flags for the quest   ==== Syntax ==== SetQuestFlags(param1, param2)   ==== Parameters ==== ; Required - ''param1'' (Quest), ''...&quot;</title>
		<link rel="alternate" type="text/html" href="https://oldwiki.eq2classic.com/index.php?title=LUA:SetQuestFlags&amp;diff=5461&amp;oldid=prev"/>
		<updated>2014-07-13T01:48:51Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;= LUA Functions: SetQuestFlags() = Sets the custom flags for the quest   ==== Syntax ==== SetQuestFlags(param1, param2)   ==== Parameters ==== ; Required - &amp;#039;&amp;#039;param1&amp;#039;&amp;#039; (Quest), &amp;#039;&amp;#039;...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= LUA Functions: SetQuestFlags() =&lt;br /&gt;
Sets the custom flags for the quest&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Syntax ====&lt;br /&gt;
SetQuestFlags(param1, param2)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Parameters ====&lt;br /&gt;
; Required - ''param1'' (Quest), ''param2'' (int32)&lt;br /&gt;
: ''param1'' is the quest who's flags we want to set&lt;br /&gt;
: ''param2'' is what you want to set the flags to&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Usage ====&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
function another_random_quest_step(Quest, QuestGiver, Player)&lt;br /&gt;
    local flags = GetQuestFlags(Quest)&lt;br /&gt;
    flags = flags + 2&lt;br /&gt;
    SetQuestFlags(Quest, flags)&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will add a value to the current quest flags&lt;br /&gt;
&lt;br /&gt;
==== Notes ====&lt;br /&gt;
Custom quest flags are meant to be used as a bitmask but any int32 can be used&lt;br /&gt;
&lt;br /&gt;
These flags will be saved for each character in the `character_quests` table&lt;/div&gt;</summary>
		<author><name>Jabantiz</name></author>
		
	</entry>
</feed>