<?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%3ATomeGetNoteworthyPersonsZoneData</id>
	<title>API:TomeGetNoteworthyPersonsZoneData - 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%3ATomeGetNoteworthyPersonsZoneData"/>
	<link rel="alternate" type="text/html" href="https://wiki.returnofreckoning.com/index.php?title=API:TomeGetNoteworthyPersonsZoneData&amp;action=history"/>
	<updated>2026-10-17T14:22:12Z</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:TomeGetNoteworthyPersonsZoneData&amp;diff=30810&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:TomeGetNoteworthyPersonsZoneData&amp;diff=30810&amp;oldid=prev"/>
		<updated>2026-10-16T19:50:31Z</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=Tome}}&lt;br /&gt;
Returns the Noteworthy Persons page of a zone: its text and the list of entries.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
zoneData = TomeGetNoteworthyPersonsZoneData(zoneId)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Arguments ==&lt;br /&gt;
;zoneId : &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; – Zone id, as in the &amp;lt;code&amp;gt;zones&amp;lt;/code&amp;gt; lists of [[API:TomeGetNoteworthyPersonsTOC|TomeGetNoteworthyPersonsTOC]].&lt;br /&gt;
&lt;br /&gt;
== Returns ==&lt;br /&gt;
;zoneData : &amp;lt;code&amp;gt;table&amp;lt;/code&amp;gt; – The zone&amp;#039;s data, or nothing if the zone id is not valid.&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;id&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; || Zone id.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;tierId&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; || Tier of the zone (1–4).&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;name&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;wstring&amp;lt;/code&amp;gt; || Zone name.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;text&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;wstring&amp;lt;/code&amp;gt; || Introductory text of the zone; may be empty.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;entries&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;table&amp;lt;/code&amp;gt; || Array of the zone&amp;#039;s entries (see below).&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Each entry table in &amp;lt;code&amp;gt;entries&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;id&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; || Entry id for [[API:TomeGetNoteworthyPersonsEntryData|TomeGetNoteworthyPersonsEntryData]]. &amp;lt;code&amp;gt;0&amp;lt;/code&amp;gt; if the entry is locked.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;unlockEventId&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; || Only for unlocked entries: id of the unlock event. The stock UI uses it for the &amp;quot;bragging rights&amp;quot; context menu.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;name&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;wstring&amp;lt;/code&amp;gt; || Entry name. Filled in for locked entries too.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;isUnlocked&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;boolean&amp;lt;/code&amp;gt; || Whether the player has unlocked the entry.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Details ==&lt;br /&gt;
* Entries meant for the other realm are left out. Entries for both realms are always listed.&lt;br /&gt;
* Locked entries are listed with &amp;lt;code&amp;gt;id = 0&amp;lt;/code&amp;gt; and no &amp;lt;code&amp;gt;unlockEventId&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Errors ==&lt;br /&gt;
These are written to the UI log, and the function returns nothing.&lt;br /&gt;
* &amp;lt;code&amp;gt;Error in function call &amp;#039;TomeGetNoteworthyPersonsZoneData&amp;#039;: %d is not a valid zone id.&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
From &amp;lt;code&amp;gt;ea_tomeofknowledge/source/tomewindow_noteworthypersons.lua&amp;lt;/code&amp;gt;:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
TomeWindow.NoteworthyPersons.curZoneData = TomeGetNoteworthyPersonsZoneData( zoneId )&lt;br /&gt;
if( TomeWindow.NoteworthyPersons.curZoneData == nil ) then        &lt;br /&gt;
    ...&lt;br /&gt;
    return&lt;br /&gt;
end&lt;br /&gt;
...&lt;br /&gt;
for entryIndex, entryData in ipairs( TomeWindow.NoteworthyPersons.curZoneData.entries ) do&lt;br /&gt;
    ...&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[API:TomeGetNoteworthyPersonsTOC|TomeGetNoteworthyPersonsTOC]]&lt;br /&gt;
* [[API:TomeGetNoteworthyPersonsEntryData|TomeGetNoteworthyPersonsEntryData]]&lt;br /&gt;
* [[API:TomeIsNoteworthyPersonsEntryUnlocked|TomeIsNoteworthyPersonsEntryUnlocked]]&lt;/div&gt;</summary>
		<author><name>Maintenance script</name></author>
	</entry>
</feed>