<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.kolmafia.us/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Ereinion</id>
	<title>Kolmafia - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.kolmafia.us/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Ereinion"/>
	<link rel="alternate" type="text/html" href="https://wiki.kolmafia.us/index.php?title=Special:Contributions/Ereinion"/>
	<updated>2026-04-25T03:25:06Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>https://wiki.kolmafia.us/index.php?title=Get_shop_log&amp;diff=8531</id>
		<title>Get shop log</title>
		<link rel="alternate" type="text/html" href="https://wiki.kolmafia.us/index.php?title=Get_shop_log&amp;diff=8531"/>
		<updated>2017-12-26T23:44:50Z</updated>

		<summary type="html">&lt;p&gt;Ereinion: Created page with &amp;quot;{{ #vardefine:name|get_shop_log}}{{ #vardefine:return_type|int [item]}}{{ #vardefine:aggregate|yes}}{{  FunctionPage| name={{#var:name}}|  function1={{Function| name={{#var:na...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{&lt;br /&gt;
#vardefine:name|get_shop_log}}{{&lt;br /&gt;
#vardefine:return_type|int [item]}}{{&lt;br /&gt;
#vardefine:aggregate|yes}}{{&lt;br /&gt;
&lt;br /&gt;
FunctionPage|&lt;br /&gt;
name={{#var:name}}|&lt;br /&gt;
&lt;br /&gt;
function1={{Function|&lt;br /&gt;
name={{#var:name}}|&lt;br /&gt;
aggregate={{#var:aggregate}}|&lt;br /&gt;
return_type={{#var:return_type}}|&lt;br /&gt;
return_also={{#var:return_also}}|&lt;br /&gt;
}}|&lt;br /&gt;
&lt;br /&gt;
function_description=Returns a map of transactions in your store, keyed by the line number each is found on in your store log|&lt;br /&gt;
&lt;br /&gt;
code1={{CodeSample|&lt;br /&gt;
title=Code Sample|&lt;br /&gt;
description=The following will print all lines in the shop log where the transaction amount was larger than 500,000 meat|&lt;br /&gt;
code=&lt;br /&gt;
&amp;lt;syntaxhighlight&amp;gt;&lt;br /&gt;
void write_big_sales(int limit) {&lt;br /&gt;
    string[int] shopLog = get_shop_log();&lt;br /&gt;
    matcher meat_gain;&lt;br /&gt;
    string pattern = &amp;quot;for (\\d+) Meat&amp;quot;;&lt;br /&gt;
    int meat;&lt;br /&gt;
    &lt;br /&gt;
    foreach i in shopLog {&lt;br /&gt;
        meat_gain = create_matcher(pattern, shopLog[i]);&lt;br /&gt;
        if (find(meat_gain)) {&lt;br /&gt;
            meat = to_int(group(meat_gain, 1));&lt;br /&gt;
            if (meat &amp;gt;= limit) {&lt;br /&gt;
                print_html(&amp;quot;&amp;lt;font color=0000FF&amp;gt;&amp;quot; +  i + &amp;quot; - &amp;quot; + shopLog[i] + &amp;quot;&amp;lt;/font&amp;gt;&amp;quot;);&lt;br /&gt;
            }&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
void main() {&lt;br /&gt;
    write_big_sales(500000);&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;}}|&lt;br /&gt;
&lt;br /&gt;
see_also={{SeeAlso|get_shop|create_matcher|group}}|&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
[[Category:]]&lt;/div&gt;</summary>
		<author><name>Ereinion</name></author>
	</entry>
	<entry>
		<id>https://wiki.kolmafia.us/index.php?title=Talk:KoLmafia_Guide:_Automatic_Mall_Selling&amp;diff=5872</id>
		<title>Talk:KoLmafia Guide: Automatic Mall Selling</title>
		<link rel="alternate" type="text/html" href="https://wiki.kolmafia.us/index.php?title=Talk:KoLmafia_Guide:_Automatic_Mall_Selling&amp;diff=5872"/>
		<updated>2011-02-13T08:43:09Z</updated>

		<summary type="html">&lt;p&gt;Ereinion: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Note that the special CLI commands for item handling interpret integers less than 1 to mean &amp;quot;all but x&amp;quot;. This can be used to simplify the code sample significantly. --[[User:Heeheehee|Heeheehee]] 06:01, 28 March 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Wouldn&#039;t you want to put any mall- or auto-selling you do inside a batch-statement, to reduce the number of server-hits/speed up the script?&lt;br /&gt;
--[[User:Ereinion|Ereinion]] 08:43, 13 February 2011 (UTC)&lt;/div&gt;</summary>
		<author><name>Ereinion</name></author>
	</entry>
</feed>