<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="https://wiki.herc.ws/w/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://wiki.herc.ws/w/index.php?action=history&amp;feed=atom&amp;title=Delitem</id>
		<title>Delitem - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.herc.ws/w/index.php?action=history&amp;feed=atom&amp;title=Delitem"/>
		<link rel="alternate" type="text/html" href="https://wiki.herc.ws/w/index.php?title=Delitem&amp;action=history"/>
		<updated>2026-05-03T17:40:49Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.21.11</generator>

	<entry>
		<id>https://wiki.herc.ws/w/index.php?title=Delitem&amp;diff=505&amp;oldid=prev</id>
		<title>Via: Created page with &quot;==Syntax== *'''delitem''' &lt;item id&gt;, &lt;amount&gt;[, &lt;account id&gt;]; *'''delitem''' &lt;&quot;item name&quot;&gt;, &lt;amount&gt;[, &lt;account id&gt;];  ==Description== This command will take a specified amou...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.herc.ws/w/index.php?title=Delitem&amp;diff=505&amp;oldid=prev"/>
				<updated>2013-06-22T12:50:23Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;==Syntax== *&amp;#039;&amp;#039;&amp;#039;delitem&amp;#039;&amp;#039;&amp;#039; &amp;lt;item id&amp;gt;, &amp;lt;amount&amp;gt;[, &amp;lt;account id&amp;gt;]; *&amp;#039;&amp;#039;&amp;#039;delitem&amp;#039;&amp;#039;&amp;#039; &amp;lt;&amp;quot;item name&amp;quot;&amp;gt;, &amp;lt;amount&amp;gt;[, &amp;lt;account id&amp;gt;];  ==Description== This command will take a specified amou...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Syntax==&lt;br /&gt;
*'''delitem''' &amp;lt;item id&amp;gt;, &amp;lt;amount&amp;gt;[, &amp;lt;account id&amp;gt;];&lt;br /&gt;
*'''delitem''' &amp;lt;&amp;quot;item name&amp;quot;&amp;gt;, &amp;lt;amount&amp;gt;[, &amp;lt;account id&amp;gt;];&lt;br /&gt;
&lt;br /&gt;
==Description==&lt;br /&gt;
This command will take a specified amount of given item from the [[RID#Usage|invoking]] character. The items are destroyed - there is no way an [[NPC]] can simply own and have an inventory of items, other than by destroying and recreating them when needed.&lt;br /&gt;
&lt;br /&gt;
Before items are deleted, the script should check, if the player has given amount of items. If there are not enough items, they are deleted anyway, but the script is terminated with an error then, to prevent exploits. If the specified item does not exist, nothing will be deleted, but the script is terminated with an error as well.&lt;br /&gt;
&lt;br /&gt;
If ''account id'' is given, the items are deleted from the character, which is currently online on that account instead. If the player is not online, the script terminates.&lt;br /&gt;
&lt;br /&gt;
==Examples==&lt;br /&gt;
 delitem 502, 10;  // Orange_Potion&lt;br /&gt;
Removes 10 Orange Poitions from currently attached character.&lt;br /&gt;
 delitem 617, 0, 2000110;  // Old_Violet_Box&lt;br /&gt;
Removes 1 Old Violet Box from an online player on account 2000110.&lt;br /&gt;
&lt;br /&gt;
[[Category:Script Command]]&lt;/div&gt;</summary>
		<author><name>Via</name></author>	</entry>

	</feed>