<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.kolmafia.us/index.php?action=history&amp;feed=atom&amp;title=Mall_prices</id>
	<title>Mall prices - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.kolmafia.us/index.php?action=history&amp;feed=atom&amp;title=Mall_prices"/>
	<link rel="alternate" type="text/html" href="https://wiki.kolmafia.us/index.php?title=Mall_prices&amp;action=history"/>
	<updated>2026-04-30T17:00:40Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>https://wiki.kolmafia.us/index.php?title=Mall_prices&amp;diff=8930&amp;oldid=prev</id>
		<title>Philmasterplus: Add SeeAlso template, several corrections</title>
		<link rel="alternate" type="text/html" href="https://wiki.kolmafia.us/index.php?title=Mall_prices&amp;diff=8930&amp;oldid=prev"/>
		<updated>2020-12-31T13:55:30Z</updated>

		<summary type="html">&lt;p&gt;Add SeeAlso template, several corrections&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 13:55, 31 December 2020&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l17&quot;&gt;Line 17:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 17:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|function2.param1.description=Items to search for. This can be constructed using the &amp;lt;code&amp;gt;$items[]&amp;lt;/code&amp;gt; plural-typed constant.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|function2.param1.description=Items to search for. This can be constructed using the &amp;lt;code&amp;gt;$items[]&amp;lt;/code&amp;gt; plural-typed constant.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|description=&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|description=&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; 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;The &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;set&lt;/del&gt;-based version can be used to &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;search for multiple &lt;/del&gt;items &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;at once, so that calling {{f|mall_price}} later on individual items won&#039;t trigger &lt;/del&gt;server requests. &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;This can be useful when your script needs to retrieve &lt;/del&gt;the &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;price &lt;/del&gt;of &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;multiple &lt;/del&gt;items, &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;but do not want the search results to be interleaved with the script&#039;s output&lt;/del&gt;.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; 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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;p&amp;gt;&lt;/ins&gt;The &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;category&lt;/ins&gt;-based version can be used to &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;update the price of a whole category of &lt;/ins&gt;items &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;while making a minimal number of &lt;/ins&gt;server requests. &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Depending on &lt;/ins&gt;the &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;number &lt;/ins&gt;of items &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;in the category&lt;/ins&gt;, &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;this will make anywhere between 20 and 80 requests&lt;/ins&gt;.&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/p&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; 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;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;The category-based version can be used to update the price of a whole category of items while making a minimal number of server requests. Depending on the number of items in the category, this will make anywhere between 20 and 80 requests.&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; 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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;p&amp;gt;&lt;/ins&gt;The category search uses KoL&#039;s mall item categories. Valid category values &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;are&lt;/ins&gt;:&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/p&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; 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; &lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; 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;The category search uses KoL&#039;s mall item categories. Valid category values &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;include&lt;/del&gt;:&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;lt;code&amp;gt;allitems&amp;lt;/code&amp;gt;: All items (&amp;#039;&amp;#039;&amp;#039;WARNING: This will take very long&amp;#039;&amp;#039;&amp;#039;)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;lt;code&amp;gt;allitems&amp;lt;/code&amp;gt;: All items (&amp;#039;&amp;#039;&amp;#039;WARNING: This will take very long&amp;#039;&amp;#039;&amp;#039;)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l43&quot;&gt;Line 43:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 41:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;lt;code&amp;gt;new&amp;lt;/code&amp;gt; (New Stuff)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;lt;code&amp;gt;new&amp;lt;/code&amp;gt; (New Stuff)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; 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;{{pspan|tiers}} can be any string that contains a consumable tier name. Valid tier names are: &amp;lt;code&amp;gt;crappy&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;decent&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;good&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;awesome&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;EPIC&amp;lt;/code&amp;gt;. Tier names are are case-sensitive.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; 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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;p&amp;gt;&lt;/ins&gt;{{pspan|tiers}} can be any string that contains a consumable tier name. Valid tier names are: &amp;lt;code&amp;gt;crappy&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;decent&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;good&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;awesome&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;EPIC&amp;lt;/code&amp;gt;. Tier names are are case-sensitive.&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/p&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; 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; &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; 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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;p&amp;gt;KoLmafia does not care what separator you use, or if you use a separator at all. For example, both &amp;lt;code&amp;gt;&quot;crappy, decent, good&quot;&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;&quot;crappydecentgood&quot;&amp;lt;/code&amp;gt; will search for crappy/decent/good consumables. However, we recommend using proper separators, as it will make your life easier.&amp;lt;/p&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; 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;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;KoLmafia does not care what separator you use, or if you use a separator at all. For example, both &lt;/del&gt;&amp;lt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;code&lt;/del&gt;&amp;gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&quot;crappy&lt;/del&gt;, &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;decent&lt;/del&gt;, &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;good&quot;&lt;/del&gt;&amp;lt;/&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;code&lt;/del&gt;&amp;gt; &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;and &amp;lt;code&amp;gt;&quot;crappydecentbooze&quot;&amp;lt;/code&amp;gt; will search for crappy/decent/good consumables. However, we recommend using proper separators, as it will make your life easier.&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; 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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;p&lt;/ins&gt;&amp;gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;The set-based version can be used to search for multiple items at once&lt;/ins&gt;, &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;so that calling {{f|mall_price}} later on individual items won&#039;t trigger server requests. This can be useful when your script needs to retrieve the price of multiple items&lt;/ins&gt;, &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;but do not want the search results to be interleaved with the script&#039;s output.&lt;/ins&gt;&amp;lt;/&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;p&lt;/ins&gt;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; 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;The category-based search was added in [https://kolmafia.us/threads/18892-add-mall_prices-category-to-bulk-calculate-mall-prices-for-entire-categoriesu.23173/ r18892], and the optional {{pspan|tiers}} parameter was added in [https://kolmafia.us/threads/18893-add-two-argument-form-of-mall_prices-int-mall_prices-string-category-strin.23175/ r18893]. The item set search variant was added in [https://kolmafia.us/threads/18937-new-ash-function-int-mall_prices-boolean-item-to-look-up-the-curren.23234/ r18937].&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; 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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;p&amp;gt;&lt;/ins&gt;The category-based search was added in [https://kolmafia.us/threads/18892-add-mall_prices-category-to-bulk-calculate-mall-prices-for-entire-categoriesu.23173/ r18892], and the optional {{pspan|tiers}} parameter was added in [https://kolmafia.us/threads/18893-add-two-argument-form-of-mall_prices-int-mall_prices-string-category-strin.23175/ r18893]. The item set search variant was added in [https://kolmafia.us/threads/18937-new-ash-function-int-mall_prices-boolean-item-to-look-up-the-curren.23234/ r18937].&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/p&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|code1={{CodeSample&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|code1={{CodeSample&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   |title=Code Samples&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   |title=Code Samples&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l197&quot;&gt;Line 197:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 197:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   |moreinfo=&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   |moreinfo=&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}}&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; 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;|see_also={{SeeAlso&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;|&lt;/del&gt;}}&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; 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;|see_also={{SeeAlso&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;/Mall Prices&lt;/ins&gt;}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|cli_equiv=&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|cli_equiv=&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|more_info=&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|more_info=&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Philmasterplus</name></author>
	</entry>
	<entry>
		<id>https://wiki.kolmafia.us/index.php?title=Mall_prices&amp;diff=8927&amp;oldid=prev</id>
		<title>Philmasterplus: Created page with &quot;&lt;onlyinclude&gt;{{{{{format|Function2}}} |name=mall_prices |function1.return_type=int |function1.description=Updates the mall price for a category of items, and returns the numbe...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.kolmafia.us/index.php?title=Mall_prices&amp;diff=8927&amp;oldid=prev"/>
		<updated>2020-12-31T13:44:33Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;lt;onlyinclude&amp;gt;{{{{{format|Function2}}} |name=mall_prices |function1.return_type=int |function1.description=Updates the mall price for a category of items, and returns the numbe...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;onlyinclude&amp;gt;{{{{{format|Function2}}}&lt;br /&gt;
|name=mall_prices&lt;br /&gt;
|function1.return_type=int&lt;br /&gt;
|function1.description=Updates the mall price for a category of items, and returns the number of items searched.&lt;br /&gt;
|function1.param1=category&lt;br /&gt;
|function1.param1.type=string&lt;br /&gt;
|function1.param1.description=Item category (must be exact match)&lt;br /&gt;
|function1.param2=tiers&lt;br /&gt;
|function1.param2.type=string&lt;br /&gt;
|function1.param2.optional=yes&lt;br /&gt;
|function1.param2.default=&amp;quot;&amp;quot;&lt;br /&gt;
|function1.param2.description=String containing item quality tiers. Only relevent if {{pspan|category}} is a consumable category (&amp;lt;code&amp;gt;food&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;booze&amp;lt;/code&amp;gt;, or &amp;lt;code&amp;gt;othercon&amp;lt;/code&amp;gt;)&lt;br /&gt;
|function2.return_type=int&lt;br /&gt;
|function2.description=Updates the mall price for a set of items, and returns the number of items searched.&lt;br /&gt;
|function2.param1=items&lt;br /&gt;
|function2.param1.type={{type|boolean}} {{opt|{{type|item}}}}&lt;br /&gt;
|function2.param1.description=Items to search for. This can be constructed using the &amp;lt;code&amp;gt;$items[]&amp;lt;/code&amp;gt; plural-typed constant.&lt;br /&gt;
|description=&lt;br /&gt;
The set-based version can be used to search for multiple items at once, so that calling {{f|mall_price}} later on individual items won&amp;#039;t trigger server requests. This can be useful when your script needs to retrieve the price of multiple items, but do not want the search results to be interleaved with the script&amp;#039;s output.&lt;br /&gt;
&lt;br /&gt;
The category-based version can be used to update the price of a whole category of items while making a minimal number of server requests. Depending on the number of items in the category, this will make anywhere between 20 and 80 requests.&lt;br /&gt;
&lt;br /&gt;
The category search uses KoL&amp;#039;s mall item categories. Valid category values include:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;allitems&amp;lt;/code&amp;gt;: All items (&amp;#039;&amp;#039;&amp;#039;WARNING: This will take very long&amp;#039;&amp;#039;&amp;#039;)&lt;br /&gt;
* &amp;lt;code&amp;gt;food&amp;lt;/code&amp;gt;: Food and Beverages&lt;br /&gt;
* &amp;lt;code&amp;gt;booze&amp;lt;/code&amp;gt;&lt;br /&gt;
* &amp;lt;code&amp;gt;othercon&amp;lt;/code&amp;gt; (Other consumables)&lt;br /&gt;
* &amp;lt;code&amp;gt;weapons&amp;lt;/code&amp;gt;&lt;br /&gt;
* &amp;lt;code&amp;gt;hats&amp;lt;/code&amp;gt;&lt;br /&gt;
* &amp;lt;code&amp;gt;shirts&amp;lt;/code&amp;gt;&lt;br /&gt;
* &amp;lt;code&amp;gt;container&amp;lt;/code&amp;gt; (Back items)&lt;br /&gt;
* &amp;lt;code&amp;gt;pants&amp;lt;/code&amp;gt;&lt;br /&gt;
* &amp;lt;code&amp;gt;acc&amp;lt;/code&amp;gt; (Accessories)&lt;br /&gt;
* &amp;lt;code&amp;gt;offhand&amp;lt;/code&amp;gt;&lt;br /&gt;
* &amp;lt;code&amp;gt;combat&amp;lt;/code&amp;gt; (Combat items)&lt;br /&gt;
* &amp;lt;code&amp;gt;potions&amp;lt;/code&amp;gt;&lt;br /&gt;
* &amp;lt;code&amp;gt;hprestore&amp;lt;/code&amp;gt; (HP Restorers)&lt;br /&gt;
* &amp;lt;code&amp;gt;mprestore&amp;lt;/code&amp;gt; (MP Restorers)&lt;br /&gt;
* &amp;lt;code&amp;gt;familiars&amp;lt;/code&amp;gt; (Familiar hatchlings)&lt;br /&gt;
* &amp;lt;code&amp;gt;mrstore&amp;lt;/code&amp;gt; (Mr. Store Items)&lt;br /&gt;
* &amp;lt;code&amp;gt;unlockers&amp;lt;/code&amp;gt; (Content Unlockers)&lt;br /&gt;
* &amp;lt;code&amp;gt;new&amp;lt;/code&amp;gt; (New Stuff)&lt;br /&gt;
&lt;br /&gt;
{{pspan|tiers}} can be any string that contains a consumable tier name. Valid tier names are: &amp;lt;code&amp;gt;crappy&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;decent&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;good&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;awesome&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;EPIC&amp;lt;/code&amp;gt;. Tier names are are case-sensitive.&lt;br /&gt;
&lt;br /&gt;
KoLmafia does not care what separator you use, or if you use a separator at all. For example, both &amp;lt;code&amp;gt;&amp;quot;crappy, decent, good&amp;quot;&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;&amp;quot;crappydecentbooze&amp;quot;&amp;lt;/code&amp;gt; will search for crappy/decent/good consumables. However, we recommend using proper separators, as it will make your life easier.&lt;br /&gt;
&lt;br /&gt;
The category-based search was added in [https://kolmafia.us/threads/18892-add-mall_prices-category-to-bulk-calculate-mall-prices-for-entire-categoriesu.23173/ r18892], and the optional {{pspan|tiers}} parameter was added in [https://kolmafia.us/threads/18893-add-two-argument-form-of-mall_prices-int-mall_prices-string-category-strin.23175/ r18893]. The item set search variant was added in [https://kolmafia.us/threads/18937-new-ash-function-int-mall_prices-boolean-item-to-look-up-the-curren.23234/ r18937].&lt;br /&gt;
|code1={{CodeSample&lt;br /&gt;
  |title=Code Samples&lt;br /&gt;
  |description=Find the 5 most expensive foods in the mall.&lt;br /&gt;
  |code=&lt;br /&gt;
{{{!}} class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! style=&amp;quot;width: 50%&amp;quot; {{!}} ASH&lt;br /&gt;
! style=&amp;quot;width: 50%&amp;quot; {{!}} JavaScript&lt;br /&gt;
{{!}}- style=&amp;quot;vertical-align: top&amp;quot;&lt;br /&gt;
{{!}}&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;d&amp;quot; line highlight=&amp;quot;1&amp;quot;&amp;gt;&lt;br /&gt;
int food_count = mall_prices( &amp;quot;food&amp;quot; );&lt;br /&gt;
print( `{food_count} food prices retrieved.` );&lt;br /&gt;
&lt;br /&gt;
item [int] food_list;&lt;br /&gt;
foreach it in $items[]&lt;br /&gt;
{&lt;br /&gt;
   // Items that are untradable or not available in the mall have a price of 0.&lt;br /&gt;
   // We will ignore such items.&lt;br /&gt;
   if ( item_type( it ) == &amp;quot;food&amp;quot; &amp;amp;&amp;amp; mall_price( it ) &amp;gt; 0 )&lt;br /&gt;
   {&lt;br /&gt;
      // Add item to list&lt;br /&gt;
      food_list[ count(food_list) ] = it;&lt;br /&gt;
   }&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
// Sort the list by mall price, from highest to lowest&lt;br /&gt;
sort food_list by -mall_price( value );&lt;br /&gt;
// Print the name and price of first 5 items&lt;br /&gt;
for i from 0 to 5&lt;br /&gt;
{&lt;br /&gt;
   print( `{food_list[i].name}: {mall_price( food_list[i] )}` );&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{!}}&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;js&amp;quot; line highlight=&amp;quot;3&amp;quot;&amp;gt;&lt;br /&gt;
const { mallPrice, mallPrices, print, itemType } = require(&amp;quot;kolmafia&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
const foodCount = mallPrices(&amp;quot;food&amp;quot;);&lt;br /&gt;
print(foodCount + &amp;quot; food prices retrieved.&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
// Items that are untradable or not available in the mall have a price of 0.&lt;br /&gt;
// We will ignore such items.&lt;br /&gt;
const foodList = Item.all()&lt;br /&gt;
  .filter((it) =&amp;gt; itemType(it) === &amp;quot;food&amp;quot; &amp;amp;&amp;amp; mallPrice(it) &amp;gt; 0)&lt;br /&gt;
  .sort((a, b) =&amp;gt; mallPrice(b) - mallPrice(a))  // Sort from highest to lowest&lt;br /&gt;
  .slice(0, 5);&lt;br /&gt;
&lt;br /&gt;
for (let food of foodList) {&lt;br /&gt;
  print(food.name + &amp;quot;: &amp;quot; + mallPrice(food));&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{!}}}&lt;br /&gt;
  |moreinfo=&lt;br /&gt;
}}&lt;br /&gt;
|code2={{CodeSample&lt;br /&gt;
  |description=Find the price of all elemental wads. Using {{f|mall_prices}} allows us to print the price of all pieces at once, without having KoLmafia print &amp;quot;Searching for &amp;lt;item name&amp;gt;...&amp;quot; between them.&lt;br /&gt;
  |code=&lt;br /&gt;
{{{!}} class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! style=&amp;quot;width: 50%&amp;quot; {{!}} ASH&lt;br /&gt;
! style=&amp;quot;width: 50%&amp;quot; {{!}} JavaScript&lt;br /&gt;
{{!}}- style=&amp;quot;vertical-align: top&amp;quot;&lt;br /&gt;
{{!}}&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;d&amp;quot; line highlight=&amp;quot;9&amp;quot;&amp;gt;&lt;br /&gt;
boolean [ item ] wads = $items[&lt;br /&gt;
  cold wad,&lt;br /&gt;
  hot wad,&lt;br /&gt;
  sleaze wad,&lt;br /&gt;
  spooky wad,&lt;br /&gt;
  stench wad,&lt;br /&gt;
];&lt;br /&gt;
&lt;br /&gt;
mall_prices( wads );&lt;br /&gt;
&lt;br /&gt;
foreach wad in wads&lt;br /&gt;
{&lt;br /&gt;
   print( `{wad.name}: {mall_price( wad )}` );&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{!}}&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;js&amp;quot; line highlight=&amp;quot;12,16&amp;quot;&amp;gt;&lt;br /&gt;
const { mallPrice, mallPrices, print } = require(&amp;quot;kolmafia&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
const wads = Item.get([&lt;br /&gt;
  &amp;quot;cold wad&amp;quot;,&lt;br /&gt;
  &amp;quot;hot wad&amp;quot;,&lt;br /&gt;
  &amp;quot;sleaze wad&amp;quot;,&lt;br /&gt;
  &amp;quot;spooky wad&amp;quot;,&lt;br /&gt;
  &amp;quot;stench wad&amp;quot;,&lt;br /&gt;
]);&lt;br /&gt;
&lt;br /&gt;
// For JavaScript, we must manually build an object whose keys are item names.&lt;br /&gt;
const wadsObj = {};&lt;br /&gt;
for (let wad of wads) {&lt;br /&gt;
  wadsObj[wad.name] = true;&lt;br /&gt;
}&lt;br /&gt;
mallPrices(wadsObj);&lt;br /&gt;
&lt;br /&gt;
for (let wad of wads) {&lt;br /&gt;
  print(wad.name + &amp;quot;: &amp;quot; + mallPrice(wad));&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{!}}}&lt;br /&gt;
  |moreinfo=&lt;br /&gt;
}}&lt;br /&gt;
|code3={{CodeSample&lt;br /&gt;
  |description=Find the price of all pieces of the {{kolwiki|Star Garb}} outfit. Since the return type of {{f|outfit_pieces}} and the parameter type of {{f|mall_prices}} is different, we must manually build a map of pieces.&lt;br /&gt;
  |code=&lt;br /&gt;
{{{!}} class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! style=&amp;quot;width: 50%&amp;quot; {{!}} ASH&lt;br /&gt;
! style=&amp;quot;width: 50%&amp;quot; {{!}} JavaScript&lt;br /&gt;
{{!}}- style=&amp;quot;vertical-align: top&amp;quot;&lt;br /&gt;
{{!}}&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;d&amp;quot; line highlight=&amp;quot;1,9&amp;quot;&amp;gt;&lt;br /&gt;
boolean [ item ] pieces;&lt;br /&gt;
// Add items to the map&lt;br /&gt;
foreach key, piece in outfit_pieces( &amp;quot;Star Garb&amp;quot; )&lt;br /&gt;
{&lt;br /&gt;
   pieces[ piece ] = true;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
// Perform a search at once&lt;br /&gt;
mall_prices( pieces );&lt;br /&gt;
&lt;br /&gt;
foreach piece in pieces&lt;br /&gt;
{&lt;br /&gt;
   print( `{piece.name}: {mall_price(piece)}` );&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{!}}&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;js&amp;quot; line highlight=&amp;quot;4,11&amp;quot;&amp;gt;&lt;br /&gt;
const { mallPrice, mallPrices, outfitPieces, print } = require(&amp;quot;kolmafia&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
const pieces = outfitPieces(&amp;quot;Star Garb&amp;quot;);&lt;br /&gt;
const piecesObj = {};&lt;br /&gt;
// Add items to the object&lt;br /&gt;
for (let piece of pieces) {&lt;br /&gt;
  piecesObj[piece.name] = true;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
// Perform a search at once&lt;br /&gt;
mallPrices(piecesObj);&lt;br /&gt;
&lt;br /&gt;
for (let piece of pieces) {&lt;br /&gt;
  print(piece.name + &amp;quot;: &amp;quot; + mallPrice(piece));&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{!}}}&lt;br /&gt;
  |moreinfo=&lt;br /&gt;
}}&lt;br /&gt;
|see_also={{SeeAlso|}}&lt;br /&gt;
|cli_equiv=&lt;br /&gt;
|more_info=&lt;br /&gt;
|special=&lt;br /&gt;
|{{{1|}}}&lt;br /&gt;
}}&amp;lt;/onlyinclude&amp;gt;&lt;br /&gt;
[[Category:Item Management]]&lt;/div&gt;</summary>
		<author><name>Philmasterplus</name></author>
	</entry>
</feed>