<?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%3AGetReleventAreaIndex</id>
	<title>API:GetReleventAreaIndex - 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%3AGetReleventAreaIndex"/>
	<link rel="alternate" type="text/html" href="https://wiki.returnofreckoning.com/index.php?title=API:GetReleventAreaIndex&amp;action=history"/>
	<updated>2026-10-17T04:19:21Z</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:GetReleventAreaIndex&amp;diff=30455&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:GetReleventAreaIndex&amp;diff=30455&amp;oldid=prev"/>
		<updated>2026-10-16T19:44:50Z</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=Game}}&lt;br /&gt;
Returns a map key for the first area the player is in that has map data.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
areaKey = GetReleventAreaIndex()&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;
;areaKey : &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; – &amp;lt;code&amp;gt;zoneId * 1000 + areaId&amp;lt;/code&amp;gt; for the first matching area, or nothing if none matches.&lt;br /&gt;
&lt;br /&gt;
== Details ==&lt;br /&gt;
* The name is spelled &amp;quot;Relevent&amp;quot; in the client.&lt;br /&gt;
* The client goes through the areas the player is currently in. For each one it builds the key &amp;lt;code&amp;gt;zoneId * 1000 + areaId&amp;lt;/code&amp;gt; from the player&amp;#039;s current zone, and returns the first key for which the map data has an entry.&lt;br /&gt;
* If the map data is not loaded, or no area matches, the function returns nothing.&lt;br /&gt;
* The stock UI never calls this function.&lt;br /&gt;
&lt;br /&gt;
== Errors ==&lt;br /&gt;
None.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
A minimal example built from the signature:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
local key = GetReleventAreaIndex()&lt;br /&gt;
if key then&lt;br /&gt;
    local zoneId = math.floor( key / 1000 )&lt;br /&gt;
    local areaId = key % 1000&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[API:GetAreaData|GetAreaData]]&lt;/div&gt;</summary>
		<author><name>Maintenance script</name></author>
	</entry>
</feed>