<?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%3AGetZoneIDList</id>
	<title>API:GetZoneIDList - 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%3AGetZoneIDList"/>
	<link rel="alternate" type="text/html" href="https://wiki.returnofreckoning.com/index.php?title=API:GetZoneIDList&amp;action=history"/>
	<updated>2026-10-17T22:25:47Z</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:GetZoneIDList&amp;diff=30489&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:GetZoneIDList&amp;diff=30489&amp;oldid=prev"/>
		<updated>2026-10-16T19:45:23Z</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 ids of all zones in the client&amp;#039;s zone data.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
zoneIds = GetZoneIDList()&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;
;zoneIds : &amp;lt;code&amp;gt;table&amp;lt;/code&amp;gt; – Array of zone ids (&amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt;), indexed from 1.&lt;br /&gt;
&lt;br /&gt;
== Details ==&lt;br /&gt;
* The list is read from the client&amp;#039;s game data files, not from the server. Entries that have a particular flag set in that data are left out.&lt;br /&gt;
* Several ids can share a name, and some have an empty name. The stock UI removes duplicate names itself.&lt;br /&gt;
* If the Lua state is not available, the function returns nothing.&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_socialwindow/source/socialwindowtabsearch.lua&amp;lt;/code&amp;gt;:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
local zoneIDs = GetZoneIDList()&lt;br /&gt;
-- loop over all the zone names, some are blank, some are &amp;quot;Dangerous Territory&amp;quot;&lt;br /&gt;
for index, zoneID in ipairs( zoneIDs )&lt;br /&gt;
do&lt;br /&gt;
    -- get the zone name for this zoneID&lt;br /&gt;
    zoneName = GetZoneName(zoneID)&lt;br /&gt;
    ...&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[API:GetZonePairing|GetZonePairing]]&lt;br /&gt;
* [[API:GetZoneTier|GetZoneTier]]&lt;/div&gt;</summary>
		<author><name>Maintenance script</name></author>
	</entry>
</feed>