<?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%3AGetZoneTransitionPoints</id>
	<title>API:GetZoneTransitionPoints - 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%3AGetZoneTransitionPoints"/>
	<link rel="alternate" type="text/html" href="https://wiki.returnofreckoning.com/index.php?title=API:GetZoneTransitionPoints&amp;action=history"/>
	<updated>2026-10-17T04:19:00Z</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:GetZoneTransitionPoints&amp;diff=30494&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:GetZoneTransitionPoints&amp;diff=30494&amp;oldid=prev"/>
		<updated>2026-10-16T19:45:28Z</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 zone exits of the map currently shown in a map window.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
points = GetZoneTransitionPoints(mapDisplayName)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Arguments ==&lt;br /&gt;
;mapDisplayName : &amp;lt;code&amp;gt;string&amp;lt;/code&amp;gt; – Name of a MapDisplay window set up with [[API:CreateMapInstance|CreateMapInstance]].&lt;br /&gt;
&lt;br /&gt;
== Returns ==&lt;br /&gt;
;points : &amp;lt;code&amp;gt;table&amp;lt;/code&amp;gt; – Array of transition points, indexed from 1. Nothing is returned if the window is not a known map window or its map has no transition data.&lt;br /&gt;
&lt;br /&gt;
Each entry:&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;x&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; || Horizontal position on the map. The stock UI treats it as a value from 0 (west edge) to 65535 (east edge).&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;y&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; || Vertical position on the map, from 0 (north edge) to 65535 (south edge) in the stock UI.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;zone&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; || Id of the zone the exit leads to.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Details ==&lt;br /&gt;
* The data comes from the client&amp;#039;s map data for the map the window is showing.&lt;br /&gt;
* If the client&amp;#039;s map data is not loaded, the function returns nothing.&lt;br /&gt;
* Exactly one argument must be passed.&lt;br /&gt;
&lt;br /&gt;
== Errors ==&lt;br /&gt;
None besides the generic &amp;#039;&amp;#039;Invalid Parameters&amp;#039;&amp;#039; message when the argument is missing or not a string.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
From &amp;lt;code&amp;gt;default/ea_worldmapwindow/source/zoneview.lua&amp;lt;/code&amp;gt;:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
local mapDisplay = &amp;quot;EA_Window_WorldMapZoneViewMapDisplay&amp;quot;&lt;br /&gt;
local transitionPointData = GetZoneTransitionPoints( mapDisplay )&lt;br /&gt;
local mapDisplayWidth, mapDisplayHeight = WindowGetDimensions( mapDisplay )&lt;br /&gt;
&lt;br /&gt;
for pointIndex, transitionPoint in ipairs(transitionPointData)&lt;br /&gt;
do&lt;br /&gt;
    ...&lt;br /&gt;
    if (transitionPoint.x == 0) then&lt;br /&gt;
        templateName = &amp;quot;ZoneTransitionPointWest&amp;quot;&lt;br /&gt;
        anchorPoint = &amp;quot;topleft&amp;quot;&lt;br /&gt;
        anchorX = -12&lt;br /&gt;
        anchorY = (transitionPoint.y / 65535) * mapDisplayHeight&lt;br /&gt;
    ...&lt;br /&gt;
    WindowSetId(transPointWindow, transitionPoint.zone)&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[API:GetMapTextPoints|GetMapTextPoints]]&lt;br /&gt;
* [[API:CreateMapInstance|CreateMapInstance]]&lt;br /&gt;
* [[API:MapSetMapView|MapSetMapView]]&lt;/div&gt;</summary>
		<author><name>Maintenance script</name></author>
	</entry>
</feed>