<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.returnofreckoning.com/index.php?action=history&amp;feed=atom&amp;title=API%3AGetRRQData</id>
	<title>API:GetRRQData - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.returnofreckoning.com/index.php?action=history&amp;feed=atom&amp;title=API%3AGetRRQData"/>
	<link rel="alternate" type="text/html" href="https://wiki.returnofreckoning.com/index.php?title=API:GetRRQData&amp;action=history"/>
	<updated>2026-10-18T04:53:44Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.11</generator>
	<entry>
		<id>https://wiki.returnofreckoning.com/index.php?title=API:GetRRQData&amp;diff=30454&amp;oldid=prev</id>
		<title>Maintenance script: UI Lua API import (WAR 1.4.8)</title>
		<link rel="alternate" type="text/html" href="https://wiki.returnofreckoning.com/index.php?title=API:GetRRQData&amp;diff=30454&amp;oldid=prev"/>
		<updated>2026-10-16T19:44:49Z</updated>

		<summary type="html">&lt;p&gt;UI Lua API import (WAR 1.4.8)&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{LuaApi|group=RvR}}&lt;br /&gt;
Returns the progress of all realm resource quests (RRQs) the client knows about.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
rrqData = GetRRQData()&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Arguments ==&lt;br /&gt;
None.&lt;br /&gt;
&lt;br /&gt;
== Returns ==&lt;br /&gt;
;rrqData : &amp;lt;code&amp;gt;table&amp;lt;/code&amp;gt; – Table keyed by RRQ id (not an array), or nothing if the client has no RRQ data object.&lt;br /&gt;
&lt;br /&gt;
Each entry &amp;lt;code&amp;gt;rrqData[rrquestID]&amp;lt;/code&amp;gt;:&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Key !! Type !! Meaning&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;rrquestID&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; || The RRQ id (same as the key).&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;displayType&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; || Display style. The stock UI compares it with &amp;lt;code&amp;gt;GameData.RRQDisplayType&amp;lt;/code&amp;gt; values (for example &amp;lt;code&amp;gt;ERRQDISPLAY_LIVE_EVENT&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;ERRQDISPLAY_TOMB_KINGS&amp;lt;/code&amp;gt;).&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;paused&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;boolean&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;true&amp;lt;/code&amp;gt; when &amp;lt;code&amp;gt;minutesUntilUnpause&amp;lt;/code&amp;gt; is greater than 0.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;minutesUntilUnpause&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; || –&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;realmWithAccess&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; || Realm that has access. Read as a signed byte; the stock UI&amp;#039;s test data uses &amp;lt;code&amp;gt;-1&amp;lt;/code&amp;gt; for &amp;quot;none&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;realmProgress&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;table&amp;lt;/code&amp;gt; || Progress per realm, keyed by realm number. Each value is a table with &amp;lt;code&amp;gt;curVal&amp;lt;/code&amp;gt; (&amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt;) and &amp;lt;code&amp;gt;maxVal&amp;lt;/code&amp;gt; (&amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt;).&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Details ==&lt;br /&gt;
* &amp;lt;code&amp;gt;paused&amp;lt;/code&amp;gt; is not stored separately; it is derived from &amp;lt;code&amp;gt;minutesUntilUnpause&amp;lt;/code&amp;gt;.&lt;br /&gt;
* &amp;lt;code&amp;gt;realmProgress&amp;lt;/code&amp;gt; is keyed by realm value, so use &amp;lt;code&amp;gt;pairs&amp;lt;/code&amp;gt; or index it with &amp;lt;code&amp;gt;GameData.Realm.ORDER&amp;lt;/code&amp;gt; / &amp;lt;code&amp;gt;GameData.Realm.DESTRUCTION&amp;lt;/code&amp;gt;, as the stock UI does.&lt;br /&gt;
* A new table is built on every call. The stock UI calls this function from its &amp;lt;code&amp;gt;SystemData.Events.RRQ_LIST_UPDATED&amp;lt;/code&amp;gt; handler.&lt;br /&gt;
&lt;br /&gt;
== Errors ==&lt;br /&gt;
None.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
From &amp;lt;code&amp;gt;default/easystem_rrq/source/rrqprogressbar.lua&amp;lt;/code&amp;gt;:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
function RRQProgressBar.OnRRQsUpdated()&lt;br /&gt;
    RRQProgressBar.RealmResourceQuestData = GetRRQData()&lt;br /&gt;
&lt;br /&gt;
    for windowID, windowData in pairs( RRQProgressBarTracker )&lt;br /&gt;
    do&lt;br /&gt;
        RRQProgressBar.UpdateStatusWindow( windowID )&lt;br /&gt;
    end&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Reading one realm&amp;#039;s progress, from the same file:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
local rrqData = RRQProgressBar.RealmResourceQuestData[self.rrquestID]&lt;br /&gt;
...&lt;br /&gt;
StatusBarSetMaximumValue(self.windowName..&amp;quot;Bar&amp;quot;..iRealm..&amp;quot;Bar&amp;quot;, rrqData.realmProgress[iRealm].maxVal)&lt;br /&gt;
StatusBarSetCurrentValue(self.windowName..&amp;quot;Bar&amp;quot;..iRealm..&amp;quot;Bar&amp;quot;, rrqData.realmProgress[iRealm].curVal)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[API:EnableRRQUpdates|EnableRRQUpdates]]&lt;/div&gt;</summary>
		<author><name>Maintenance script</name></author>
	</entry>
</feed>