<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://oldwiki.eq2classic.com/index.php?action=history&amp;feed=atom&amp;title=LUA%3AGetItemType</id>
	<title>LUA:GetItemType - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://oldwiki.eq2classic.com/index.php?action=history&amp;feed=atom&amp;title=LUA%3AGetItemType"/>
	<link rel="alternate" type="text/html" href="https://oldwiki.eq2classic.com/index.php?title=LUA:GetItemType&amp;action=history"/>
	<updated>2026-07-13T14:58:40Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.31.3</generator>
	<entry>
		<id>https://oldwiki.eq2classic.com/index.php?title=LUA:GetItemType&amp;diff=5157&amp;oldid=prev</id>
		<title>Thefoof: Created page with &quot;= LUA Functions: GetItemType() = This returns the itemtype from an item pointer.   ==== Syntax ==== GetItemType(param1)   ==== Parameters ==== ; Required - ''param1'' (Item*) : '...&quot;</title>
		<link rel="alternate" type="text/html" href="https://oldwiki.eq2classic.com/index.php?title=LUA:GetItemType&amp;diff=5157&amp;oldid=prev"/>
		<updated>2013-11-25T01:37:25Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;= LUA Functions: GetItemType() = This returns the itemtype from an item pointer.   ==== Syntax ==== GetItemType(param1)   ==== Parameters ==== ; Required - &amp;#039;&amp;#039;param1&amp;#039;&amp;#039; (Item*) : &amp;#039;...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= LUA Functions: GetItemType() =&lt;br /&gt;
This returns the itemtype from an item pointer.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Syntax ====&lt;br /&gt;
GetItemType(param1)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Parameters ====&lt;br /&gt;
; Required - ''param1'' (Item*)&lt;br /&gt;
: ''param1'' is the item to check itemtype&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Usage ====&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
function hailed(NPC, Spawn)&lt;br /&gt;
    local item = GetEquippedItemBySlot(Spawn, 0)&lt;br /&gt;
    Say(NPC, GetItemType(item))&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When this spawn is hailed, the spawn will say the itemtype value of the item equipped in the player's 0 slot (primary weapon) in chat.&lt;/div&gt;</summary>
		<author><name>Thefoof</name></author>
		
	</entry>
</feed>