<?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%3AAddItem</id>
	<title>LUA:AddItem - 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%3AAddItem"/>
	<link rel="alternate" type="text/html" href="https://oldwiki.eq2classic.com/index.php?title=LUA:AddItem&amp;action=history"/>
	<updated>2026-07-14T08:13:02Z</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:AddItem&amp;diff=8399&amp;oldid=prev</id>
		<title>Cynnar: Created page with &quot;{{LUAFunction |Name = AddItem |Description = Is for adding a single item or stack of items. |Param1 = Spawn |Param1Desc = is the spawn to add the item to |Param2 = int32 |Para...&quot;</title>
		<link rel="alternate" type="text/html" href="https://oldwiki.eq2classic.com/index.php?title=LUA:AddItem&amp;diff=8399&amp;oldid=prev"/>
		<updated>2021-02-11T20:36:18Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{LUAFunction |Name = AddItem |Description = Is for adding a single item or stack of items. |Param1 = Spawn |Param1Desc = is the spawn to add the item to |Param2 = int32 |Para...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{LUAFunction&lt;br /&gt;
|Name = AddItem&lt;br /&gt;
|Description = Is for adding a single item or stack of items.&lt;br /&gt;
|Param1 = Spawn&lt;br /&gt;
|Param1Desc = is the spawn to add the item to&lt;br /&gt;
|Param2 = int32&lt;br /&gt;
|Param2Desc = is the item id&lt;br /&gt;
|OptionalParam1 = int16&lt;br /&gt;
|OptionalParam1Desc = is the quantity to be added&lt;br /&gt;
|Example =&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
function hailed(NPC, Spawn)&lt;br /&gt;
	AddItem(Spawn, 1234, 5)&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|ExampleDesc = an NPC with this function will give the player 5 of the item associated with id 1234&lt;br /&gt;
|Notes = Alternate to SummonItem as it does not allow quantity&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>Cynnar</name></author>
		
	</entry>
</feed>