<?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%3AGetEquippedItemVisible</id>
	<title>API:GetEquippedItemVisible - 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%3AGetEquippedItemVisible"/>
	<link rel="alternate" type="text/html" href="https://wiki.returnofreckoning.com/index.php?title=API:GetEquippedItemVisible&amp;action=history"/>
	<updated>2026-10-18T13:12:02Z</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:GetEquippedItemVisible&amp;diff=30382&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:GetEquippedItemVisible&amp;diff=30382&amp;oldid=prev"/>
		<updated>2026-10-16T19:43:40Z</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=Item}}&lt;br /&gt;
Meant to return whether the player&amp;#039;s helm or cloak is shown. In the current client the slot numbers it checks are off by one. See [[#Details|Details]].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
visible = GetEquippedItemVisible(slotNumber)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Arguments ==&lt;br /&gt;
;slotNumber : &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; – Slot number. See Details for the values that actually work.&lt;br /&gt;
&lt;br /&gt;
== Returns ==&lt;br /&gt;
;visible : &amp;lt;code&amp;gt;boolean&amp;lt;/code&amp;gt; – &amp;lt;code&amp;gt;true&amp;lt;/code&amp;gt; if the item is shown.&lt;br /&gt;
&lt;br /&gt;
== Details ==&lt;br /&gt;
* The function only knows two values:&lt;br /&gt;
** 8 returns the helm visibility setting;&lt;br /&gt;
** 12 returns the cloak visibility setting.&lt;br /&gt;
: Any other value returns &amp;lt;code&amp;gt;true&amp;lt;/code&amp;gt;.&lt;br /&gt;
* &amp;lt;code&amp;gt;GameData.EquipSlots.HELM&amp;lt;/code&amp;gt; is 9 and &amp;lt;code&amp;gt;GameData.EquipSlots.BACK&amp;lt;/code&amp;gt; is 13, so calling it with those constants (as the stock UI does) always returns &amp;lt;code&amp;gt;true&amp;lt;/code&amp;gt;. Pass &amp;lt;code&amp;gt;GameData.EquipSlots.HELM - 1&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;GameData.EquipSlots.BACK - 1&amp;lt;/code&amp;gt; to read the real setting. [[API:SetEquippedItemVisible|SetEquippedItemVisible]] subtracts 1 itself and works with the constants.&lt;br /&gt;
* If there is no player object, or the client has no appearance data for the player, the function returns &amp;lt;code&amp;gt;true&amp;lt;/code&amp;gt;.&lt;br /&gt;
* If the argument check fails, the &amp;#039;&amp;#039;Invalid Parameters&amp;#039;&amp;#039; message names &amp;lt;code&amp;gt;SetEquippedItemVisible&amp;lt;/code&amp;gt;, not this function. The function still returns &amp;lt;code&amp;gt;true&amp;lt;/code&amp;gt; in that case.&lt;br /&gt;
* The function needs at least one argument and only reads the last one.&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 number.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
The stock call, from &amp;lt;code&amp;gt;default/ea_characterwindow/source/characterwindow.lua&amp;lt;/code&amp;gt; (both values are always &amp;lt;code&amp;gt;true&amp;lt;/code&amp;gt; here, see Details):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
local showHelm = GetEquippedItemVisible( GameData.EquipSlots.HELM )&lt;br /&gt;
local showCloak = GetEquippedItemVisible( GameData.EquipSlots.BACK )&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Reading the real helm setting:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
local showHelm = GetEquippedItemVisible( GameData.EquipSlots.HELM - 1 )&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[API:SetEquippedItemVisible|SetEquippedItemVisible]]&lt;br /&gt;
* [[API:GetEquipmentData|GetEquipmentData]]&lt;/div&gt;</summary>
		<author><name>Maintenance script</name></author>
	</entry>
</feed>