<?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%3AMapGetPlayerLocationMaps</id>
	<title>API:MapGetPlayerLocationMaps - 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%3AMapGetPlayerLocationMaps"/>
	<link rel="alternate" type="text/html" href="https://wiki.returnofreckoning.com/index.php?title=API:MapGetPlayerLocationMaps&amp;action=history"/>
	<updated>2026-10-18T09:33:29Z</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:MapGetPlayerLocationMaps&amp;diff=30600&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:MapGetPlayerLocationMaps&amp;diff=30600&amp;oldid=prev"/>
		<updated>2026-10-16T19:47:10Z</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=Map}}&lt;br /&gt;
Returns the maps that contain the player&amp;#039;s current position, one per map level.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
maps = MapGetPlayerLocationMaps()&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;
;maps : &amp;lt;code&amp;gt;table&amp;lt;/code&amp;gt; – Map numbers keyed by map level. Levels for which no map is found are missing.&lt;br /&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;0&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; || World map: always &amp;lt;code&amp;gt;1&amp;lt;/code&amp;gt;.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;1&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; || Pairing map: the pairing of the current zone (as from [[API:GetZonePairing|GetZonePairing]]). Missing if the zone has no pairing.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;2&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; || Zone map: the current zone id. Missing if the player has no zone.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;3&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; || Area map: the first area map in the client&amp;#039;s map data that matches the player&amp;#039;s location. Its number is the zone id × 1000 plus a sub-id. Missing if there is none.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Details ==&lt;br /&gt;
* The keys are map levels; the stock UI indexes the table with &amp;lt;code&amp;gt;GameDefs.MapLevel&amp;lt;/code&amp;gt; values (&amp;lt;code&amp;gt;WORLD_MAP&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;PAIRING_MAP&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;ZONE_MAP&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;AREA_MAP&amp;lt;/code&amp;gt;).&lt;br /&gt;
* Key 0 is not reached by &amp;lt;code&amp;gt;ipairs&amp;lt;/code&amp;gt;. Index the table directly.&lt;br /&gt;
* If the player or the client&amp;#039;s map data is not available, an empty table is returned.&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/ea_worldmapwindow/source/worldmapwindow.lua&amp;lt;/code&amp;gt;:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
function EA_Window_WorldMap.ZoomIn()&lt;br /&gt;
    -- We&amp;#039;re zooming to the child map which we&amp;#039;re in.&lt;br /&gt;
    local playerMaps = MapGetPlayerLocationMaps()&lt;br /&gt;
    local newZoom = EA_Window_WorldMap.currentLevel+1&lt;br /&gt;
&lt;br /&gt;
    if (newZoom &amp;lt;= GameDefs.MapLevel.ZONE_MAP and playerMaps[newZoom] ~= nil) then&lt;br /&gt;
        EA_Window_WorldMap.SetMap(newZoom, playerMaps[newZoom])&lt;br /&gt;
    end&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[API:MapGetParentMap|MapGetParentMap]]&lt;br /&gt;
* [[API:MapGetChildMaps|MapGetChildMaps]]&lt;br /&gt;
* [[API:GetZonePairing|GetZonePairing]]&lt;/div&gt;</summary>
		<author><name>Maintenance script</name></author>
	</entry>
</feed>