<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to Getnameditem</title><link>https://sourceforge.net/p/hercules/wiki/Getnameditem/</link><description>Recent changes to Getnameditem</description><atom:link href="https://sourceforge.net/p/hercules/wiki/Getnameditem/feed" rel="self"/><language>en</language><lastBuildDate>Mon, 20 Feb 2023 05:01:35 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/hercules/wiki/Getnameditem/feed" rel="self" type="application/rss+xml"/><item><title>Getnameditem modified by Brynner</title><link>https://sourceforge.net/p/hercules/wiki/Getnameditem/</link><description>&lt;div class="markdown_content"&gt;&lt;h2 id="syntax"&gt;Syntax&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a class="alink" href="/p/hercules/wiki/Getnameditem/"&gt;[Getnameditem]&lt;/a&gt; &amp;lt;item id&amp;gt;,&amp;lt;character name|character ID&amp;gt;; &lt;/li&gt;
&lt;li&gt;&lt;a class="alink" href="/p/hercules/wiki/Getnameditem/"&gt;[Getnameditem]&lt;/a&gt; "&amp;lt;item name&amp;gt;",&amp;lt;character name|character ID&amp;gt;; &lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="description"&gt;Description&lt;/h2&gt;
&lt;p&gt;Create an item signed with the given character's name.&lt;/p&gt;
&lt;p&gt;The command returns 1 when the item is created successfully, or 0 if it fails.&lt;br/&gt;
Failure occurs when: - There is no player attached. - Item name or ID is not&lt;br/&gt;
valid. - The given character ID/name is offline.&lt;/p&gt;
&lt;h2 id="example"&gt;Example&lt;/h2&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;&lt;span class="c1"&gt;//This will give the currently attached player a Aaron's Apple (if Aaron &lt;/span&gt;
&lt;span class="c1"&gt;//is online).&lt;/span&gt;
&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="n"&gt;getnameditem&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s"&gt;"Apple"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="s"&gt;"Aaron"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="c1"&gt;//Self-explanatory (I hope).&lt;/span&gt;
&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="k"&gt;if&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;getnameitem&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;"Apple"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="s"&gt;"Aaron"&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
&lt;span class="w"&gt;        &lt;/span&gt;&lt;span class="n"&gt;mes&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s"&gt;"You now have a Aaron's Apple!"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;&lt;span&gt;[Category:Script_Command]&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Brynner</dc:creator><pubDate>Mon, 20 Feb 2023 05:01:35 -0000</pubDate><guid>https://sourceforge.netc5f5671b6c0c8df15f1cf22a5329dc5f93aeaa52</guid></item></channel></rss>