<?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%3ATomeGetOldWorldArmoryArmorSet</id>
	<title>API:TomeGetOldWorldArmoryArmorSet - 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%3ATomeGetOldWorldArmoryArmorSet"/>
	<link rel="alternate" type="text/html" href="https://wiki.returnofreckoning.com/index.php?title=API:TomeGetOldWorldArmoryArmorSet&amp;action=history"/>
	<updated>2026-10-17T13:13:20Z</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:TomeGetOldWorldArmoryArmorSet&amp;diff=30811&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:TomeGetOldWorldArmoryArmorSet&amp;diff=30811&amp;oldid=prev"/>
		<updated>2026-10-16T19:50:32Z</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 an armor set of the Tome of Knowledge Old World Armory with its pieces.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
setData = TomeGetOldWorldArmoryArmorSet(armorSetId)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Arguments ==&lt;br /&gt;
;armorSetId : &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; – Armor set id, as in [[API:TomeGetOldWorldArmoryTOC|TomeGetOldWorldArmoryTOC]]. Only the low 16 bits are used.&lt;br /&gt;
&lt;br /&gt;
== Returns ==&lt;br /&gt;
;setData : &amp;lt;code&amp;gt;table&amp;lt;/code&amp;gt; – The set&amp;#039;s data, or nothing if the id is invalid, the set is locked, or the player&amp;#039;s data is not available.&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; || Armor set id.&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; || Name of the set; empty if the name table is not loaded.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;pieces&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;table&amp;lt;/code&amp;gt; || Array of piece tables (see below).&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Each piece table in &amp;lt;code&amp;gt;pieces&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;itemData&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;table&amp;lt;/code&amp;gt; || [[API:GetInventoryItemData#Item data table|Item data table]] of the piece for the player. Missing when the client has no item data for the piece; the stock UI skips such pieces.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;unlocked&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;boolean&amp;lt;/code&amp;gt; || Whether the player has unlocked the piece.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Details ==&lt;br /&gt;
* The piece item can differ between characters; the client picks it using the player&amp;#039;s own data.&lt;br /&gt;
* Exactly one argument must be passed.&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;TomeGetOldWorldArmoryArmorSet&amp;#039;: %d is not a valid armor set id.&amp;lt;/code&amp;gt;&lt;br /&gt;
* &amp;lt;code&amp;gt;Error in function call &amp;#039;TomeGetOldWorldArmoryArmorSet&amp;#039;: %d is not unlocked.&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
From &amp;lt;code&amp;gt;default/ea_tomeofknowledge/source/tomewindow_oldworldarmory.lua&amp;lt;/code&amp;gt;:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
local setData = TomeGetOldWorldArmoryArmorSet( armorSetId )&lt;br /&gt;
if not setData&lt;br /&gt;
...&lt;br /&gt;
for index, itemInfo in ipairs( setData.pieces )&lt;br /&gt;
do&lt;br /&gt;
    if( not itemInfo.itemData )&lt;br /&gt;
    ...&lt;br /&gt;
    LabelSetText( fullItemWindowName..&amp;quot;Name&amp;quot;, itemInfo.itemData.name )&lt;br /&gt;
    ButtonSetPressedFlag( fullItemWindowName..&amp;quot;CompletedBtn&amp;quot;, itemInfo.unlocked )&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[API:TomeGetOldWorldArmoryTOC|TomeGetOldWorldArmoryTOC]]&lt;br /&gt;
* [[API:TomeGetOldWorldArmoryTierTOC|TomeGetOldWorldArmoryTierTOC]]&lt;/div&gt;</summary>
		<author><name>Maintenance script</name></author>
	</entry>
</feed>