<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="https://wiki.ogregaming.com/eq2/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://wiki.ogregaming.com/eq2/index.php?action=history&amp;feed=atom&amp;title=OgreEvent%3AOnItemUse</id>
		<title>OgreEvent:OnItemUse - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.ogregaming.com/eq2/index.php?action=history&amp;feed=atom&amp;title=OgreEvent%3AOnItemUse"/>
		<link rel="alternate" type="text/html" href="https://wiki.ogregaming.com/eq2/index.php?title=OgreEvent:OnItemUse&amp;action=history"/>
		<updated>2026-04-08T18:52:03Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.23.13</generator>

	<entry>
		<id>https://wiki.ogregaming.com/eq2/index.php?title=OgreEvent:OnItemUse&amp;diff=8380&amp;oldid=prev</id>
		<title>Kannkor at 15:53, 9 June 2016</title>
		<link rel="alternate" type="text/html" href="https://wiki.ogregaming.com/eq2/index.php?title=OgreEvent:OnItemUse&amp;diff=8380&amp;oldid=prev"/>
				<updated>2016-06-09T15:53:45Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 15:53, 9 June 2016&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 4:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 4:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== To attach ==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== To attach ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;Event[&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;OgreEvent_OnAbilityCast&lt;/del&gt;]:AttachAtom[&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;OgreEvent_OnAbilityCast&lt;/del&gt;]&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;Event[&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;OgreEvent_OnItemUse&lt;/ins&gt;]:AttachAtom[&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;OgreEvent_OnItemUse&lt;/ins&gt;]&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== To use ==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== To use ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Kannkor</name></author>	</entry>

	<entry>
		<id>https://wiki.ogregaming.com/eq2/index.php?title=OgreEvent:OnItemUse&amp;diff=8215&amp;oldid=prev</id>
		<title>Kannkor: Created page with &quot;== OgreEvent_OnItemUse == When OgreBot uses an item, it will fire this event.   == To attach == &lt;pre&gt;Event[OgreEvent_OnAbilityCast]:AttachAtom[OgreEvent_OnAbilityCast]&lt;/pre&gt;...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.ogregaming.com/eq2/index.php?title=OgreEvent:OnItemUse&amp;diff=8215&amp;oldid=prev"/>
				<updated>2015-12-14T15:27:57Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;== OgreEvent_OnItemUse == When OgreBot uses an item, it will fire this event.   == To attach == &amp;lt;pre&amp;gt;Event[OgreEvent_OnAbilityCast]:AttachAtom[OgreEvent_OnAbilityCast]&amp;lt;/pre&amp;gt;...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== OgreEvent_OnItemUse ==&lt;br /&gt;
When OgreBot uses an item, it will fire this event.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== To attach ==&lt;br /&gt;
&amp;lt;pre&amp;gt;Event[OgreEvent_OnAbilityCast]:AttachAtom[OgreEvent_OnAbilityCast]&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== To use ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
atom OgreEvent_OnItemUse(string _Caster, string _ItemName, uint _OnPlayerID, string _OnPlayer)&lt;br /&gt;
{&lt;br /&gt;
	if ${_OnPlayer.Length} &amp;gt; 0 || ${_OnPlayerID} &amp;gt; 0&lt;br /&gt;
		echo ${Time}: ${_Caster} used item ${_ItemName} on ${_OnPlayer} ( ${_OnPlayerID} )&lt;br /&gt;
	else&lt;br /&gt;
		echo ${Time}: ${_Caster} used item ${_ItemName}&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Comments ==&lt;br /&gt;
There are times where some of the fields will be blank. Such items require no target, they won't have an 'OnPlayer' or 'OnPlayerID'.&lt;br /&gt;
&lt;br /&gt;
Items don't have an ID like abilities do, therefore there is no ItemID like there is for Abilities.&lt;/div&gt;</summary>
		<author><name>Kannkor</name></author>	</entry>

	</feed>