<?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=PC_Search_Inventory</id>
		<title>PC Search Inventory - 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=PC_Search_Inventory"/>
		<link rel="alternate" type="text/html" href="https://wiki.herc.ws/w/index.php?title=PC_Search_Inventory&amp;action=history"/>
		<updated>2026-05-01T19:03:09Z</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=PC_Search_Inventory&amp;diff=65&amp;oldid=prev</id>
		<title>Mysterious: Created page with &quot;== Check for a Item on Inventory/Equiped ==  int pc_search_inventory(struct map_session_data *sd,int item_id)   pc_search_inventory(target,ItemID)  * Target ** sd = user ** bl...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.herc.ws/w/index.php?title=PC_Search_Inventory&amp;diff=65&amp;oldid=prev"/>
				<updated>2013-01-13T03:23:41Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;== Check for a Item on Inventory/Equiped ==  int pc_search_inventory(struct map_session_data *sd,int item_id)   pc_search_inventory(target,ItemID)  * Target ** sd = user ** bl...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Check for a Item on Inventory/Equiped ==&lt;br /&gt;
 int pc_search_inventory(struct map_session_data *sd,int item_id)&lt;br /&gt;
&lt;br /&gt;
 pc_search_inventory(target,ItemID)&lt;br /&gt;
&lt;br /&gt;
* Target&lt;br /&gt;
** sd = user&lt;br /&gt;
** bl = target&lt;br /&gt;
* ItemID&lt;br /&gt;
** db/item_db.txt&lt;br /&gt;
&lt;br /&gt;
Note:&lt;br /&gt;
Can be used like this:&lt;br /&gt;
 if(pc_search_inventory(sd,501)&amp;gt;=10)&lt;br /&gt;
This will check if the character has 10 or more Red Potions(501) on his inventory.&lt;br /&gt;
&lt;br /&gt;
It is important that you understand that *0* is a valid return value. Therefore, if you're searching for items it is best you do it similarly:  &lt;br /&gt;
 if ( (j = pc_search_inventory(sd, nameid)) &amp;gt;= 0 ) { etc; }&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Source_Functions]]&lt;/div&gt;</summary>
		<author><name>Mysterious</name></author>	</entry>

	</feed>