<?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=HippoKing</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=HippoKing"/>
	<link rel="alternate" type="text/html" href="https://wiki.kolmafia.us/index.php?title=Special:Contributions/HippoKing"/>
	<updated>2026-04-30T13:35:23Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>https://wiki.kolmafia.us/index.php?title=Numeric_modifier&amp;diff=9251</id>
		<title>Numeric modifier</title>
		<link rel="alternate" type="text/html" href="https://wiki.kolmafia.us/index.php?title=Numeric_modifier&amp;diff=9251"/>
		<updated>2025-03-16T00:45:17Z</updated>

		<summary type="html">&lt;p&gt;HippoKing: mention string options, modifier type&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{&lt;br /&gt;
#vardefine:name|numeric_modifier}}{{&lt;br /&gt;
#vardefine:return_type|float}}{{&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;
parameter1={{Param|string|modifier_name}}|&lt;br /&gt;
}}|&lt;br /&gt;
&lt;br /&gt;
function2={{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;
parameter1={{Param|string|check_me}}|&lt;br /&gt;
parameter2={{Param|string|modifier_name}}|&lt;br /&gt;
}}|&lt;br /&gt;
&lt;br /&gt;
function3={{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;
parameter1={{Param|item|check_me}}|&lt;br /&gt;
parameter2={{Param|string|modifier_name}}|&lt;br /&gt;
}}|&lt;br /&gt;
&lt;br /&gt;
function4={{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;
parameter1={{Param|effect|check_me}}|&lt;br /&gt;
parameter2={{Param|string|modifier_name}}|&lt;br /&gt;
}}|&lt;br /&gt;
&lt;br /&gt;
function5={{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;
parameter1={{Param|skill|check_me}}|&lt;br /&gt;
parameter2={{Param|string|modifier_name}}|&lt;br /&gt;
p1desc={{Pspan|check_me}} is the string, item, effect or skill to check|&lt;br /&gt;
p2desc={{Pspan|modifier_name}} is the &amp;lt;b&amp;gt;[[modifiers|modifier]]&amp;lt;/b&amp;gt; to check. This also can (and should) be a &amp;lt;syntaxhighlight enclose=&amp;quot;none&amp;quot;&amp;gt;$modifier[]&amp;lt;/syntaxhighlight&amp;gt; [[Data Types#Modifier|special type]], which will give you errors for a bad modifier rather than just returning zero.|&lt;br /&gt;
}}|&lt;br /&gt;
&lt;br /&gt;
function_description=Returns your current modifier total for {{pspan|modifier_name}}, or the amount of modification from {{pspan|check_me}} if specified. If a string is specified for {{pspan|check_me}}, other options are available such as &amp;lt;syntaxhighlight enclose=&amp;quot;none&amp;quot;&amp;gt;&amp;quot;Outfit:name&amp;quot;&amp;lt;/syntaxhighlight&amp;gt; or the &amp;lt;syntaxhighlight enclose=&amp;quot;none&amp;quot;&amp;gt;&amp;quot;Generate:_spec&amp;quot;&amp;lt;/syntaxhighlight&amp;gt; from [[maximize]].&amp;lt;/p&amp;gt;&lt;br /&gt;
===Special Syntax for Familiars===&lt;br /&gt;
{{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;
parameter1={{Param|familiar|buddy}}|&lt;br /&gt;
parameter2={{Param|string|check_me}}|&lt;br /&gt;
parameter3={{Param|int|weight}}|&lt;br /&gt;
parameter4={{Param|item|equipment}}|&lt;br /&gt;
p1desc={{Pspan|buddy}} is the familiar to check|&lt;br /&gt;
p2desc={{Pspan|check_me}} is the modifier to check|&lt;br /&gt;
p3desc={{Pspan|weight}} is the familiar&#039;s weight (buffed, not including equipment)|&lt;br /&gt;
p4desc={{Pspan|equipment}} is the familiar&#039;s equipment|&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;p&amp;gt;Returns the familiar&#039;s effect on this modifier (for instance, a baby gravy fairy would return some positive float for &amp;quot;Item Drop&amp;quot;).|&lt;br /&gt;
&lt;br /&gt;
code1={{CodeSample|&lt;br /&gt;
title=Code Sample|&lt;br /&gt;
description=Prints your current Initiative:|&lt;br /&gt;
code=&lt;br /&gt;
&amp;lt;syntaxhighlight&amp;gt;&lt;br /&gt;
float init = numeric_modifier( &amp;quot;initiative&amp;quot; );&lt;br /&gt;
print(init);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;}}&lt;br /&gt;
{{CodeSample|&lt;br /&gt;
description=Prints the sleaze damage bonus of the Frat Warrior Fatigues outfit (using the modifier type):|&lt;br /&gt;
code=&lt;br /&gt;
&amp;lt;syntaxhighlight&amp;gt;&lt;br /&gt;
float sleaze_damage = numeric_modifier(&amp;quot;Outfit:Frat Warrior Fatigues&amp;quot;, $modifier[sleaze damage] );&lt;br /&gt;
print(sleaze_damage);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;}}&lt;br /&gt;
{{CodeSample|&lt;br /&gt;
description=Function that checks if a single effect from a given list will buff your muscle over an amount goal. The name of the first effect to satisfy the goal is printed, or you are warned if none is found.|&lt;br /&gt;
code=&lt;br /&gt;
&amp;lt;syntaxhighlight&amp;gt;&lt;br /&gt;
boolean buffMuscleTo( int goal ) {&lt;br /&gt;
   int current_muscle = my_buffedstat( $stat[Muscle] ) ;&lt;br /&gt;
   int base_muscle = my_basestat( $stat[Muscle] ) ;&lt;br /&gt;
   int muscle_increase ;&lt;br /&gt;
   if ( current_muscle &amp;gt;= goal ) return true ;&lt;br /&gt;
   &lt;br /&gt;
   foreach it in $effects[Tomato Power, Phorcefullness, Gr8tness, Incredibly Hulking] {&lt;br /&gt;
      if ( have_effect(it) &amp;gt; 0 ) continue ;&lt;br /&gt;
      muscle_increase = floor( base_muscle * numeric_modifier( it, &amp;quot;Muscle Percent&amp;quot; ) / 100 );&lt;br /&gt;
      if ( current_muscle + muscle_increase &amp;gt;= goal ) {&lt;br /&gt;
         print(it + &amp;quot; will bring your muscle over &amp;quot; + goal);&lt;br /&gt;
         return true;&lt;br /&gt;
      }&lt;br /&gt;
   }&lt;br /&gt;
   print(&amp;quot;No effect found&amp;quot;);&lt;br /&gt;
   return false;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;}}|&lt;br /&gt;
&lt;br /&gt;
code2={{CodeSample|&lt;br /&gt;
title=Potion/effect-giving items|&lt;br /&gt;
description=To get a modifier from a consumable which gives an effect, it is first necessary to convert the item into its given effect with [[effect_modifier]]. &amp;lt;br&amp;gt; This snippet calculates what your meat drop bonus would be after eating a {{kolwiki|sweet roll alabama}}:|&lt;br /&gt;
code=&amp;lt;syntaxhighlight&amp;gt;&lt;br /&gt;
float meat_boost = numeric_modifier( &amp;quot;meat drop&amp;quot; );&lt;br /&gt;
effect effect_from_item = effect_modifier( $item[Sweet roll Alabama] , &amp;quot;effect&amp;quot; );&lt;br /&gt;
&lt;br /&gt;
meat_boost += numeric_modifier( effect_from_item , &amp;quot;meat drop&amp;quot; );&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;}}|&lt;br /&gt;
&lt;br /&gt;
cli_equiv=The CLI command &amp;quot;modtrace&amp;quot; gives access to the same information when the correct parameters are specified.|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
more_info= For a full list of modifiers, see [[modifiers]].&amp;lt;br&amp;gt;&lt;br /&gt;
For more information about numeric_modifier(), see the following thread: [http://kolmafia.us/showthread.php?802  List].|&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
{{SeeAlso|boolean_modifier|effect_modifier|string_modifier}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Modifier Functions]]&lt;/div&gt;</summary>
		<author><name>HippoKing</name></author>
	</entry>
	<entry>
		<id>https://wiki.kolmafia.us/index.php?title=Data_Types&amp;diff=9250</id>
		<title>Data Types</title>
		<link rel="alternate" type="text/html" href="https://wiki.kolmafia.us/index.php?title=Data_Types&amp;diff=9250"/>
		<updated>2025-03-16T00:39:41Z</updated>

		<summary type="html">&lt;p&gt;HippoKing: /* Special Datatypes */ add modifier type&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{TOCright}}&lt;br /&gt;
==Primitive Datatypes==&lt;br /&gt;
&lt;br /&gt;
===void===&lt;br /&gt;
Can be thought of better as the absence of a datatype. No value can be assigned to &#039;&#039;&#039;void&#039;&#039;&#039; nor can a value be returned from a function of datatype &#039;&#039;&#039;void&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
===boolean===&lt;br /&gt;
A boolean value is either &#039;&#039;&#039;true&#039;&#039;&#039; or &#039;&#039;&#039;false&#039;&#039;&#039;. By default, a boolean variable is set to false.&lt;br /&gt;
&lt;br /&gt;
===int===&lt;br /&gt;
&lt;br /&gt;
A whole number (short for &amp;quot;integer&amp;quot;), either positive or negative (or 0).  The int used by KoLmafia is a 64-bit signed int, meaning it has a maximum value of 9,223,372,036,854,775,807 and a minimum value of -9,223,372,036,854,775,808. The default value of a integer variable is 0.&lt;br /&gt;
&lt;br /&gt;
Be careful when doing math with integers! As with some other strongly-typed languages, numbers are converted to integers at every step of the operation when only integer types are used. For example:&lt;br /&gt;
{{&lt;br /&gt;
CodeSample|&lt;br /&gt;
code=&lt;br /&gt;
&amp;lt;syntaxhighlight&amp;gt;&lt;br /&gt;
int a = 1;&lt;br /&gt;
int b = 2;&lt;br /&gt;
print( a / b * 2 );&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;}}&lt;br /&gt;
Will give the output &amp;quot;0,&amp;quot; not &amp;quot;1&amp;quot; as you may expect. Changing either variable to a float type will &amp;quot;correct&amp;quot; this.&lt;br /&gt;
&lt;br /&gt;
===float===&lt;br /&gt;
&lt;br /&gt;
The float data type is a double-precision 64-bit IEEE 754 floating point. Its range of values is beyond the scope of this discussion, but is specified in [hhttps://docs.oracle.com/javase/specs/jls/se17/html/jls-4.html#jls-4.2.3 section 4.2.3 of the Java Language Specification], and a tool to help understand / quickly see how/where imprecisions happen can be found [https://www.h-schmidt.net/FloatConverter/IEEE754.html here].&lt;br /&gt;
&lt;br /&gt;
When assigning to a variable of type float, one should be careful to always enter numbers in decimal form, as unwanted behavior can result from supplying a value that KoLmafia may interpret as an int type without the decimal point.&lt;br /&gt;
&lt;br /&gt;
Note that float is not infinitely precise; it intrinsically rounds off after a certain point. This loss of accuracy is for the sake of storage, but beware of the possibility of small errors compounding from multiple float types.&lt;br /&gt;
{{&lt;br /&gt;
CodeSample|&lt;br /&gt;
description=For instance, try the following code as an example of how rather long post-decimal portions are handled:|&lt;br /&gt;
code=&lt;br /&gt;
&amp;lt;syntaxhighlight&amp;gt;&lt;br /&gt;
float f;&lt;br /&gt;
f = 4.9999999;&lt;br /&gt;
print( f );&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;}}&lt;br /&gt;
The default value of a &amp;lt;code&amp;gt;float&amp;lt;/code&amp;gt; variable is 0.0.&lt;br /&gt;
&lt;br /&gt;
===string===&lt;br /&gt;
&lt;br /&gt;
A group of characters including, but not limited to: lowercase letters, uppercase characters, numbers, and various control characters. When assigning a value to a string, enclose the desired value in either single quotes (&amp;lt;code&amp;gt;&#039;&amp;lt;/code&amp;gt;), double quotes (&amp;lt;code&amp;gt;&amp;quot;&amp;lt;/code&amp;gt;) or backticks (&amp;lt;code&amp;gt;`&amp;lt;/code&amp;gt;) (note you must use the same quote type on both ends of the string assignment). If you need to include the same character inside of the string itself, you will need to escape it first with a backslash.&lt;br /&gt;
&lt;br /&gt;
{{&lt;br /&gt;
CodeSample&lt;br /&gt;
|description=For example:&lt;br /&gt;
|code=&amp;lt;syntaxhighlight&amp;gt;string s = &amp;quot;This is my \&amp;quot;friend\&amp;quot; Pete.&amp;quot;;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|moreinfo=Will result in the following being stored to s:&amp;lt;pre&amp;gt;This is my &amp;quot;friend&amp;quot; Pete&amp;lt;/pre&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
The default value of a string is an empty string, or literally &amp;lt;code&amp;gt;&amp;quot;&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When using backticks, you can concatenate expressions into your string using curly braces.&lt;br /&gt;
&lt;br /&gt;
{{&lt;br /&gt;
CodeSample&lt;br /&gt;
|description=For example:&lt;br /&gt;
|code=&amp;lt;syntaxhighlight&amp;gt;string s = `Hello {my_name()}, you have {$item[lime].item_amount()} lime(s)!`;&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
===buffer===&lt;br /&gt;
&lt;br /&gt;
Similar to a string, but more efficient in certain operations, including concatenation and passing as function arguments. For the most part, you can interchange references to strings and buffers. However, you should test all such actions first, as a few functions require a specific datatype to be supplied as a parameter. (Most notably, those listed under [[String Handling Routines#Regular Expressions|Regular Expressions]].)&lt;br /&gt;
&lt;br /&gt;
==Special Datatypes==&lt;br /&gt;
&lt;br /&gt;
Several datatypes are included in KoLmafia to represent common categories within the KoL universe.&lt;br /&gt;
&lt;br /&gt;
Note that while variables of these types are declared in the same way as for Primitive Datatypes; assigning and referencing them is done differently.&lt;br /&gt;
{{CodeSample|&lt;br /&gt;
description=For example, to declare an item datatype and assign it a value, you would use the following line of code:|&lt;br /&gt;
code=&lt;br /&gt;
&amp;lt;syntaxhighlight&amp;gt;&lt;br /&gt;
item it = $item[ broken skull ];&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;}}&lt;br /&gt;
The default values of any variable of one of the following types is &amp;lt;code&amp;gt;$&#039;&#039;type&#039;&#039;[ none ]&amp;lt;/code&amp;gt;. For example, the default value of a &amp;lt;code&amp;gt;item&amp;lt;/code&amp;gt; variable is &amp;lt;code&amp;gt;$item[ none ]&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===bounty===&lt;br /&gt;
&lt;br /&gt;
([[Bounty#Related Functions|Related Functions]])  ([[Bounty#Proxy Record Fields|Proxy Record Fields]])&lt;br /&gt;
&lt;br /&gt;
These are the non-items that the bounty hunter asks you to retrieve from monsters around the kingdom. There are quite a lot of them (42 in total) so I won&#039;t list them all here. You can find more about bounties at the {{kolwiki|The Bounty Hunter Hunter&#039;s Shack}}.&lt;br /&gt;
&lt;br /&gt;
===class===&lt;br /&gt;
&lt;br /&gt;
([[Class#Related Functions|Related Functions]])  ([[Class#Proxy Record Fields|Proxy Record Fields]])&lt;br /&gt;
&lt;br /&gt;
Besides $class[ none ], there are six possible values for this datatype:&lt;br /&gt;
&lt;br /&gt;
* Seal Clubber&lt;br /&gt;
* Turtle Tamer&lt;br /&gt;
* Pastamancer&lt;br /&gt;
* Sauceror&lt;br /&gt;
* Disco Bandit&lt;br /&gt;
* Accordion Thief&lt;br /&gt;
&lt;br /&gt;
===coinmaster===&lt;br /&gt;
&lt;br /&gt;
([[Coinmaster#Related Functions|Related Functions]])  ([[Coinmaster#Proxy Record Fields|Proxy Record Fields]])&lt;br /&gt;
&lt;br /&gt;
All shops that deal with currency other than meat. Known values include:&lt;br /&gt;
&lt;br /&gt;
* {{kolwiki|The Bounty Hunter Hunter&#039;s Shack|Bounty Hunter Hunter}}&lt;br /&gt;
* {{kolwiki|Mr. Store}}&lt;br /&gt;
* {{kolwiki|Hermit}}&lt;br /&gt;
* {{kolwiki|The Shore, Inc. Gift Shop}}&lt;br /&gt;
* {{kolwiki|The Trapper&#039;s Cabin|The Trapper}}&lt;br /&gt;
* {{kolwiki|A Vending Machine|Vending Machine}}&lt;br /&gt;
* {{kolwiki|The Swagger Shop}}&lt;br /&gt;
* {{kolwiki|The Hippy Camp (Wartime)|Dimemaster}}&lt;br /&gt;
* {{kolwiki|The Orcish Frat House|Quartersmaster}}&lt;br /&gt;
* {{kolwiki|BURT|Bugbear Token}}&lt;br /&gt;
* {{kolwiki|Freshwater Fishbonery}}&lt;br /&gt;
* {{kolwiki|Big Brother}}&lt;br /&gt;
* {{kolwiki|The Terrified Eagle Inn}}&lt;br /&gt;
* {{kolwiki|Ticket Redemption Counter|Arcade Ticket Counter}}&lt;br /&gt;
* {{kolwiki|Cashier|Game Shoppe}}&lt;br /&gt;
* {{kolwiki|Cashier|Game Shoppe Snacks}}&lt;br /&gt;
* {{kolwiki|The Isotope Smithery|Isotope Smithery}}&lt;br /&gt;
* {{kolwiki|Dollhawker&#039;s Emporium}}&lt;br /&gt;
* {{kolwiki|The Lunar Lunch-o-Mat|Lunar Lunch-o-Mat}}&lt;br /&gt;
* {{kolwiki|Paul&#039;s Boutique}}&lt;br /&gt;
* {{kolwiki|The Frozen Brogurt Stand}}&lt;br /&gt;
* {{kolwiki|Buff Jimmy&#039;s Souvenir Shop}}&lt;br /&gt;
* {{kolwiki|Taco Dan&#039;s Taco Stand}}&lt;br /&gt;
* {{kolwiki|You&#039;re the Fudge Wizard Now, Dog|Fudge Wand}}&lt;br /&gt;
* {{kolwiki|The Neandermall}}&lt;br /&gt;
* {{kolwiki|Legitimate Shoe Repair, Inc.}}&lt;br /&gt;
* {{kolwiki|warbear black box|Warbear Black Box}}&lt;br /&gt;
* {{kolwiki|The Dinsey Company Store}}&lt;br /&gt;
* {{kolwiki|Internet Meme Shop}}&lt;br /&gt;
&lt;br /&gt;
===effect===&lt;br /&gt;
&lt;br /&gt;
([[Effect#Related Functions|Related Functions]])  ([[Effect#Proxy Record Fields|Proxy Record Fields]])&lt;br /&gt;
&lt;br /&gt;
Any effect you can be under in KoL, whether from items, skills, or what-have-you, is valid for this datatype.&lt;br /&gt;
&lt;br /&gt;
The full range, besides $effect[ none ], is too much to list and keep up with here: please see the Wiki {{kolwiki|Effects}} page for more information.&lt;br /&gt;
&lt;br /&gt;
===element===&lt;br /&gt;
&lt;br /&gt;
([[Element#Related Functions|Related Functions]])  ([[Element#Proxy Record Fields|Proxy Record Fields]])&lt;br /&gt;
&lt;br /&gt;
Besides $element[ none ], there are seven possible values for this datatype. (Note that &amp;quot;Bad Spelling&amp;quot; is not considered a true element.)&lt;br /&gt;
Also note that these names are case-sensitive (referencing $element[ Spooky ] will generate an error).&lt;br /&gt;
&lt;br /&gt;
* cold&lt;br /&gt;
* hot&lt;br /&gt;
* sleaze&lt;br /&gt;
* spooky&lt;br /&gt;
* stench&lt;br /&gt;
* slime&lt;br /&gt;
* supercold&lt;br /&gt;
&lt;br /&gt;
===familiar===&lt;br /&gt;
&lt;br /&gt;
([[Familiar#Related Functions|Related Functions]])  ([[Familiar#Proxy Record Fields|Proxy Record Fields]])&lt;br /&gt;
&lt;br /&gt;
Any familiar available in KoL is valid for this datatype.&lt;br /&gt;
&lt;br /&gt;
The full range, besides $familiar[ none ], is too much to list and keep up with here: please see the Wiki {{kolwiki|Familiars}} page for more information.&lt;br /&gt;
&lt;br /&gt;
===item===&lt;br /&gt;
&lt;br /&gt;
([[Item#Related Functions|Related Functions]])  ([[Item#Proxy Record Fields|Proxy Record Fields]])&lt;br /&gt;
&lt;br /&gt;
Any item in all of KoL is valid for this datatype. Note that unlike most special datatypes, item references can make use of the item ID number.&lt;br /&gt;
{{CodeSample|&lt;br /&gt;
description=For example, you could assign the item plexiglass pants as follows:|&lt;br /&gt;
code=&lt;br /&gt;
&amp;lt;syntaxhighlight&amp;gt;&lt;br /&gt;
item it = $item[ 1234 ];&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;}}&lt;br /&gt;
The full range, besides $item[ none ], is too much to list and keep up with here: please see the Wiki {{kolwiki|Items}} page for more information.&lt;br /&gt;
&lt;br /&gt;
===location===&lt;br /&gt;
&lt;br /&gt;
([[Location#Related Functions|Related Functions]])  ([[Location#Proxy Record Fields|Proxy Record Fields]])&lt;br /&gt;
&lt;br /&gt;
Any location one can adventure at in KoL is valid for this datatype.&lt;br /&gt;
&lt;br /&gt;
The full range, besides $location[ none ], is too much to list and keep up with here: please see the Wiki {{kolwiki|Locations}} page for more information.&lt;br /&gt;
&lt;br /&gt;
===modifier===&lt;br /&gt;
&lt;br /&gt;
([[Modifier#Related Functions|Related Functions]])  ([[Modifier#Proxy Record Fields|Proxy Record Fields]])&lt;br /&gt;
&lt;br /&gt;
Modifiers control properties of your character and your skills, items etc. For example you want to know your item drop bonus, that&#039;s &amp;lt;syntaxhighlight enclose=&amp;quot;none&amp;quot;&amp;gt;$modifier[item drop]&amp;lt;/syntaxhighlight&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The full range, besides &amp;lt;syntaxhighlight enclose=&amp;quot;none&amp;quot;&amp;gt;$modifier[ none ]&amp;lt;/syntaxhighlight&amp;gt;, is too much to list and keep up with here: please see the [[modifiers]] page for more information.&lt;br /&gt;
&lt;br /&gt;
===monster===&lt;br /&gt;
&lt;br /&gt;
([[Monster#Related Functions|Related Functions]])  ([[Monster#Proxy Record Fields|Proxy Record Fields]])&lt;br /&gt;
&lt;br /&gt;
Any monster you can encounter in KoL is valid for this datatype.&lt;br /&gt;
&lt;br /&gt;
The full range, besides $monster[ none ], is too much to list and keep up with here: please see the Wiki {{kolwiki|Monster Compendium}} page for more information.&lt;br /&gt;
&lt;br /&gt;
===path===&lt;br /&gt;
&lt;br /&gt;
([[Path#Related Functions|Related Functions]]) ([[Path#Proxy Record Fields|Proxy Record Fields]])&lt;br /&gt;
&lt;br /&gt;
Any ascension path you can choose in Valhalla is valid for this datatype. This includes all {{kolwiki|special challenge paths}}, as well as Standard and the dietary restriction paths (Boozetafarian, Teetotaler, Oxygenarian). The &amp;quot;Unrestricted&amp;quot; path and aftercore are represented as $path[ none ].&lt;br /&gt;
&lt;br /&gt;
The full range, besides $path[ none ], is too much to list and keep up with here. See {{kolwiki|Ascension#Paths}} for more information.&lt;br /&gt;
&lt;br /&gt;
===phylum===&lt;br /&gt;
&lt;br /&gt;
([[Phylum#Related Functions|Related Functions]])  ([[Phylum#Proxy Record Fields|Proxy Record Fields]])&lt;br /&gt;
&lt;br /&gt;
Each monster has a {{kolwiki|Phylum}}. Besides $phylum[none], the possible values for this datatype are:&lt;br /&gt;
&lt;br /&gt;
* beast&lt;br /&gt;
* bug&lt;br /&gt;
* constellation&lt;br /&gt;
* construct&lt;br /&gt;
* demon&lt;br /&gt;
* dude&lt;br /&gt;
* elemental&lt;br /&gt;
* elf&lt;br /&gt;
* fish&lt;br /&gt;
* goblin&lt;br /&gt;
* hippy&lt;br /&gt;
* hobo&lt;br /&gt;
* humanoid&lt;br /&gt;
* horror&lt;br /&gt;
* mer-kin&lt;br /&gt;
* orc&lt;br /&gt;
* penguin&lt;br /&gt;
* pirate&lt;br /&gt;
* plant&lt;br /&gt;
* slime&lt;br /&gt;
* undead&lt;br /&gt;
* weird&lt;br /&gt;
&lt;br /&gt;
===servant===&lt;br /&gt;
&lt;br /&gt;
([[Servant#Related Functions|Related Functions]])  ([[Servant#Proxy Record Fields|Proxy Record Fields]])&lt;br /&gt;
&lt;br /&gt;
Servants are unique to the {{kolwiki|Actually Ed the Undying}} path and located {{kolwiki|The Servants&#039; Quarters}}, replacing familiars.&lt;br /&gt;
&lt;br /&gt;
* Assassin&lt;br /&gt;
* Belly-Dancer&lt;br /&gt;
* Bodyguard&lt;br /&gt;
* Cat&lt;br /&gt;
* Maid&lt;br /&gt;
* Priest&lt;br /&gt;
* Scribe&lt;br /&gt;
&lt;br /&gt;
===skill===&lt;br /&gt;
&lt;br /&gt;
([[Skill#Related Functions|Related Functions]])  ([[Skill#Proxy Record Fields|Proxy Record Fields]])&lt;br /&gt;
&lt;br /&gt;
Any skill you can have in KoL, whether permable or not, granted by items, &#039;&#039;etc&#039;&#039;., is valid for this datatype.&lt;br /&gt;
&lt;br /&gt;
The full range, besides $skill[ none ], is too much to list and keep up with here: please see the Wiki {{kolwiki|Skills}} page for more information.&lt;br /&gt;
&lt;br /&gt;
===slot===&lt;br /&gt;
&lt;br /&gt;
([[Slot#Related Functions|Related Functions]])  (slot has no proxy record fields)&lt;br /&gt;
&lt;br /&gt;
Besides $slot[ none ], there are 16 possible values for this datatype.&lt;br /&gt;
&lt;br /&gt;
* hat&lt;br /&gt;
* back&lt;br /&gt;
* weapon&lt;br /&gt;
* off-hand&lt;br /&gt;
* shirt&lt;br /&gt;
* pants&lt;br /&gt;
* acc1&lt;br /&gt;
* acc2&lt;br /&gt;
* acc3&lt;br /&gt;
* familiar&lt;br /&gt;
* sticker1&lt;br /&gt;
* sticker2&lt;br /&gt;
* sticker3&lt;br /&gt;
* fakehand&lt;br /&gt;
* bootspur&lt;br /&gt;
* bootskin&lt;br /&gt;
&lt;br /&gt;
===stat===&lt;br /&gt;
&lt;br /&gt;
([[Stat#Related Functions|Related Functions]])  (stat has no proxy record fields)&lt;br /&gt;
&lt;br /&gt;
Besides $stat[ none ], there are six possible values for this datatype (the last three are for referencing sub-stats).&lt;br /&gt;
&lt;br /&gt;
* muscle&lt;br /&gt;
* mysticality&lt;br /&gt;
* moxie&lt;br /&gt;
* submuscle&lt;br /&gt;
* submysticality&lt;br /&gt;
* submoxie&lt;br /&gt;
&lt;br /&gt;
===thrall===&lt;br /&gt;
&lt;br /&gt;
([[Thrall#Related Functions|Related Functions]])  ([[Thrall#Proxy Record Fields|Proxy Record Fields]])&lt;br /&gt;
&lt;br /&gt;
Pastamancers have the ability to summon {{kolwiki|Pasta Thralls}}. &lt;br /&gt;
&lt;br /&gt;
* Angel Hair Wisp&lt;br /&gt;
* Elbow Macaroni&lt;br /&gt;
* Lasagmbie&lt;br /&gt;
* Penne Dreadful&lt;br /&gt;
* Spaghetti Elemental&lt;br /&gt;
* Spice Ghost&lt;br /&gt;
* Vampieroghi&lt;br /&gt;
* Vermincelli&lt;br /&gt;
&lt;br /&gt;
==aggregate==&lt;br /&gt;
&lt;br /&gt;
An aggregate is a complex datatype composed of two or more primitive or special datatypes. For more information, see [[Data Structures]].&lt;br /&gt;
&lt;br /&gt;
==record==&lt;br /&gt;
&lt;br /&gt;
Records are user-defined datatypes that hold as many sub-datatypes as desired. For more information, see the page for [[Data Structures]].&lt;br /&gt;
&lt;br /&gt;
==Plural Typed Constants==&lt;br /&gt;
&lt;br /&gt;
(see http://kolmafia.us/showthread.php?p=15592, from which this section is reproduced)&lt;br /&gt;
&lt;br /&gt;
Plural typed constants allow you to easily do something with a list of specified objects, without having to replicate code or laboriously build up an array of the objects so that you can iterate over it. Here&#039;s a quick example:&lt;br /&gt;
{{CodeSample|code=&amp;lt;syntaxhighlight&amp;gt;&lt;br /&gt;
foreach weapon in $items[star sword, star staff, star crossbow] {&lt;br /&gt;
   if (available_amount(weapon) &amp;gt; 0) {&lt;br /&gt;
      equip(weapon);&lt;br /&gt;
      break;&lt;br /&gt;
   }&lt;br /&gt;
}&amp;lt;/syntaxhighlight&amp;gt;}}&lt;br /&gt;
The syntax is basically the same as the existing typed constant feature, but with an &amp;quot;s&amp;quot; or &amp;quot;es&amp;quot; after the type name. (The &amp;quot;es&amp;quot; case is there so that you can properly pluralize &amp;quot;class&amp;quot;.) The text between the square brackets is interpreted as a comma-separated list of elements, each of which is converted to the specified type as if it were an individual constant. More details:&lt;br /&gt;
* The list can span multiple lines.&lt;br /&gt;
* Whitespace before or after elements is ignored.&lt;br /&gt;
* Completely empty elements are ignored (so that you can leave a comma at the end of the list).&lt;br /&gt;
* You can include a comma or closing square bracket in an element by writing it as &amp;quot;\,&amp;quot; or &amp;quot;\]&amp;quot;.&lt;br /&gt;
* All the other escape sequences allowed in strings are possible, such as &amp;quot;\n&amp;quot; (newline), &amp;quot;\t&amp;quot; (tab), and &amp;quot;\uXXXX&amp;quot; (Unicode character value). To put an actual backslash in an element, you have to write it as &amp;quot;\\&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
The value generated by a plural constant is of type boolean[type], with the keys being the specified elements, and the boolean value always being true - although you won&#039;t normally do anything with the boolean, you&#039;d use a foreach loop to iterate over the keys. You can assign a plural constant to a variable declared as that type, but note that the value differs from a normal map in three important respects:&lt;br /&gt;
* Since the expression that generates it is syntactically a constant, the value has to be immutable. If you were allowed to change it in any way, those changes would appear in every future use of the same constant.&lt;br /&gt;
* There can be multiple instances of the same key - $ints[1,1,2,3,5,8] is perfectly valid, and will result in the value 1 appearing twice in a foreach loop.&lt;br /&gt;
* The keys will appear in the order you wrote them, rather than being sorted alphanumerically as maps usually do.&lt;br /&gt;
&lt;br /&gt;
In addition to being used in a foreach loop, plural constants also efficiently support membership testing via the &#039;contains&#039; operator. Here&#039;s another example:&lt;br /&gt;
{{CodeSample|code=&amp;lt;syntaxhighlight&amp;gt;&lt;br /&gt;
for hour from 1 to 12 {&lt;br /&gt;
   print(&amp;quot;It&#039;s &amp;quot; + hour + &amp;quot; o&#039;clock.&amp;quot;);&lt;br /&gt;
   if ($ints[10, 2, 4] contains hour) {&lt;br /&gt;
      print(&amp;quot;Time to drink a Dr Pepper!&amp;quot;);&lt;br /&gt;
   }&lt;br /&gt;
}&amp;lt;/syntaxhighlight&amp;gt;}}&lt;br /&gt;
(Yes, that example could just as easily have been done with a switch statement.)&lt;br /&gt;
&lt;br /&gt;
Iterating over an empty list is rather pointless, so plural constants with no elements are given a different meaning: they represent every value of the specified type, where this is practical. (The &#039;none&#039; value, if defined for a given type, is omitted.) The biggest benefit here is $items[], which lets you loop over every defined item, more efficiently than you could otherwise write in a script (since the list is generated once per session and then cached), and without having to hard-code a maximum item ID number in your script. Example:&lt;br /&gt;
{{CodeSample|code=&amp;lt;syntaxhighlight&amp;gt;&lt;br /&gt;
foreach it in $items[] {&lt;br /&gt;
   if (autosell_price(it) == 42) print(it);&lt;br /&gt;
}&amp;lt;/syntaxhighlight&amp;gt;}}&lt;br /&gt;
Enumeration of all possible values works with the following types:&lt;br /&gt;
* $booleans[] - false and true.&lt;br /&gt;
* $items[]&lt;br /&gt;
* $locations[]&lt;br /&gt;
* $classes[]&lt;br /&gt;
* $stats[] - Muscle, Mysticality, Moxie: the substat values are omitted.&lt;br /&gt;
* $skills[]&lt;br /&gt;
* $effects[]&lt;br /&gt;
* $familiars[]&lt;br /&gt;
* $slots[] - includes sticker slots and fake hands, which you might not want to consider as normal slots.&lt;br /&gt;
* $monsters[]&lt;br /&gt;
* $elements[] - includes slime now, and possibly other not-quite-elements like cute in the future.&lt;br /&gt;
&lt;br /&gt;
The remaining types that can be used in plural constants require an explicit list of elements, since there are too many possible values:&lt;br /&gt;
* $ints[] - you don&#039;t have enough RAM to store a list with 18 sextillion elements.&lt;br /&gt;
* $floats[] - ditto.&lt;br /&gt;
* $strings[] - nobody has that much RAM.&lt;br /&gt;
&lt;br /&gt;
==Custom==&lt;br /&gt;
&lt;br /&gt;
===matcher===&lt;br /&gt;
&lt;br /&gt;
A matcher isn&#039;t really a datatype so much as it&#039;s a class, but it is included here for reference, as it is used much as datatypes are in ASH. It can only be declared through the function {{f|create_matcher}}, using two strings. One is the string to find matches in, the other a regular expression to test against. For more information on using a matcher, see [[Regular Expressions]].&lt;br /&gt;
&lt;br /&gt;
==Notes==&lt;br /&gt;
&lt;br /&gt;
Buffers, aggregates, records and matchers are [https://developer.mozilla.org/en-US/docs/Glossary/Mutable mutable]. All other datatypes are immutable.&lt;br /&gt;
&lt;br /&gt;
[[Category:Scripting]]&lt;/div&gt;</summary>
		<author><name>HippoKing</name></author>
	</entry>
	<entry>
		<id>https://wiki.kolmafia.us/index.php?title=Mafia_directories&amp;diff=9131</id>
		<title>Mafia directories</title>
		<link rel="alternate" type="text/html" href="https://wiki.kolmafia.us/index.php?title=Mafia_directories&amp;diff=9131"/>
		<updated>2021-12-24T02:55:52Z</updated>

		<summary type="html">&lt;p&gt;HippoKing: I don&amp;#039;t know why I keep editing this wiki. I&amp;#039;m not even sure I&amp;#039;m helping.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;* &#039;&#039;&#039;Windows&#039;&#039;&#039; users probably saved the mafia .jar (or .exe) in a folder/directory. This is the &#039;&#039;&#039;only&#039;&#039;&#039; directory that is used. Mafia, when first started, will have produced a load of sub-directories that it uses to store stuff. These will have names such as &amp;quot;buffs&amp;quot;, &amp;quot;ccs&amp;quot;, &amp;quot;clan&amp;quot;, &amp;quot;data&amp;quot;, &amp;quot;images&amp;quot;, &amp;quot;relay&amp;quot;, &amp;quot;scripts&amp;quot;, &amp;quot;sessions&amp;quot; and &amp;quot;settings&amp;quot; (maybe not all of those, maybe some others) with stuff inside. &lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Mac&#039;&#039;&#039; users have theirs saved under &amp;quot;~/Library/Application Support/KoLmafia/&amp;quot;&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Linux&#039;&#039;&#039; Your Mafia files will be saved in a hidden folder in your home directory. Go to &amp;lt;pre&amp;gt; ~/.kolmafia &amp;lt;/pre&amp;gt; The tilde is your home directory, the period at the start makes that folder hidden. If you&#039;re using a CLI, you shouldn&#039;t have a problem. If you like GUIs, either turn on showing hidden stuff or just start one inside, like:&amp;lt;pre&amp;gt; cd ~/.kolmafia &amp;amp;&amp;amp; nautilus &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Tech Support]]&lt;/div&gt;</summary>
		<author><name>HippoKing</name></author>
	</entry>
	<entry>
		<id>https://wiki.kolmafia.us/index.php?title=Compiling_from_Source&amp;diff=9122</id>
		<title>Compiling from Source</title>
		<link rel="alternate" type="text/html" href="https://wiki.kolmafia.us/index.php?title=Compiling_from_Source&amp;diff=9122"/>
		<updated>2021-11-13T11:11:25Z</updated>

		<summary type="html">&lt;p&gt;HippoKing: /* KoLmafia has migrated to the GitHub repository and we are retooling for GIT and gradle builds. */ it&amp;#039;s no longer &amp;quot;exactly nothing&amp;quot; accurate below the line&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== GREAT BIG NEWS ===&lt;br /&gt;
&lt;br /&gt;
==KoLmafia has migrated to the GitHub repository and we are retooling for GIT and gradle builds.==&lt;br /&gt;
The Windows section of this page is currently out of date. The Linux and macOS ones have been updated.&lt;br /&gt;
&lt;br /&gt;
The good news is that the IDE setup is a lot easier.  The bad news is you&#039;ll need to take some steps to build anything.  In addition, we are discussing changing to a newer required JDK, so even these instructions will not be permanent.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To contribute to the Mafia project, you&#039;ll need to be able to install the Java Development Kit, connect to the SVN and be comfortable writing Java Code. Instructions for the first two are included below:&lt;br /&gt;
&lt;br /&gt;
==Windows==&lt;br /&gt;
# Download Tools&lt;br /&gt;
## Download and install Java Development Kit 1.8 or newer, available from [https://www.oracle.com/java/technologies/javase-downloads.html Oracle] or [https://adoptopenjdk.net AdoptOpenJDK]&lt;br /&gt;
## Download and install Subversion, from [https://subversion.apache.org/packages.html apache.org]&lt;br /&gt;
## Download and install Tortoise SVN (or of course, another SVN program)from [https://tortoisesvn.net/downloads.html tortoisesvn]&lt;br /&gt;
## Download and install ANT, from [https://ant.apache.org/bindownload.cgi apache.org]&lt;br /&gt;
# Configure Windows Environment Variables[[File:Environment vars.jpg|thumb|Win 10 Environment Variable Editor]]&lt;br /&gt;
## Windows 10&lt;br /&gt;
### Go to settings&lt;br /&gt;
### type &#039;enviro&#039; in the search&lt;br /&gt;
### click on the &#039;edit environment variables&#039; suggestion&lt;br /&gt;
### add or edit ANT_HOME, JAVA_HOME, and PATH variables&amp;lt;br&amp;gt;&#039;&#039;PATH should include ANT_HOME/bin and JAVA_HOME&#039;&#039;&amp;lt;/br&amp;gt;If ANT or JAVA installers have already set these variables, they can be updated or left alone.&lt;br /&gt;
# Get Source and Build&lt;br /&gt;
## Connect to the SVN server and download the source code for the Mafia Project. Using Tortoise SVN, you have to right-click on your desktop, select &amp;quot;SVN Checkout&amp;quot;, and put the URL of the repository as &amp;quot;svn://svn.code.sf.net/p/kolmafia/code/&amp;quot;. Leave all other settings as they are, and click OK.&lt;br /&gt;
## Copy %ANT_HOME%/bin/ant.bat to your Desktop/kolmafia/ folder. If you have set up ANT correctly (and it&#039;s hard not to - there aren&#039;t many options) then double clicking on this file should compile the program.&lt;br /&gt;
# Compiling creates a &amp;quot;build&amp;quot; and &amp;quot;dist&amp;quot; folder. The end program is in dist/Kolmafia.jar.&lt;br /&gt;
===Troubleshooting===&lt;br /&gt;
====Double-Clicking &#039;&#039;ant.bat&#039;&#039;====&lt;br /&gt;
Due to how bat files work when you double-click them, &#039;&#039;ant.bat&#039;&#039; will auto-close before you can read its output.&lt;br /&gt;
# ant assumes that builds are done from a command shell.  You&#039;ll need to run from the command shell to execute any ant target other than the default, such as &#039;&#039;ant.bat update exec&#039;&#039; or &#039;&#039;ant.bat daily&amp;lt;/br&amp;gt;ant -projecthelp&#039;&#039; will list all main targets&lt;br /&gt;
# An easy workaround is to add a &amp;quot;pause&amp;quot; near the bottom of the file before it has a chance to auto-close on you.&amp;lt;br&amp;gt;When you run it again, you&#039;ll be able to read its output and it will exit after you &#039;&#039;Press any key to continue...&#039;&#039;&lt;br /&gt;
# Alternatively, you can create a wrapper batch file that calls the existing &#039;&#039;ant.bat&#039;&#039; file and adds a pause after executing it.  This method allows you to set different ant targets and also prevents updates to ant from overwriting your modifications.&lt;br /&gt;
&amp;lt;blockquote&amp;gt;Example of a very simple MyWrapper.bat file&amp;lt;pre&amp;gt;&lt;br /&gt;
# This is a wrapper batch file&lt;br /&gt;
# First it runs ant&lt;br /&gt;
call ant.bat daily&lt;br /&gt;
# Then it pauses&lt;br /&gt;
pause&amp;lt;/pre&amp;gt;&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====&#039;&#039;tools.jar&#039;&#039; not found====&lt;br /&gt;
If you get an error message about &amp;quot;tools.jar&amp;quot; not being found, this means you&#039;re trying to build with the JRE (which doesn&#039;t contain this file) rather than the JDK (which contains it).&amp;lt;br&amp;gt;&lt;br /&gt;
To fix this, right click on &#039;&#039;my computer&#039;&#039; -&amp;gt; &#039;&#039;properties&#039;&#039; -&amp;gt; &#039;&#039;advanced system settings&#039;&#039; -&amp;gt; &#039;&#039;Environment Variables...&#039;&#039; then make sure your PATH contains a reference to the location of your JDK directory.&lt;br /&gt;
&lt;br /&gt;
==Linux==&lt;br /&gt;
&lt;br /&gt;
Do once:&lt;br /&gt;
# Install git - you probably already have this. If not, follow [https://www.atlassian.com/git/tutorials/install-git#linux this guide.]&lt;br /&gt;
# Get an appropriate JDK. The safest and easiest way to do this is with [https://adoptium.net/installation.html#x64_linux-jdk Adoptium].&lt;br /&gt;
# Clone the repo:&lt;br /&gt;
## If you have a github account:&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git clone git@github.com:kolmafia/kolmafia.git&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;If not:&amp;lt;pre&amp;gt;git clone https://github.com/kolmafia/kolmafia.git&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Do every session:&lt;br /&gt;
Set up your environment to use that JDK you just downloaded&amp;lt;pre&amp;gt; export PATH=&amp;quot;/where/you/put/that/jdk/bin:${PATH}&amp;quot;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Actually compile:&amp;lt;pre&amp;gt;cd /where/you/cloned/kolmafia&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;./gradlew clean shadowJar&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Get new updates with &amp;lt;pre&amp;gt;git pull&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You have a KoLmafia jar file that can be invoked with &amp;lt;pre&amp;gt;java -jar dist/KoLmafia-*.jar&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Do other installation steps as you wish.&lt;br /&gt;
&lt;br /&gt;
==MacOSX (updated for Git/Gradle)==&lt;br /&gt;
# Verify required packages&lt;br /&gt;
## &amp;lt;code&amp;gt;&#039;&#039;java --version&#039;&#039;&amp;lt;/code&amp;gt;&lt;br /&gt;
##* if not found or less than Java 11...  Install Java Development Kit version 17 from [https://adoptium.net Adoptium Temurin]&lt;br /&gt;
## &amp;lt;code&amp;gt;&#039;&#039;git --version&#039;&#039;&amp;lt;/code&amp;gt;&lt;br /&gt;
##* If not found ...  Install git:  Atlassian has a great document on [https://www.atlassian.com/git/tutorials/install-git the various ways to install Git]&lt;br /&gt;
# Configure development environment&amp;lt;br&amp;gt;Most of these steps can be included in &#039;&#039;&amp;lt;code&amp;gt;.profile&amp;lt;/code&amp;gt;&#039;&#039; or the equivalent for your terminal of choice.&lt;br /&gt;
## In the terminal set JAVA_HOME to the java home directory. &amp;lt;br&amp;gt;&#039;&#039;&amp;lt;code&amp;gt;/usr/libexec/java_home -V&amp;lt;/code&amp;gt;&#039;&#039; will list all known values for java_home.&amp;lt;br&amp;gt;If you have multiple copies of java, choose the version you want to use&#039;&#039;.&#039;&#039; &amp;lt;code&amp;gt;&#039;&#039;export JAVA_HOME=`/usr/libexec/java_home -v17&#039;&#039;&amp;lt;/code&amp;gt;&lt;br /&gt;
# Open a new terminal window and navigate to the directory to which you wish to create kolmafia (e.g. &amp;lt;code&amp;gt;cd ~/projects&amp;lt;/code&amp;gt;, or some similar directory)&lt;br /&gt;
# Clone the source code for the KoLmafia Project.&amp;lt;br&amp;gt;&#039;&#039;&amp;lt;code&amp;gt;git clone git@github.com:kolmafia/kolmafia.git&amp;lt;/code&amp;gt;&#039;&#039;&lt;br /&gt;
# Compile KoLmafia with the Gradle wrapper &#039;&#039;&amp;lt;code&amp;gt;cd kolmafia &amp;amp;&amp;amp; ./gradlew runShadow&amp;lt;/code&amp;gt;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Optional ===&lt;br /&gt;
If you intend to commit code to GitHub, you will need to follow GitHub&#039;s instructions for [https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token adding a Personal Access Token (PAT)]&lt;br /&gt;
&#039;&#039;[[Category:Tech Support]]&#039;&#039;&lt;/div&gt;</summary>
		<author><name>HippoKing</name></author>
	</entry>
	<entry>
		<id>https://wiki.kolmafia.us/index.php?title=Compiling_from_Source&amp;diff=9121</id>
		<title>Compiling from Source</title>
		<link rel="alternate" type="text/html" href="https://wiki.kolmafia.us/index.php?title=Compiling_from_Source&amp;diff=9121"/>
		<updated>2021-11-13T10:42:37Z</updated>

		<summary type="html">&lt;p&gt;HippoKing: /* Linux */ github can&amp;#039;t do anonymous clones except by http&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== GREAT BIG NEWS ===&lt;br /&gt;
&lt;br /&gt;
==KoLmafia has migrated to the GitHub repository and we are retooling for GIT and gradle builds.==&lt;br /&gt;
Exactly nothing below here is accurate, and we&#039;ll need to do a thorough cleanup of this page and the IDE setup page.&lt;br /&gt;
&lt;br /&gt;
The good news is that the IDE setup is a lot easier.  The bad news is you&#039;ll need to take some steps to build anything.  In addition, we are discussing changing to a newer required JDK, so even these instructions will not be permanent.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To contribute to the Mafia project, you&#039;ll need to be able to install the Java Development Kit, connect to the SVN and be comfortable writing Java Code. Instructions for the first two are included below:&lt;br /&gt;
&lt;br /&gt;
==Windows==&lt;br /&gt;
# Download Tools&lt;br /&gt;
## Download and install Java Development Kit 1.8 or newer, available from [https://www.oracle.com/java/technologies/javase-downloads.html Oracle] or [https://adoptopenjdk.net AdoptOpenJDK]&lt;br /&gt;
## Download and install Subversion, from [https://subversion.apache.org/packages.html apache.org]&lt;br /&gt;
## Download and install Tortoise SVN (or of course, another SVN program)from [https://tortoisesvn.net/downloads.html tortoisesvn]&lt;br /&gt;
## Download and install ANT, from [https://ant.apache.org/bindownload.cgi apache.org]&lt;br /&gt;
# Configure Windows Environment Variables[[File:Environment vars.jpg|thumb|Win 10 Environment Variable Editor]]&lt;br /&gt;
## Windows 10&lt;br /&gt;
### Go to settings&lt;br /&gt;
### type &#039;enviro&#039; in the search&lt;br /&gt;
### click on the &#039;edit environment variables&#039; suggestion&lt;br /&gt;
### add or edit ANT_HOME, JAVA_HOME, and PATH variables&amp;lt;br&amp;gt;&#039;&#039;PATH should include ANT_HOME/bin and JAVA_HOME&#039;&#039;&amp;lt;/br&amp;gt;If ANT or JAVA installers have already set these variables, they can be updated or left alone.&lt;br /&gt;
# Get Source and Build&lt;br /&gt;
## Connect to the SVN server and download the source code for the Mafia Project. Using Tortoise SVN, you have to right-click on your desktop, select &amp;quot;SVN Checkout&amp;quot;, and put the URL of the repository as &amp;quot;svn://svn.code.sf.net/p/kolmafia/code/&amp;quot;. Leave all other settings as they are, and click OK.&lt;br /&gt;
## Copy %ANT_HOME%/bin/ant.bat to your Desktop/kolmafia/ folder. If you have set up ANT correctly (and it&#039;s hard not to - there aren&#039;t many options) then double clicking on this file should compile the program.&lt;br /&gt;
# Compiling creates a &amp;quot;build&amp;quot; and &amp;quot;dist&amp;quot; folder. The end program is in dist/Kolmafia.jar.&lt;br /&gt;
===Troubleshooting===&lt;br /&gt;
====Double-Clicking &#039;&#039;ant.bat&#039;&#039;====&lt;br /&gt;
Due to how bat files work when you double-click them, &#039;&#039;ant.bat&#039;&#039; will auto-close before you can read its output.&lt;br /&gt;
# ant assumes that builds are done from a command shell.  You&#039;ll need to run from the command shell to execute any ant target other than the default, such as &#039;&#039;ant.bat update exec&#039;&#039; or &#039;&#039;ant.bat daily&amp;lt;/br&amp;gt;ant -projecthelp&#039;&#039; will list all main targets&lt;br /&gt;
# An easy workaround is to add a &amp;quot;pause&amp;quot; near the bottom of the file before it has a chance to auto-close on you.&amp;lt;br&amp;gt;When you run it again, you&#039;ll be able to read its output and it will exit after you &#039;&#039;Press any key to continue...&#039;&#039;&lt;br /&gt;
# Alternatively, you can create a wrapper batch file that calls the existing &#039;&#039;ant.bat&#039;&#039; file and adds a pause after executing it.  This method allows you to set different ant targets and also prevents updates to ant from overwriting your modifications.&lt;br /&gt;
&amp;lt;blockquote&amp;gt;Example of a very simple MyWrapper.bat file&amp;lt;pre&amp;gt;&lt;br /&gt;
# This is a wrapper batch file&lt;br /&gt;
# First it runs ant&lt;br /&gt;
call ant.bat daily&lt;br /&gt;
# Then it pauses&lt;br /&gt;
pause&amp;lt;/pre&amp;gt;&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====&#039;&#039;tools.jar&#039;&#039; not found====&lt;br /&gt;
If you get an error message about &amp;quot;tools.jar&amp;quot; not being found, this means you&#039;re trying to build with the JRE (which doesn&#039;t contain this file) rather than the JDK (which contains it).&amp;lt;br&amp;gt;&lt;br /&gt;
To fix this, right click on &#039;&#039;my computer&#039;&#039; -&amp;gt; &#039;&#039;properties&#039;&#039; -&amp;gt; &#039;&#039;advanced system settings&#039;&#039; -&amp;gt; &#039;&#039;Environment Variables...&#039;&#039; then make sure your PATH contains a reference to the location of your JDK directory.&lt;br /&gt;
&lt;br /&gt;
==Linux==&lt;br /&gt;
&lt;br /&gt;
Do once:&lt;br /&gt;
# Install git - you probably already have this. If not, follow [https://www.atlassian.com/git/tutorials/install-git#linux this guide.]&lt;br /&gt;
# Get an appropriate JDK. The safest and easiest way to do this is with [https://adoptium.net/installation.html#x64_linux-jdk Adoptium].&lt;br /&gt;
# Clone the repo:&lt;br /&gt;
## If you have a github account:&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git clone git@github.com:kolmafia/kolmafia.git&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;If not:&amp;lt;pre&amp;gt;git clone https://github.com/kolmafia/kolmafia.git&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Do every session:&lt;br /&gt;
Set up your environment to use that JDK you just downloaded&amp;lt;pre&amp;gt; export PATH=&amp;quot;/where/you/put/that/jdk/bin:${PATH}&amp;quot;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Actually compile:&amp;lt;pre&amp;gt;cd /where/you/cloned/kolmafia&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;./gradlew clean shadowJar&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Get new updates with &amp;lt;pre&amp;gt;git pull&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You have a KoLmafia jar file that can be invoked with &amp;lt;pre&amp;gt;java -jar dist/KoLmafia-*.jar&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Do other installation steps as you wish.&lt;br /&gt;
&lt;br /&gt;
==MacOSX (updated for Git/Gradle)==&lt;br /&gt;
# Verify required packages&lt;br /&gt;
## &amp;lt;code&amp;gt;&#039;&#039;java --version&#039;&#039;&amp;lt;/code&amp;gt;&lt;br /&gt;
##* if not found or less than Java 11...  Install Java Development Kit version 17 from [https://adoptium.net Adoptium Temurin]&lt;br /&gt;
## &amp;lt;code&amp;gt;&#039;&#039;git --version&#039;&#039;&amp;lt;/code&amp;gt;&lt;br /&gt;
##* If not found ...  Install git:  Atlassian has a great document on [https://www.atlassian.com/git/tutorials/install-git the various ways to install Git]&lt;br /&gt;
# Configure development environment&amp;lt;br&amp;gt;Most of these steps can be included in &#039;&#039;&amp;lt;code&amp;gt;.profile&amp;lt;/code&amp;gt;&#039;&#039; or the equivalent for your terminal of choice.&lt;br /&gt;
## In the terminal set JAVA_HOME to the java home directory. &amp;lt;br&amp;gt;&#039;&#039;&amp;lt;code&amp;gt;/usr/libexec/java_home -V&amp;lt;/code&amp;gt;&#039;&#039; will list all known values for java_home.&amp;lt;br&amp;gt;If you have multiple copies of java, choose the version you want to use&#039;&#039;.&#039;&#039; &amp;lt;code&amp;gt;&#039;&#039;export JAVA_HOME=`/usr/libexec/java_home -v17&#039;&#039;&amp;lt;/code&amp;gt;&lt;br /&gt;
# Open a new terminal window and navigate to the directory to which you wish to create kolmafia (e.g. &amp;lt;code&amp;gt;cd ~/projects&amp;lt;/code&amp;gt;, or some similar directory)&lt;br /&gt;
# Clone the source code for the KoLmafia Project.&amp;lt;br&amp;gt;&#039;&#039;&amp;lt;code&amp;gt;git clone git@github.com:kolmafia/kolmafia.git&amp;lt;/code&amp;gt;&#039;&#039;&lt;br /&gt;
# Compile KoLmafia with the Gradle wrapper &#039;&#039;&amp;lt;code&amp;gt;cd kolmafia &amp;amp;&amp;amp; ./gradlew runShadow&amp;lt;/code&amp;gt;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Optional ===&lt;br /&gt;
If you intend to commit code to GitHub, you will need to follow GitHub&#039;s instructions for [https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token adding a Personal Access Token (PAT)]&lt;br /&gt;
&#039;&#039;[[Category:Tech Support]]&#039;&#039;&lt;/div&gt;</summary>
		<author><name>HippoKing</name></author>
	</entry>
	<entry>
		<id>https://wiki.kolmafia.us/index.php?title=Compiling_from_Source&amp;diff=9120</id>
		<title>Compiling from Source</title>
		<link rel="alternate" type="text/html" href="https://wiki.kolmafia.us/index.php?title=Compiling_from_Source&amp;diff=9120"/>
		<updated>2021-11-13T10:34:21Z</updated>

		<summary type="html">&lt;p&gt;HippoKing: /* Linux */ god I suck at wiki syntax&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== GREAT BIG NEWS ===&lt;br /&gt;
&lt;br /&gt;
==KoLmafia has migrated to the GitHub repository and we are retooling for GIT and gradle builds.==&lt;br /&gt;
Exactly nothing below here is accurate, and we&#039;ll need to do a thorough cleanup of this page and the IDE setup page.&lt;br /&gt;
&lt;br /&gt;
The good news is that the IDE setup is a lot easier.  The bad news is you&#039;ll need to take some steps to build anything.  In addition, we are discussing changing to a newer required JDK, so even these instructions will not be permanent.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To contribute to the Mafia project, you&#039;ll need to be able to install the Java Development Kit, connect to the SVN and be comfortable writing Java Code. Instructions for the first two are included below:&lt;br /&gt;
&lt;br /&gt;
==Windows==&lt;br /&gt;
# Download Tools&lt;br /&gt;
## Download and install Java Development Kit 1.8 or newer, available from [https://www.oracle.com/java/technologies/javase-downloads.html Oracle] or [https://adoptopenjdk.net AdoptOpenJDK]&lt;br /&gt;
## Download and install Subversion, from [https://subversion.apache.org/packages.html apache.org]&lt;br /&gt;
## Download and install Tortoise SVN (or of course, another SVN program)from [https://tortoisesvn.net/downloads.html tortoisesvn]&lt;br /&gt;
## Download and install ANT, from [https://ant.apache.org/bindownload.cgi apache.org]&lt;br /&gt;
# Configure Windows Environment Variables[[File:Environment vars.jpg|thumb|Win 10 Environment Variable Editor]]&lt;br /&gt;
## Windows 10&lt;br /&gt;
### Go to settings&lt;br /&gt;
### type &#039;enviro&#039; in the search&lt;br /&gt;
### click on the &#039;edit environment variables&#039; suggestion&lt;br /&gt;
### add or edit ANT_HOME, JAVA_HOME, and PATH variables&amp;lt;br&amp;gt;&#039;&#039;PATH should include ANT_HOME/bin and JAVA_HOME&#039;&#039;&amp;lt;/br&amp;gt;If ANT or JAVA installers have already set these variables, they can be updated or left alone.&lt;br /&gt;
# Get Source and Build&lt;br /&gt;
## Connect to the SVN server and download the source code for the Mafia Project. Using Tortoise SVN, you have to right-click on your desktop, select &amp;quot;SVN Checkout&amp;quot;, and put the URL of the repository as &amp;quot;svn://svn.code.sf.net/p/kolmafia/code/&amp;quot;. Leave all other settings as they are, and click OK.&lt;br /&gt;
## Copy %ANT_HOME%/bin/ant.bat to your Desktop/kolmafia/ folder. If you have set up ANT correctly (and it&#039;s hard not to - there aren&#039;t many options) then double clicking on this file should compile the program.&lt;br /&gt;
# Compiling creates a &amp;quot;build&amp;quot; and &amp;quot;dist&amp;quot; folder. The end program is in dist/Kolmafia.jar.&lt;br /&gt;
===Troubleshooting===&lt;br /&gt;
====Double-Clicking &#039;&#039;ant.bat&#039;&#039;====&lt;br /&gt;
Due to how bat files work when you double-click them, &#039;&#039;ant.bat&#039;&#039; will auto-close before you can read its output.&lt;br /&gt;
# ant assumes that builds are done from a command shell.  You&#039;ll need to run from the command shell to execute any ant target other than the default, such as &#039;&#039;ant.bat update exec&#039;&#039; or &#039;&#039;ant.bat daily&amp;lt;/br&amp;gt;ant -projecthelp&#039;&#039; will list all main targets&lt;br /&gt;
# An easy workaround is to add a &amp;quot;pause&amp;quot; near the bottom of the file before it has a chance to auto-close on you.&amp;lt;br&amp;gt;When you run it again, you&#039;ll be able to read its output and it will exit after you &#039;&#039;Press any key to continue...&#039;&#039;&lt;br /&gt;
# Alternatively, you can create a wrapper batch file that calls the existing &#039;&#039;ant.bat&#039;&#039; file and adds a pause after executing it.  This method allows you to set different ant targets and also prevents updates to ant from overwriting your modifications.&lt;br /&gt;
&amp;lt;blockquote&amp;gt;Example of a very simple MyWrapper.bat file&amp;lt;pre&amp;gt;&lt;br /&gt;
# This is a wrapper batch file&lt;br /&gt;
# First it runs ant&lt;br /&gt;
call ant.bat daily&lt;br /&gt;
# Then it pauses&lt;br /&gt;
pause&amp;lt;/pre&amp;gt;&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====&#039;&#039;tools.jar&#039;&#039; not found====&lt;br /&gt;
If you get an error message about &amp;quot;tools.jar&amp;quot; not being found, this means you&#039;re trying to build with the JRE (which doesn&#039;t contain this file) rather than the JDK (which contains it).&amp;lt;br&amp;gt;&lt;br /&gt;
To fix this, right click on &#039;&#039;my computer&#039;&#039; -&amp;gt; &#039;&#039;properties&#039;&#039; -&amp;gt; &#039;&#039;advanced system settings&#039;&#039; -&amp;gt; &#039;&#039;Environment Variables...&#039;&#039; then make sure your PATH contains a reference to the location of your JDK directory.&lt;br /&gt;
&lt;br /&gt;
==Linux==&lt;br /&gt;
&lt;br /&gt;
Do once:&lt;br /&gt;
# Install git - you probably already have this. If not, follow [https://www.atlassian.com/git/tutorials/install-git#linux this guide.]&lt;br /&gt;
# Get an appropriate JDK. The safest and easiest way to do this is with [https://adoptium.net/installation.html#x64_linux-jdk Adoptium].&lt;br /&gt;
# Clone the repo: &amp;lt;pre&amp;gt;git clone https://github.com/kolmafia/kolmafia.git&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Do every session:&lt;br /&gt;
Set up your environment to use that JDK you just downloaded&amp;lt;pre&amp;gt; export PATH=&amp;quot;/where/you/put/that/jdk/bin:${PATH}&amp;quot;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Actually compile:&amp;lt;pre&amp;gt;cd /where/you/cloned/kolmafia&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;./gradlew clean shadowJar&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Get new updates with &amp;lt;pre&amp;gt;git pull&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You have a KoLmafia jar file that can be invoked with &amp;lt;pre&amp;gt;java -jar dist/KoLmafia-*.jar&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Do other installation steps as you wish.&lt;br /&gt;
&lt;br /&gt;
==MacOSX (updated for Git/Gradle)==&lt;br /&gt;
# Verify required packages&lt;br /&gt;
## &amp;lt;code&amp;gt;&#039;&#039;java --version&#039;&#039;&amp;lt;/code&amp;gt;&lt;br /&gt;
##* if not found or less than Java 11...  Install Java Development Kit version 17 from [https://adoptium.net Adoptium Temurin]&lt;br /&gt;
## &amp;lt;code&amp;gt;&#039;&#039;git --version&#039;&#039;&amp;lt;/code&amp;gt;&lt;br /&gt;
##* If not found ...  Install git:  Atlassian has a great document on [https://www.atlassian.com/git/tutorials/install-git the various ways to install Git]&lt;br /&gt;
# Configure development environment&amp;lt;br&amp;gt;Most of these steps can be included in &#039;&#039;&amp;lt;code&amp;gt;.profile&amp;lt;/code&amp;gt;&#039;&#039; or the equivalent for your terminal of choice.&lt;br /&gt;
## In the terminal set JAVA_HOME to the java home directory. &amp;lt;br&amp;gt;&#039;&#039;&amp;lt;code&amp;gt;/usr/libexec/java_home -V&amp;lt;/code&amp;gt;&#039;&#039; will list all known values for java_home.&amp;lt;br&amp;gt;If you have multiple copies of java, choose the version you want to use&#039;&#039;.&#039;&#039; &amp;lt;code&amp;gt;&#039;&#039;export JAVA_HOME=`/usr/libexec/java_home -v17&#039;&#039;&amp;lt;/code&amp;gt;&lt;br /&gt;
# Open a new terminal window and navigate to the directory to which you wish to create kolmafia (e.g. &amp;lt;code&amp;gt;cd ~/projects&amp;lt;/code&amp;gt;, or some similar directory)&lt;br /&gt;
# Clone the source code for the KoLmafia Project.&amp;lt;br&amp;gt;&#039;&#039;&amp;lt;code&amp;gt;git clone git@github.com:kolmafia/kolmafia.git&amp;lt;/code&amp;gt;&#039;&#039;&lt;br /&gt;
# Compile KoLmafia with the Gradle wrapper &#039;&#039;&amp;lt;code&amp;gt;cd kolmafia &amp;amp;&amp;amp; ./gradlew runShadow&amp;lt;/code&amp;gt;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Optional ===&lt;br /&gt;
If you intend to commit code to GitHub, you will need to follow GitHub&#039;s instructions for [https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token adding a Personal Access Token (PAT)]&lt;br /&gt;
&#039;&#039;[[Category:Tech Support]]&#039;&#039;&lt;/div&gt;</summary>
		<author><name>HippoKing</name></author>
	</entry>
	<entry>
		<id>https://wiki.kolmafia.us/index.php?title=Compiling_from_Source&amp;diff=9119</id>
		<title>Compiling from Source</title>
		<link rel="alternate" type="text/html" href="https://wiki.kolmafia.us/index.php?title=Compiling_from_Source&amp;diff=9119"/>
		<updated>2021-11-13T10:31:40Z</updated>

		<summary type="html">&lt;p&gt;HippoKing: /* Linux */ remove outdated instructions, suggest Adoptium for JDK&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== GREAT BIG NEWS ===&lt;br /&gt;
&lt;br /&gt;
==KoLmafia has migrated to the GitHub repository and we are retooling for GIT and gradle builds.==&lt;br /&gt;
Exactly nothing below here is accurate, and we&#039;ll need to do a thorough cleanup of this page and the IDE setup page.&lt;br /&gt;
&lt;br /&gt;
The good news is that the IDE setup is a lot easier.  The bad news is you&#039;ll need to take some steps to build anything.  In addition, we are discussing changing to a newer required JDK, so even these instructions will not be permanent.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To contribute to the Mafia project, you&#039;ll need to be able to install the Java Development Kit, connect to the SVN and be comfortable writing Java Code. Instructions for the first two are included below:&lt;br /&gt;
&lt;br /&gt;
==Windows==&lt;br /&gt;
# Download Tools&lt;br /&gt;
## Download and install Java Development Kit 1.8 or newer, available from [https://www.oracle.com/java/technologies/javase-downloads.html Oracle] or [https://adoptopenjdk.net AdoptOpenJDK]&lt;br /&gt;
## Download and install Subversion, from [https://subversion.apache.org/packages.html apache.org]&lt;br /&gt;
## Download and install Tortoise SVN (or of course, another SVN program)from [https://tortoisesvn.net/downloads.html tortoisesvn]&lt;br /&gt;
## Download and install ANT, from [https://ant.apache.org/bindownload.cgi apache.org]&lt;br /&gt;
# Configure Windows Environment Variables[[File:Environment vars.jpg|thumb|Win 10 Environment Variable Editor]]&lt;br /&gt;
## Windows 10&lt;br /&gt;
### Go to settings&lt;br /&gt;
### type &#039;enviro&#039; in the search&lt;br /&gt;
### click on the &#039;edit environment variables&#039; suggestion&lt;br /&gt;
### add or edit ANT_HOME, JAVA_HOME, and PATH variables&amp;lt;br&amp;gt;&#039;&#039;PATH should include ANT_HOME/bin and JAVA_HOME&#039;&#039;&amp;lt;/br&amp;gt;If ANT or JAVA installers have already set these variables, they can be updated or left alone.&lt;br /&gt;
# Get Source and Build&lt;br /&gt;
## Connect to the SVN server and download the source code for the Mafia Project. Using Tortoise SVN, you have to right-click on your desktop, select &amp;quot;SVN Checkout&amp;quot;, and put the URL of the repository as &amp;quot;svn://svn.code.sf.net/p/kolmafia/code/&amp;quot;. Leave all other settings as they are, and click OK.&lt;br /&gt;
## Copy %ANT_HOME%/bin/ant.bat to your Desktop/kolmafia/ folder. If you have set up ANT correctly (and it&#039;s hard not to - there aren&#039;t many options) then double clicking on this file should compile the program.&lt;br /&gt;
# Compiling creates a &amp;quot;build&amp;quot; and &amp;quot;dist&amp;quot; folder. The end program is in dist/Kolmafia.jar.&lt;br /&gt;
===Troubleshooting===&lt;br /&gt;
====Double-Clicking &#039;&#039;ant.bat&#039;&#039;====&lt;br /&gt;
Due to how bat files work when you double-click them, &#039;&#039;ant.bat&#039;&#039; will auto-close before you can read its output.&lt;br /&gt;
# ant assumes that builds are done from a command shell.  You&#039;ll need to run from the command shell to execute any ant target other than the default, such as &#039;&#039;ant.bat update exec&#039;&#039; or &#039;&#039;ant.bat daily&amp;lt;/br&amp;gt;ant -projecthelp&#039;&#039; will list all main targets&lt;br /&gt;
# An easy workaround is to add a &amp;quot;pause&amp;quot; near the bottom of the file before it has a chance to auto-close on you.&amp;lt;br&amp;gt;When you run it again, you&#039;ll be able to read its output and it will exit after you &#039;&#039;Press any key to continue...&#039;&#039;&lt;br /&gt;
# Alternatively, you can create a wrapper batch file that calls the existing &#039;&#039;ant.bat&#039;&#039; file and adds a pause after executing it.  This method allows you to set different ant targets and also prevents updates to ant from overwriting your modifications.&lt;br /&gt;
&amp;lt;blockquote&amp;gt;Example of a very simple MyWrapper.bat file&amp;lt;pre&amp;gt;&lt;br /&gt;
# This is a wrapper batch file&lt;br /&gt;
# First it runs ant&lt;br /&gt;
call ant.bat daily&lt;br /&gt;
# Then it pauses&lt;br /&gt;
pause&amp;lt;/pre&amp;gt;&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====&#039;&#039;tools.jar&#039;&#039; not found====&lt;br /&gt;
If you get an error message about &amp;quot;tools.jar&amp;quot; not being found, this means you&#039;re trying to build with the JRE (which doesn&#039;t contain this file) rather than the JDK (which contains it).&amp;lt;br&amp;gt;&lt;br /&gt;
To fix this, right click on &#039;&#039;my computer&#039;&#039; -&amp;gt; &#039;&#039;properties&#039;&#039; -&amp;gt; &#039;&#039;advanced system settings&#039;&#039; -&amp;gt; &#039;&#039;Environment Variables...&#039;&#039; then make sure your PATH contains a reference to the location of your JDK directory.&lt;br /&gt;
&lt;br /&gt;
==Linux==&lt;br /&gt;
&lt;br /&gt;
Do once:&lt;br /&gt;
# Install git - you probably already have this. If not, follow [https://www.atlassian.com/git/tutorials/install-git#linux this guide.]&lt;br /&gt;
# Get an appropriate JDK. The safest and easiest way to do this is with [https://adoptium.net/installation.html#x64_linux-jdk Adoptium].&lt;br /&gt;
# Clone the repo: &amp;lt;pre&amp;gt;git clone https://github.com/kolmafia/kolmafia.git&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Do every session:&lt;br /&gt;
# Set up your environment to use that JDK you just downloaded&lt;br /&gt;
&amp;lt;pre&amp;gt; export PATH=&amp;quot;/where/you/put/that/jdk/bin:${PATH}&amp;quot;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Actually compile:&lt;br /&gt;
#&amp;lt;pre&amp;gt;cd /where/you/cloned/kolmafia&lt;br /&gt;
./gradlew clean shadowJar&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Get new updates with &amp;lt;pre&amp;gt;git pull&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You have a KoLmafia jar file that can be invoked with &amp;lt;pre&amp;gt;java -jar dist/KoLmafia-*.jar&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Do other installation steps as you wish.&lt;br /&gt;
&lt;br /&gt;
==MacOSX (updated for Git/Gradle)==&lt;br /&gt;
# Verify required packages&lt;br /&gt;
## &amp;lt;code&amp;gt;&#039;&#039;java --version&#039;&#039;&amp;lt;/code&amp;gt;&lt;br /&gt;
##* if not found or less than Java 11...  Install Java Development Kit version 17 from [https://adoptium.net Adoptium Temurin]&lt;br /&gt;
## &amp;lt;code&amp;gt;&#039;&#039;git --version&#039;&#039;&amp;lt;/code&amp;gt;&lt;br /&gt;
##* If not found ...  Install git:  Atlassian has a great document on [https://www.atlassian.com/git/tutorials/install-git the various ways to install Git]&lt;br /&gt;
# Configure development environment&amp;lt;br&amp;gt;Most of these steps can be included in &#039;&#039;&amp;lt;code&amp;gt;.profile&amp;lt;/code&amp;gt;&#039;&#039; or the equivalent for your terminal of choice.&lt;br /&gt;
## In the terminal set JAVA_HOME to the java home directory. &amp;lt;br&amp;gt;&#039;&#039;&amp;lt;code&amp;gt;/usr/libexec/java_home -V&amp;lt;/code&amp;gt;&#039;&#039; will list all known values for java_home.&amp;lt;br&amp;gt;If you have multiple copies of java, choose the version you want to use&#039;&#039;.&#039;&#039; &amp;lt;code&amp;gt;&#039;&#039;export JAVA_HOME=`/usr/libexec/java_home -v17&#039;&#039;&amp;lt;/code&amp;gt;&lt;br /&gt;
# Open a new terminal window and navigate to the directory to which you wish to create kolmafia (e.g. &amp;lt;code&amp;gt;cd ~/projects&amp;lt;/code&amp;gt;, or some similar directory)&lt;br /&gt;
# Clone the source code for the KoLmafia Project.&amp;lt;br&amp;gt;&#039;&#039;&amp;lt;code&amp;gt;git clone git@github.com:kolmafia/kolmafia.git&amp;lt;/code&amp;gt;&#039;&#039;&lt;br /&gt;
# Compile KoLmafia with the Gradle wrapper &#039;&#039;&amp;lt;code&amp;gt;cd kolmafia &amp;amp;&amp;amp; ./gradlew runShadow&amp;lt;/code&amp;gt;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Optional ===&lt;br /&gt;
If you intend to commit code to GitHub, you will need to follow GitHub&#039;s instructions for [https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token adding a Personal Access Token (PAT)]&lt;br /&gt;
&#039;&#039;[[Category:Tech Support]]&#039;&#039;&lt;/div&gt;</summary>
		<author><name>HippoKing</name></author>
	</entry>
	<entry>
		<id>https://wiki.kolmafia.us/index.php?title=Compiling_from_Source&amp;diff=8991</id>
		<title>Compiling from Source</title>
		<link rel="alternate" type="text/html" href="https://wiki.kolmafia.us/index.php?title=Compiling_from_Source&amp;diff=8991"/>
		<updated>2021-04-17T23:34:12Z</updated>

		<summary type="html">&lt;p&gt;HippoKing: /* Linux */  no need to specific a version, use java latest&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;To contribute to the Mafia project, you&#039;ll need to be able to install the Java Development Kit, connect to the SVN and be comfortable writing Java Code. Instructions for the first two are included below:&lt;br /&gt;
&lt;br /&gt;
==Windows==&lt;br /&gt;
# Download Tools&lt;br /&gt;
## Download and install Java Development Kit 1.8 or newer, available from [https://www.oracle.com/java/technologies/javase-downloads.html Oracle] or [https://adoptopenjdk.net AdoptOpenJDK]&lt;br /&gt;
## Download and install Subversion, from [https://subversion.apache.org/packages.html apache.org]&lt;br /&gt;
## Download and install Tortoise SVN (or of course, another SVN program)from [https://tortoisesvn.net/downloads.html tortoisesvn]&lt;br /&gt;
## Download and install ANT, from [https://ant.apache.org/bindownload.cgi apache.org]&lt;br /&gt;
# Configure Windows Environment Variables[[File:Environment vars.jpg|thumb|Win 10 Environment Variable Editor]]&lt;br /&gt;
## Windows 10&lt;br /&gt;
### Go to settings&lt;br /&gt;
### type &#039;enviro&#039; in the search&lt;br /&gt;
### click on the &#039;edit environment variables&#039; suggestion&lt;br /&gt;
### add or edit ANT_HOME, JAVA_HOME, and PATH variables&amp;lt;br&amp;gt;&#039;&#039;PATH should include ANT_HOME/bin and JAVA_HOME&#039;&#039;&amp;lt;/br&amp;gt;If ANT or JAVA installers have already set these variables, they can be updated or left alone.&lt;br /&gt;
# Get Source and Build&lt;br /&gt;
## Connect to the SVN server and download the source code for the Mafia Project. Using Tortoise SVN, you have to right-click on your desktop, select &amp;quot;SVN Checkout&amp;quot;, and put the URL of the repository as &amp;quot;svn://svn.code.sf.net/p/kolmafia/code/&amp;quot;. Leave all other settings as they are, and click OK.&lt;br /&gt;
## Copy %ANT_HOME%/bin/ant.bat to your Desktop/kolmafia/ folder. If you have set up ANT correctly (and it&#039;s hard not to - there aren&#039;t many options) then double clicking on this file should compile the program.&lt;br /&gt;
# Compiling creates a &amp;quot;build&amp;quot; and &amp;quot;dist&amp;quot; folder. The end program is in dist/Kolmafia.jar.&lt;br /&gt;
===Troubleshooting===&lt;br /&gt;
====Double-Clicking &#039;&#039;ant.bat&#039;&#039;====&lt;br /&gt;
Due to how bat files work when you double-click them, &#039;&#039;ant.bat&#039;&#039; will auto-close before you can read its output.&lt;br /&gt;
# ant assumes that builds are done from a command shell.  You&#039;ll need to run from the command shell to execute any ant target other than the default, such as &#039;&#039;ant.bat update exec&#039;&#039; or &#039;&#039;ant.bat daily&amp;lt;/br&amp;gt;ant -projecthelp&#039;&#039; will list all main targets&lt;br /&gt;
# An easy workaround is to add a &amp;quot;pause&amp;quot; near the bottom of the file before it has a chance to auto-close on you.&amp;lt;br&amp;gt;When you run it again, you&#039;ll be able to read its output and it will exit after you &#039;&#039;Press any key to continue...&#039;&#039;&lt;br /&gt;
# Alternatively, you can create a wrapper batch file that calls the existing &#039;&#039;ant.bat&#039;&#039; file and adds a pause after executing it.  This method allows you to set different ant targets and also prevents updates to ant from overwriting your modifications.&lt;br /&gt;
&amp;lt;blockquote&amp;gt;Example of a very simple MyWrapper.bat file&amp;lt;pre&amp;gt;&lt;br /&gt;
# This is a wrapper batch file&lt;br /&gt;
# First it runs ant&lt;br /&gt;
call ant.bat daily&lt;br /&gt;
# Then it pauses&lt;br /&gt;
pause&amp;lt;/pre&amp;gt;&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====&#039;&#039;tools.jar&#039;&#039; not found====&lt;br /&gt;
If you get an error message about &amp;quot;tools.jar&amp;quot; not being found, this means you&#039;re trying to build with the JRE (which doesn&#039;t contain this file) rather than the JDK (which contains it).&amp;lt;br&amp;gt;&lt;br /&gt;
To fix this, right click on &#039;&#039;my computer&#039;&#039; -&amp;gt; &#039;&#039;properties&#039;&#039; -&amp;gt; &#039;&#039;advanced system settings&#039;&#039; -&amp;gt; &#039;&#039;Environment Variables...&#039;&#039; then make sure your PATH contains a reference to the location of your JDK directory.&lt;br /&gt;
&lt;br /&gt;
==Linux==&lt;br /&gt;
&lt;br /&gt;
# Install Sun Java Development Kit ( debian: apt-get install sun-java6-jdk )&lt;br /&gt;
# Install Subversion ( debian: apt-get install svn )&lt;br /&gt;
# Install Ant ( debian: apt-get install ant )&lt;br /&gt;
# Connect to the SVN server and download the source code for the Mafia Project. ( svn checkout svn://svn.code.sf.net/p/kolmafia/code/ kolmafia )&lt;br /&gt;
# Verify tou are using sun-java with ( debian: update-alternatives --all )&lt;br /&gt;
# I had to change $JAVA_HOME to compile ( export JAVA_HOME=/usr/lib/jvm/java-6-sun-1.6.0.12 )&lt;br /&gt;
# Compile kolmafia with Ant ( debian: cd kolmafia &amp;amp;&amp;amp; ant debian )&lt;br /&gt;
# Install kolmafia ( debian: cd dist &amp;amp;&amp;amp; dpkg -i kolmafia*.deb )&lt;br /&gt;
&lt;br /&gt;
===Fedora (or probably other RPM systems)===&lt;br /&gt;
&lt;br /&gt;
# Install Subversion: &amp;lt;pre&amp;gt;sudo yum install sqlite-devel subversion &amp;lt;/pre&amp;gt;&lt;br /&gt;
# Install Java JDK: &amp;lt;pre&amp;gt;sudo yum install java-latest-openjdk-devel&amp;lt;/pre&amp;gt;&lt;br /&gt;
# Install Ant: &amp;lt;pre&amp;gt;sudo yum install ant&amp;lt;/pre&amp;gt;&lt;br /&gt;
# Checkout: &amp;lt;pre&amp;gt;svn checkout svn://svn.code.sf.net/p/kolmafia/code/ kolmafia&amp;lt;/pre&amp;gt;&lt;br /&gt;
# Build: &amp;lt;pre&amp;gt;cd kolmafia &amp;amp;&amp;amp; ant&amp;lt;/pre&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You have a KoLmafia jar file that can be invoked with &amp;lt;pre&amp;gt;java -jar dist/KoLmafia-*.jar&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Do other installation steps as you wish.&lt;br /&gt;
&lt;br /&gt;
==MacOSX==&lt;br /&gt;
# Install required packages&amp;lt;/br&amp;gt;&#039;&#039;MacOS X packages for Java, subversion, and ANT may also be installed via a package manager like [https://brew.sh Homebrew] or [https://www.macports.org MacPorts].  The instructions are written for a direct installation of the packages.&#039;&#039;&lt;br /&gt;
## Install Java Development Kit version 1.8 or newer from [https://www.oracle.com/java/technologies/javase-downloads.html Oracle] or [https://adoptopenjdk.net OpenJDK] &lt;br /&gt;
## Install Subversion 1.10 or newer from [https://subversion.apache.org/packages.html apache.org]&lt;br /&gt;
## Install Ant 1.9 or newer from [https://ant.apache.org/bindownload.cgi apache.org]&lt;br /&gt;
# Configure development environment&amp;lt;/br&amp;gt;Most of these steps can be included in &#039;&#039;.profile&#039;&#039; or the equivalent for your terminal of choice.&lt;br /&gt;
## In the terminal set JAVA_HOME to the java home directory. &amp;lt;/br&amp;gt;&#039;&#039;/usr/libexec/java_home -V&#039;&#039; will list all known values for java_home.&amp;lt;/br&amp;gt;If you have multiple copies of java, choose the version you want to us&#039;&#039;e.&lt;br /&gt;
## In the terminal set ANT_HOME to the location of ANT.  e.g. &#039;&#039;/opt/ant&#039;&#039;&lt;br /&gt;
## In the terminal make sure that Ant and subversion are in your ${PATH} variable. e.g.&#039;&#039;PATH=${PATH}:/usr/local/opt/subversion/bin:/usr/local/ant/bin&#039;&#039;&lt;br /&gt;
# Open a new terminal window and navigate to the directory to which you wish to create kolmafia (e.g. cd ~/Projects, or some similar directory)&lt;br /&gt;
# Connect to the SVN server and download the source code for the KoLmafia Project.&amp;lt;/br&amp;gt;&#039;&#039;svn checkout &amp;lt;nowiki&amp;gt;svn://svn.code.sf.net/p/kolmafia/code/&amp;lt;/nowiki&amp;gt; kolmafia&#039;&#039;&lt;br /&gt;
# Compile KoLmafia with Ant (&#039;&#039;cd kolmafia &amp;amp;&amp;amp; ant daily&#039;&#039;) &lt;br /&gt;
# execute KoLmafia with the command &#039;&#039;java -jar dist/KoLmafia-*.jar&lt;br /&gt;
&lt;br /&gt;
[[Category:Tech Support]]&lt;/div&gt;</summary>
		<author><name>HippoKing</name></author>
	</entry>
	<entry>
		<id>https://wiki.kolmafia.us/index.php?title=Compiling_from_Source&amp;diff=8990</id>
		<title>Compiling from Source</title>
		<link rel="alternate" type="text/html" href="https://wiki.kolmafia.us/index.php?title=Compiling_from_Source&amp;diff=8990"/>
		<updated>2021-04-17T22:53:37Z</updated>

		<summary type="html">&lt;p&gt;HippoKing: /* Linux */ simple RPM build.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;To contribute to the Mafia project, you&#039;ll need to be able to install the Java Development Kit, connect to the SVN and be comfortable writing Java Code. Instructions for the first two are included below:&lt;br /&gt;
&lt;br /&gt;
==Windows==&lt;br /&gt;
# Download Tools&lt;br /&gt;
## Download and install Java Development Kit 1.8 or newer, available from [https://www.oracle.com/java/technologies/javase-downloads.html Oracle] or [https://adoptopenjdk.net AdoptOpenJDK]&lt;br /&gt;
## Download and install Subversion, from [https://subversion.apache.org/packages.html apache.org]&lt;br /&gt;
## Download and install Tortoise SVN (or of course, another SVN program)from [https://tortoisesvn.net/downloads.html tortoisesvn]&lt;br /&gt;
## Download and install ANT, from [https://ant.apache.org/bindownload.cgi apache.org]&lt;br /&gt;
# Configure Windows Environment Variables[[File:Environment vars.jpg|thumb|Win 10 Environment Variable Editor]]&lt;br /&gt;
## Windows 10&lt;br /&gt;
### Go to settings&lt;br /&gt;
### type &#039;enviro&#039; in the search&lt;br /&gt;
### click on the &#039;edit environment variables&#039; suggestion&lt;br /&gt;
### add or edit ANT_HOME, JAVA_HOME, and PATH variables&amp;lt;br&amp;gt;&#039;&#039;PATH should include ANT_HOME/bin and JAVA_HOME&#039;&#039;&amp;lt;/br&amp;gt;If ANT or JAVA installers have already set these variables, they can be updated or left alone.&lt;br /&gt;
# Get Source and Build&lt;br /&gt;
## Connect to the SVN server and download the source code for the Mafia Project. Using Tortoise SVN, you have to right-click on your desktop, select &amp;quot;SVN Checkout&amp;quot;, and put the URL of the repository as &amp;quot;svn://svn.code.sf.net/p/kolmafia/code/&amp;quot;. Leave all other settings as they are, and click OK.&lt;br /&gt;
## Copy %ANT_HOME%/bin/ant.bat to your Desktop/kolmafia/ folder. If you have set up ANT correctly (and it&#039;s hard not to - there aren&#039;t many options) then double clicking on this file should compile the program.&lt;br /&gt;
# Compiling creates a &amp;quot;build&amp;quot; and &amp;quot;dist&amp;quot; folder. The end program is in dist/Kolmafia.jar.&lt;br /&gt;
===Troubleshooting===&lt;br /&gt;
====Double-Clicking &#039;&#039;ant.bat&#039;&#039;====&lt;br /&gt;
Due to how bat files work when you double-click them, &#039;&#039;ant.bat&#039;&#039; will auto-close before you can read its output.&lt;br /&gt;
# ant assumes that builds are done from a command shell.  You&#039;ll need to run from the command shell to execute any ant target other than the default, such as &#039;&#039;ant.bat update exec&#039;&#039; or &#039;&#039;ant.bat daily&amp;lt;/br&amp;gt;ant -projecthelp&#039;&#039; will list all main targets&lt;br /&gt;
# An easy workaround is to add a &amp;quot;pause&amp;quot; near the bottom of the file before it has a chance to auto-close on you.&amp;lt;br&amp;gt;When you run it again, you&#039;ll be able to read its output and it will exit after you &#039;&#039;Press any key to continue...&#039;&#039;&lt;br /&gt;
# Alternatively, you can create a wrapper batch file that calls the existing &#039;&#039;ant.bat&#039;&#039; file and adds a pause after executing it.  This method allows you to set different ant targets and also prevents updates to ant from overwriting your modifications.&lt;br /&gt;
&amp;lt;blockquote&amp;gt;Example of a very simple MyWrapper.bat file&amp;lt;pre&amp;gt;&lt;br /&gt;
# This is a wrapper batch file&lt;br /&gt;
# First it runs ant&lt;br /&gt;
call ant.bat daily&lt;br /&gt;
# Then it pauses&lt;br /&gt;
pause&amp;lt;/pre&amp;gt;&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====&#039;&#039;tools.jar&#039;&#039; not found====&lt;br /&gt;
If you get an error message about &amp;quot;tools.jar&amp;quot; not being found, this means you&#039;re trying to build with the JRE (which doesn&#039;t contain this file) rather than the JDK (which contains it).&amp;lt;br&amp;gt;&lt;br /&gt;
To fix this, right click on &#039;&#039;my computer&#039;&#039; -&amp;gt; &#039;&#039;properties&#039;&#039; -&amp;gt; &#039;&#039;advanced system settings&#039;&#039; -&amp;gt; &#039;&#039;Environment Variables...&#039;&#039; then make sure your PATH contains a reference to the location of your JDK directory.&lt;br /&gt;
&lt;br /&gt;
==Linux==&lt;br /&gt;
&lt;br /&gt;
# Install Sun Java Development Kit ( debian: apt-get install sun-java6-jdk )&lt;br /&gt;
# Install Subversion ( debian: apt-get install svn )&lt;br /&gt;
# Install Ant ( debian: apt-get install ant )&lt;br /&gt;
# Connect to the SVN server and download the source code for the Mafia Project. ( svn checkout svn://svn.code.sf.net/p/kolmafia/code/ kolmafia )&lt;br /&gt;
# Verify tou are using sun-java with ( debian: update-alternatives --all )&lt;br /&gt;
# I had to change $JAVA_HOME to compile ( export JAVA_HOME=/usr/lib/jvm/java-6-sun-1.6.0.12 )&lt;br /&gt;
# Compile kolmafia with Ant ( debian: cd kolmafia &amp;amp;&amp;amp; ant debian )&lt;br /&gt;
# Install kolmafia ( debian: cd dist &amp;amp;&amp;amp; dpkg -i kolmafia*.deb )&lt;br /&gt;
&lt;br /&gt;
===Fedora (or probably other RPM systems)===&lt;br /&gt;
&lt;br /&gt;
# Install Subversion: &amp;lt;pre&amp;gt;sudo yum install sqlite-devel subversion &amp;lt;/pre&amp;gt;&lt;br /&gt;
# Install Java JDK: &amp;lt;pre&amp;gt;sudo yum install java-11-openjdk-devel&amp;lt;/pre&amp;gt;&lt;br /&gt;
# Install Ant: &amp;lt;pre&amp;gt;sudo yum install ant&amp;lt;/pre&amp;gt;&lt;br /&gt;
# Checkout: &amp;lt;pre&amp;gt;svn checkout svn://svn.code.sf.net/p/kolmafia/code/ kolmafia&amp;lt;/pre&amp;gt;&lt;br /&gt;
# Build: &amp;lt;pre&amp;gt;cd kolmafia &amp;amp;&amp;amp; ant&amp;lt;/pre&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You have a KoLmafia jar file that can be invoked with &amp;lt;pre&amp;gt;java -jar dist/KoLmafia-*.jar&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Do other installation steps as you wish.&lt;br /&gt;
&lt;br /&gt;
==MacOSX==&lt;br /&gt;
# Install required packages&amp;lt;/br&amp;gt;&#039;&#039;MacOS X packages for Java, subversion, and ANT may also be installed via a package manager like [https://brew.sh Homebrew] or [https://www.macports.org MacPorts].  The instructions are written for a direct installation of the packages.&#039;&#039;&lt;br /&gt;
## Install Java Development Kit version 1.8 or newer from [https://www.oracle.com/java/technologies/javase-downloads.html Oracle] or [https://adoptopenjdk.net OpenJDK] &lt;br /&gt;
## Install Subversion 1.10 or newer from [https://subversion.apache.org/packages.html apache.org]&lt;br /&gt;
## Install Ant 1.9 or newer from [https://ant.apache.org/bindownload.cgi apache.org]&lt;br /&gt;
# Configure development environment&amp;lt;/br&amp;gt;Most of these steps can be included in &#039;&#039;.profile&#039;&#039; or the equivalent for your terminal of choice.&lt;br /&gt;
## In the terminal set JAVA_HOME to the java home directory. &amp;lt;/br&amp;gt;&#039;&#039;/usr/libexec/java_home -V&#039;&#039; will list all known values for java_home.&amp;lt;/br&amp;gt;If you have multiple copies of java, choose the version you want to us&#039;&#039;e.&lt;br /&gt;
## In the terminal set ANT_HOME to the location of ANT.  e.g. &#039;&#039;/opt/ant&#039;&#039;&lt;br /&gt;
## In the terminal make sure that Ant and subversion are in your ${PATH} variable. e.g.&#039;&#039;PATH=${PATH}:/usr/local/opt/subversion/bin:/usr/local/ant/bin&#039;&#039;&lt;br /&gt;
# Open a new terminal window and navigate to the directory to which you wish to create kolmafia (e.g. cd ~/Projects, or some similar directory)&lt;br /&gt;
# Connect to the SVN server and download the source code for the KoLmafia Project.&amp;lt;/br&amp;gt;&#039;&#039;svn checkout &amp;lt;nowiki&amp;gt;svn://svn.code.sf.net/p/kolmafia/code/&amp;lt;/nowiki&amp;gt; kolmafia&#039;&#039;&lt;br /&gt;
# Compile KoLmafia with Ant (&#039;&#039;cd kolmafia &amp;amp;&amp;amp; ant daily&#039;&#039;) &lt;br /&gt;
# execute KoLmafia with the command &#039;&#039;java -jar dist/KoLmafia-*.jar&lt;br /&gt;
&lt;br /&gt;
[[Category:Tech Support]]&lt;/div&gt;</summary>
		<author><name>HippoKing</name></author>
	</entry>
	<entry>
		<id>https://wiki.kolmafia.us/index.php?title=CLI_Reference&amp;diff=2918</id>
		<title>CLI Reference</title>
		<link rel="alternate" type="text/html" href="https://wiki.kolmafia.us/index.php?title=CLI_Reference&amp;diff=2918"/>
		<updated>2009-08-30T16:53:54Z</updated>

		<summary type="html">&lt;p&gt;HippoKing: finished reordering.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The KoLmafia Graphical CLI is one of the most helpful features it has. This page is intended to provide information on the commands available.&lt;br /&gt;
&lt;br /&gt;
==Equipment, Inventory and Consumption Management==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!  Command&lt;br /&gt;
!  Arguments&lt;br /&gt;
!  Description&lt;br /&gt;
|-&lt;br /&gt;
|  *brewery*[?]&lt;br /&gt;
|  [ daily special &amp;amp;#124; item ] &lt;br /&gt;
|  show daily special [or consume it or other restaurant item].&lt;br /&gt;
|-&lt;br /&gt;
|  *kitchen*[?]&lt;br /&gt;
|  item &lt;br /&gt;
|  consumes item at Hell&#039;s Kitchen, if available.&lt;br /&gt;
|-&lt;br /&gt;
|  acquire&lt;br /&gt;
|  item &lt;br /&gt;
|  ensure that you have item, creating or buying it if needed.&lt;br /&gt;
|-&lt;br /&gt;
|  bake&lt;br /&gt;
|  [ item... ] &lt;br /&gt;
|  list creatables, or create specified items.&lt;br /&gt;
|-&lt;br /&gt;
|  chew[?]&lt;br /&gt;
|  [either] item [, item]... &lt;br /&gt;
|  use/consume items&lt;br /&gt;
|-&lt;br /&gt;
|  cleanup&lt;br /&gt;
|  &lt;br /&gt;
|  use, pulverize, or autosell your junk items.&lt;br /&gt;
|-&lt;br /&gt;
|  closet&lt;br /&gt;
|  list filter &amp;amp;#124; put item... | take item... &lt;br /&gt;
|  list or manipulate your closet.&lt;br /&gt;
|-&lt;br /&gt;
|  create&lt;br /&gt;
|  [ item... ] &lt;br /&gt;
|  list creatables, or create specified items.&lt;br /&gt;
|-&lt;br /&gt;
|  display&lt;br /&gt;
|  [filter] &amp;amp;#124; put item... | take item... &lt;br /&gt;
|  list or manipulate your display case.&lt;br /&gt;
|-&lt;br /&gt;
|  eat[?]&lt;br /&gt;
|  [either] item [, item]... &lt;br /&gt;
|  use/consume items&lt;br /&gt;
|-&lt;br /&gt;
|  equip&lt;br /&gt;
|  [list filter] &amp;amp;#124; [slot] item &lt;br /&gt;
|  show equipment, or equip item [in slot].&lt;br /&gt;
|-&lt;br /&gt;
|  find&lt;br /&gt;
|  item &lt;br /&gt;
|  ensure that you have item, creating or buying it if needed.&lt;br /&gt;
|-&lt;br /&gt;
|  fold[?]&lt;br /&gt;
|  item &lt;br /&gt;
|  produce item by using another form, repeated as needed.&lt;br /&gt;
|-&lt;br /&gt;
|  ghost[?]&lt;br /&gt;
|  [either] item [, item]... &lt;br /&gt;
|  use/consume items&lt;br /&gt;
|-&lt;br /&gt;
|  hagnk&lt;br /&gt;
|  outfit name &amp;amp;#124; item [, item]... &lt;br /&gt;
|  pull items from Hagnk&#039;s storage.&lt;br /&gt;
|-&lt;br /&gt;
|  hermit[?]&lt;br /&gt;
|  [item] &lt;br /&gt;
|  get clover status, or trade for item.&lt;br /&gt;
|-&lt;br /&gt;
|  hobo[?]&lt;br /&gt;
|  [either] item [, item]... &lt;br /&gt;
|  use/consume items&lt;br /&gt;
|-&lt;br /&gt;
|  inv*&lt;br /&gt;
|  [param] &lt;br /&gt;
|  list indicated type of data, possibly filtered by param.&lt;br /&gt;
|-&lt;br /&gt;
|  junk&lt;br /&gt;
|  &lt;br /&gt;
|  use, pulverize, or autosell your junk items.&lt;br /&gt;
|-&lt;br /&gt;
|  make&lt;br /&gt;
|  [ item... ] &lt;br /&gt;
|  list creatables, or create specified items.&lt;br /&gt;
|-&lt;br /&gt;
|  maximize[?]&lt;br /&gt;
|  [+&amp;amp;#124;-&amp;amp;#124;weight] keyword, ...&lt;br /&gt;
|  run the Modifier Maximizer.&lt;br /&gt;
|-&lt;br /&gt;
|  mix&lt;br /&gt;
|  [ item... ] &lt;br /&gt;
|  list creatables, or create specified items.&lt;br /&gt;
|-&lt;br /&gt;
|  modifies&lt;br /&gt;
|  filter &lt;br /&gt;
|  list all possible sources of modifiers matching filter.&lt;br /&gt;
|-&lt;br /&gt;
|  modref&lt;br /&gt;
|  [object] &lt;br /&gt;
|  list all modifiers, show values for player [and object].&lt;br /&gt;
|-&lt;br /&gt;
|  modtrace&lt;br /&gt;
|  filter &lt;br /&gt;
|  list everything that adds to modifiers matching filter.&lt;br /&gt;
|-&lt;br /&gt;
|  outfit&lt;br /&gt;
|  [list filter] &amp;amp;#124; save name &amp;amp;#124; checkpoint &amp;amp;#124; name &lt;br /&gt;
|  list, save, restore, or change outfits.&lt;br /&gt;
|-&lt;br /&gt;
|  overdrink[?]&lt;br /&gt;
|  [either] item [, item]... &lt;br /&gt;
|  use/consume items&lt;br /&gt;
|-&lt;br /&gt;
|  ply&lt;br /&gt;
|  [ item... ] &lt;br /&gt;
|  list creatables, or create specified items.&lt;br /&gt;
|-&lt;br /&gt;
|  pull&lt;br /&gt;
|  outfit name &amp;amp;#124; item [, item]... &lt;br /&gt;
|  pull items from Hagnk&#039;s storage.&lt;br /&gt;
|-&lt;br /&gt;
|  pulverize&lt;br /&gt;
|  item [, item]... &lt;br /&gt;
|  pulverize specified items&lt;br /&gt;
|-&lt;br /&gt;
|  quark[?]&lt;br /&gt;
|  [itemList...] &lt;br /&gt;
|  gain MP by pasting unstable quark with best item from itemList (or your junk list).&lt;br /&gt;
|-&lt;br /&gt;
|  remove&lt;br /&gt;
|  slot &amp;amp;#124; name &lt;br /&gt;
|  remove equipment in slot, or that matches name&lt;br /&gt;
|-&lt;br /&gt;
|  restaurant[?]&lt;br /&gt;
|  [ daily special &amp;amp;#124; item ] &lt;br /&gt;
|  show daily special [or consume it or other restaurant item].&lt;br /&gt;
|-&lt;br /&gt;
|  retrieve&lt;br /&gt;
|  item &lt;br /&gt;
|  ensure that you have item, creating or buying it if needed.&lt;br /&gt;
|-&lt;br /&gt;
|  slimeling[?]&lt;br /&gt;
|  [either] item [, item]... &lt;br /&gt;
|  use/consume items&lt;br /&gt;
|-&lt;br /&gt;
|  smash&lt;br /&gt;
|  item [, item]... &lt;br /&gt;
|  pulverize specified items&lt;br /&gt;
|-&lt;br /&gt;
|  smith&lt;br /&gt;
|  [ item... ] &lt;br /&gt;
|  list creatables, or create specified items.&lt;br /&gt;
|-&lt;br /&gt;
|  speculate&lt;br /&gt;
|  MCD num &amp;amp;#124; equip [slot] item &amp;amp;#124; unequip slot &amp;amp;#124; familiar type &amp;amp;#124; up eff &amp;amp;#124; uneffect eff &amp;amp;#124; quiet ; [another;...] &lt;br /&gt;
|  predict modifiers.&lt;br /&gt;
|-&lt;br /&gt;
|  squeeze[?]&lt;br /&gt;
|  item &lt;br /&gt;
|  produce item by using another form, repeated as needed.&lt;br /&gt;
|-&lt;br /&gt;
|  stash&lt;br /&gt;
|  [put] item... &amp;amp;#124; take item... &lt;br /&gt;
|  exchange items with clan stash&lt;br /&gt;
|-&lt;br /&gt;
|  sticker*&lt;br /&gt;
|  sticker1 [, sticker2 [, sticker3]] &lt;br /&gt;
|  replace worn stickers.&lt;br /&gt;
|-&lt;br /&gt;
|  storage&lt;br /&gt;
|  [param] &lt;br /&gt;
|  list indicated type of data, possibly filtered by param.&lt;br /&gt;
|-&lt;br /&gt;
|  tinker&lt;br /&gt;
|  [ item... ] &lt;br /&gt;
|  list creatables, or create specified items.&lt;br /&gt;
|-&lt;br /&gt;
|  wear&lt;br /&gt;
|  [list filter] &amp;amp;#124; [slot] item &lt;br /&gt;
|  show equipment, or equip item [in slot].&lt;br /&gt;
|-&lt;br /&gt;
|  whatif&lt;br /&gt;
|  MCD num &amp;amp;#124; equip [slot] item | unequip slot | familiar type | up eff | uneffect eff | quiet ; [another;...] &lt;br /&gt;
|  predict modifiers.&lt;br /&gt;
|-&lt;br /&gt;
|  wield&lt;br /&gt;
|  [list filter] &amp;amp;#124; [slot] item &lt;br /&gt;
|  show equipment, or equip item [in slot].&lt;br /&gt;
|-&lt;br /&gt;
|  zap&lt;br /&gt;
|  item [, item]... &lt;br /&gt;
|  transform items with your wand.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Quests==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!  Command Name&lt;br /&gt;
!  Arguments&lt;br /&gt;
!  Description&lt;br /&gt;
|-&lt;br /&gt;
|  !&lt;br /&gt;
|  &lt;br /&gt;
|  list the Dungeons of Doom potions you&#039;ve identified.&lt;br /&gt;
|-&lt;br /&gt;
|  bang&lt;br /&gt;
|  &lt;br /&gt;
|  list the Dungeons of Doom potions you&#039;ve identified.&lt;br /&gt;
|-&lt;br /&gt;
|  chamber&lt;br /&gt;
|  &lt;br /&gt;
|  automatically complete quest.&lt;br /&gt;
|-&lt;br /&gt;
|  council&lt;br /&gt;
|  &lt;br /&gt;
|  visit the Council to advance quest progress.&lt;br /&gt;
|-&lt;br /&gt;
|  dusty&lt;br /&gt;
|  &lt;br /&gt;
|  list the dusty bottles of wine you&#039;ve identified.&lt;br /&gt;
|-&lt;br /&gt;
|  entryway&lt;br /&gt;
|  [clover] &lt;br /&gt;
|  automatically complete quest [using a clover].&lt;br /&gt;
|-&lt;br /&gt;
|  factory&lt;br /&gt;
|  report digits &lt;br /&gt;
|  Given a string of 7 dwarven digits, report on factory.&lt;br /&gt;
|-&lt;br /&gt;
|  gourd&lt;br /&gt;
|  &lt;br /&gt;
|  automatically complete quest.&lt;br /&gt;
|-&lt;br /&gt;
|  grandpa&lt;br /&gt;
|  query &lt;br /&gt;
|  Ask Grandpa about something.&lt;br /&gt;
|-&lt;br /&gt;
|  guardians&lt;br /&gt;
|  &lt;br /&gt;
|  automatically complete quest.&lt;br /&gt;
|-&lt;br /&gt;
|  guild&lt;br /&gt;
|  &lt;br /&gt;
|  automatically complete quest.&lt;br /&gt;
|-&lt;br /&gt;
|  hedge*&lt;br /&gt;
|  &lt;br /&gt;
|  automatically complete quest.&lt;br /&gt;
|-&lt;br /&gt;
|  insults&lt;br /&gt;
|  &lt;br /&gt;
|  list the pirate insult comebacks you know.&lt;br /&gt;
|-&lt;br /&gt;
|  leaflet&lt;br /&gt;
|  [nomagic] &amp;amp;#124; location | command &lt;br /&gt;
|  complete leaflet quest [without using magic words].&lt;br /&gt;
|-&lt;br /&gt;
|  maze&lt;br /&gt;
|  &lt;br /&gt;
|  automatically complete quest.&lt;br /&gt;
|-&lt;br /&gt;
|  nemesis&lt;br /&gt;
|  &lt;br /&gt;
|  automatically complete quest.&lt;br /&gt;
|-&lt;br /&gt;
|  tavern&lt;br /&gt;
|  &lt;br /&gt;
|  automatically complete quest.&lt;br /&gt;
|-&lt;br /&gt;
|  telescope&lt;br /&gt;
|  [look] high &amp;amp;#124; low &lt;br /&gt;
|  get daily buff, or Lair hints from your telescope.&lt;br /&gt;
|-&lt;br /&gt;
|  tower&lt;br /&gt;
|  &lt;br /&gt;
|  automatically complete quest.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Capitalism==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!  Command Name&lt;br /&gt;
!  Arguments&lt;br /&gt;
!  Description&lt;br /&gt;
|-&lt;br /&gt;
|  automall&lt;br /&gt;
|  &lt;br /&gt;
|  dump all profitable, non-memento items into the Mall.&lt;br /&gt;
|-&lt;br /&gt;
|  autosell&lt;br /&gt;
|  item [, item]... &lt;br /&gt;
|  autosell items.&lt;br /&gt;
|-&lt;br /&gt;
|  buy&lt;br /&gt;
|  item [@ limit] [, another]... &lt;br /&gt;
|  buy from NPC store or the Mall.&lt;br /&gt;
|-&lt;br /&gt;
|  cheapest[?]&lt;br /&gt;
|  [+]item [,[-]item]... [; cmds] &lt;br /&gt;
|  compare prices, do cmds with &amp;quot;it&amp;quot; replaced with best.&lt;br /&gt;
|-&lt;br /&gt;
|  expensive[?]&lt;br /&gt;
|  [+]item [,[-]item]... [; cmds]&lt;br /&gt;
|  compare prices, do cmds with &amp;quot;it&amp;quot; replaced with best.&lt;br /&gt;
|-&lt;br /&gt;
|  mallbuy&lt;br /&gt;
|  item [@ limit] [, another]... &lt;br /&gt;
|  buy from NPC store or the Mall.&lt;br /&gt;
|-&lt;br /&gt;
|  mallsell&lt;br /&gt;
|  item [[@] price [[limit] num]] [, another]... &lt;br /&gt;
|  sell in Mall.&lt;br /&gt;
|-&lt;br /&gt;
|  reprice&lt;br /&gt;
|  &lt;br /&gt;
|  price all max-priced items at or below current Mall minimum price.&lt;br /&gt;
|-&lt;br /&gt;
|  searchmall&lt;br /&gt;
|  item [ with limit number ] &lt;br /&gt;
|  search the Mall.&lt;br /&gt;
|-&lt;br /&gt;
|  sell&lt;br /&gt;
|  item [, item]... &lt;br /&gt;
|  autosell items.&lt;br /&gt;
|-&lt;br /&gt;
|  undercut&lt;br /&gt;
|  &lt;br /&gt;
|  price all max-priced items at or below current Mall minimum price.&lt;br /&gt;
|-&lt;br /&gt;
|  untinker&lt;br /&gt;
|  [ item... ] &lt;br /&gt;
|  complete quest, or untinker items.&lt;br /&gt;
|-&lt;br /&gt;
|  use[?]&lt;br /&gt;
|  [either] item [, item]... &lt;br /&gt;
|  use/consume items&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Mafia==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!  Command Name&lt;br /&gt;
!  Arguments&lt;br /&gt;
!  Description&lt;br /&gt;
|-&lt;br /&gt;
|  adv*[?]&lt;br /&gt;
|  last &amp;amp;#124; [count] location &lt;br /&gt;
|  spend your turns.&lt;br /&gt;
|-&lt;br /&gt;
|  abort&lt;br /&gt;
|  [message] &lt;br /&gt;
|  stop current script or automated task.&lt;br /&gt;
|-&lt;br /&gt;
|  alias&lt;br /&gt;
|  [ word =&amp;gt; expansion ] &lt;br /&gt;
|  list or create CLI abbreviations.&lt;br /&gt;
|-&lt;br /&gt;
|  ash&lt;br /&gt;
|  statement &lt;br /&gt;
|  test a line of ASH code without having to edit a script.&lt;br /&gt;
|-&lt;br /&gt;
|  ashref&lt;br /&gt;
|  [filter] &lt;br /&gt;
|  summarize ASH built-in functions [matching filter].&lt;br /&gt;
|-&lt;br /&gt;
|  backtrace&lt;br /&gt;
|  text &amp;amp;#124; off &lt;br /&gt;
|  dump stack when a gCLI message or page URL matches text (case-sensitive).&lt;br /&gt;
|-&lt;br /&gt;
|  breakfast&lt;br /&gt;
|  &lt;br /&gt;
|  perform start-of-day activities.&lt;br /&gt;
|-&lt;br /&gt;
|  budget&lt;br /&gt;
|  [number] &lt;br /&gt;
|  show [or set] the number of budgeted Hagnk&#039;s pulls.&lt;br /&gt;
|-&lt;br /&gt;
|  buffbot&lt;br /&gt;
|  number &lt;br /&gt;
|  run buffbot for number iterations.&lt;br /&gt;
|-&lt;br /&gt;
|  call&lt;br /&gt;
|  [numberx] filename &amp;amp;#124; function [parameters] &lt;br /&gt;
|  check/run script.&lt;br /&gt;
|-&lt;br /&gt;
|  ccs&lt;br /&gt;
|  [script] &lt;br /&gt;
|  show [or select] Custom Combat Script in use.&lt;br /&gt;
|-&lt;br /&gt;
|  cecho&lt;br /&gt;
|  color text &lt;br /&gt;
|  show text using color (specified by name or #RRGGBB).&lt;br /&gt;
|-&lt;br /&gt;
|  chat&lt;br /&gt;
|  &lt;br /&gt;
|  switch to tab or open window&lt;br /&gt;
|-&lt;br /&gt;
|  check&lt;br /&gt;
|  hp &amp;amp;#124; health &amp;amp;#124; mp &amp;amp;#124; mana &amp;amp;#124; both &lt;br /&gt;
|  attempt to regain some HP or MP.&lt;br /&gt;
|-&lt;br /&gt;
|  checkpoint&lt;br /&gt;
|  &lt;br /&gt;
|  remembers current equipment, use &amp;quot;outfit checkpoint&amp;quot; to restore.&lt;br /&gt;
|-&lt;br /&gt;
|  clear&lt;br /&gt;
|  &lt;br /&gt;
|  clear CLI window.&lt;br /&gt;
|-&lt;br /&gt;
|  cls&lt;br /&gt;
|  &lt;br /&gt;
|  clear CLI window.&lt;br /&gt;
|-&lt;br /&gt;
|  condition*&lt;br /&gt;
|  clear &amp;amp;#124; check | add condition | set condition &lt;br /&gt;
|  modify your adventuring goals.&lt;br /&gt;
|-&lt;br /&gt;
|  condref&lt;br /&gt;
|  &lt;br /&gt;
|  list conditions usable with if/while commands.&lt;br /&gt;
|-&lt;br /&gt;
|  counters&lt;br /&gt;
|  [ clear &amp;amp;#124; add number [title img] ] &lt;br /&gt;
|  show, clear, or add to current turn counters.&lt;br /&gt;
|-&lt;br /&gt;
|  debug&lt;br /&gt;
|  [on] &amp;amp;#124; off &lt;br /&gt;
|  start or stop logging of debugging data.&lt;br /&gt;
|-&lt;br /&gt;
|  disable&lt;br /&gt;
|  all &amp;amp;#124; command [, command]... &lt;br /&gt;
|  allow/deny CLI commands.&lt;br /&gt;
|-&lt;br /&gt;
|  events&lt;br /&gt;
|  [clear] &lt;br /&gt;
|  clear or show recent events.&lt;br /&gt;
|-&lt;br /&gt;
|  exec*&lt;br /&gt;
|  [numberx] filename &amp;amp;#124; function [parameters] &lt;br /&gt;
|  check/run script.&lt;br /&gt;
|-&lt;br /&gt;
|  exit&lt;br /&gt;
|  &lt;br /&gt;
|  logout and exit KoLmafia.&lt;br /&gt;
|-&lt;br /&gt;
|  gc&lt;br /&gt;
|  &lt;br /&gt;
|  force Java garbage collection.&lt;br /&gt;
|-&lt;br /&gt;
|  gear&lt;br /&gt;
|  &lt;br /&gt;
|  switch to tab or open window&lt;br /&gt;
|-&lt;br /&gt;
|  get&lt;br /&gt;
|  preference [ = value ] &lt;br /&gt;
|  show/change preference settings&lt;br /&gt;
|-&lt;br /&gt;
|  goal*&lt;br /&gt;
|  clear &amp;amp;#124; check | add condition | set condition &lt;br /&gt;
|  modify your adventuring goals.&lt;br /&gt;
|-&lt;br /&gt;
|  help&lt;br /&gt;
|  [filter] &lt;br /&gt;
|  list CLI commands [that match filter].&lt;br /&gt;
|-&lt;br /&gt;
|  item&lt;br /&gt;
|  &lt;br /&gt;
|  switch to tab or open window&lt;br /&gt;
|-&lt;br /&gt;
|  later&lt;br /&gt;
|  commands &lt;br /&gt;
|  adds a button to do commands to the Daily Deeds list.&lt;br /&gt;
|-&lt;br /&gt;
|  load&lt;br /&gt;
|  [numberx] filename &amp;amp;#124; function [parameters] &lt;br /&gt;
|  check/run script.&lt;br /&gt;
|-&lt;br /&gt;
|  log&lt;br /&gt;
|  [status],[equipment],[effects],[etc.] &lt;br /&gt;
|  record data, &amp;quot;log snapshot&amp;quot; for all common data.&lt;br /&gt;
|-&lt;br /&gt;
|  logecho&lt;br /&gt;
|  timestamp &amp;amp;#124; text &lt;br /&gt;
|  include timestamp or text in the session log only.&lt;br /&gt;
|-&lt;br /&gt;
|  login&lt;br /&gt;
|  username &lt;br /&gt;
|  logout then log back in as username.&lt;br /&gt;
|-&lt;br /&gt;
|  logout&lt;br /&gt;
|  &lt;br /&gt;
|  logout and return to login window.&lt;br /&gt;
|-&lt;br /&gt;
|  logprint&lt;br /&gt;
|  timestamp &amp;amp;#124; text &lt;br /&gt;
|  include timestamp or text in the session log only.&lt;br /&gt;
|-&lt;br /&gt;
|  mail&lt;br /&gt;
|  &lt;br /&gt;
|  switch to tab or open window&lt;br /&gt;
|-&lt;br /&gt;
|  mood*&lt;br /&gt;
|  clear &amp;amp;#124; autofill | execute | repeat [numTimes] | moodName [numTimes] &lt;br /&gt;
|  mood management.&lt;br /&gt;
|-&lt;br /&gt;
|  objective*&lt;br /&gt;
|  clear &amp;amp;#124; check | add condition | set condition &lt;br /&gt;
|  modify your adventuring goals.&lt;br /&gt;
|-&lt;br /&gt;
|  opt*&lt;br /&gt;
|  &lt;br /&gt;
|  switch to tab or open window&lt;br /&gt;
|-&lt;br /&gt;
|  print&lt;br /&gt;
|  timestamp &amp;amp;#124; text &lt;br /&gt;
|  include timestamp or text in the session log.&lt;br /&gt;
|-&lt;br /&gt;
|  priphea&lt;br /&gt;
|  &lt;br /&gt;
|  launch KoLmafia GUI.&lt;br /&gt;
|-&lt;br /&gt;
|  quit&lt;br /&gt;
|  &lt;br /&gt;
|  logout and exit KoLmafia.&lt;br /&gt;
|-&lt;br /&gt;
|  radio&lt;br /&gt;
|  &lt;br /&gt;
|  switch to tab or open window&lt;br /&gt;
|-&lt;br /&gt;
|  relay&lt;br /&gt;
|  &lt;br /&gt;
|  open the relay browser.&lt;br /&gt;
|-&lt;br /&gt;
|  refresh&lt;br /&gt;
|  all &amp;amp;#124; status | equip | inv | storage | familiar | stickers &lt;br /&gt;
|  resynchronize with KoL.&lt;br /&gt;
|-&lt;br /&gt;
|  repeat&lt;br /&gt;
|  [number] &lt;br /&gt;
|  repeat previous line [number times].&lt;br /&gt;
|-&lt;br /&gt;
|  run&lt;br /&gt;
|  [numberx] filename &amp;amp;#124; function [parameters] &lt;br /&gt;
|  check/run script.&lt;br /&gt;
|-&lt;br /&gt;
|  save&lt;br /&gt;
|  as mood &lt;br /&gt;
|  add your current effects to the mood.&lt;br /&gt;
|-&lt;br /&gt;
|  session&lt;br /&gt;
|  [param] &lt;br /&gt;
|  list indicated type of data, possibly filtered by param.&lt;br /&gt;
|-&lt;br /&gt;
|  set&lt;br /&gt;
|  preference [ = value ] &lt;br /&gt;
|  show/change preference settings&lt;br /&gt;
|-&lt;br /&gt;
|  start&lt;br /&gt;
|  [numberx] filename &amp;amp;#124; function [parameters] &lt;br /&gt;
|  check/run script.&lt;br /&gt;
|-&lt;br /&gt;
|  trigger*&lt;br /&gt;
|  clear &amp;amp;#124; autofill | [type,] effect [, action] &lt;br /&gt;
|  edit current mood&lt;br /&gt;
|-&lt;br /&gt;
|  unalias&lt;br /&gt;
|  word &lt;br /&gt;
|  remove a CLI abbreviation.&lt;br /&gt;
|-&lt;br /&gt;
|  update&lt;br /&gt;
|  data &amp;amp;#124; clear | prices URL or filename &lt;br /&gt;
|  download most recent data files, or revert to built-in data.&lt;br /&gt;
|-&lt;br /&gt;
|  validate&lt;br /&gt;
|  [numberx] filename &amp;amp;#124; function [parameters] &lt;br /&gt;
|  check/run script.&lt;br /&gt;
|-&lt;br /&gt;
|  verify&lt;br /&gt;
|  [numberx] filename &amp;amp;#124; function [parameters] &lt;br /&gt;
|  check/run script.&lt;br /&gt;
|-&lt;br /&gt;
|  version&lt;br /&gt;
|  &lt;br /&gt;
|  display KoLmafia version.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Scripting==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!  Command Name&lt;br /&gt;
!  Arguments&lt;br /&gt;
!  Description&lt;br /&gt;
|-&lt;br /&gt;
|  &amp;lt;inline-ash-script&amp;gt;&lt;br /&gt;
|  &lt;br /&gt;
|  embed an ASH script in a CLI script.&lt;br /&gt;
|-&lt;br /&gt;
|  cecho&lt;br /&gt;
|  color text &lt;br /&gt;
|  show text using color (specified by name or #RRGGBB).&lt;br /&gt;
|-&lt;br /&gt;
|  colorecho&lt;br /&gt;
|  color text &lt;br /&gt;
|  show text using color (specified by name or #RRGGBB).&lt;br /&gt;
|-&lt;br /&gt;
|  echo&lt;br /&gt;
|  timestamp &amp;amp;#124; text &lt;br /&gt;
|  include timestamp or text in the session log.&lt;br /&gt;
|-&lt;br /&gt;
|  else&lt;br /&gt;
|  ; commands &lt;br /&gt;
|  do commands if preceding if/while/try didn&#039;t execute.&lt;br /&gt;
|-&lt;br /&gt;
|  elseif&lt;br /&gt;
|  condition; commands &lt;br /&gt;
|  do if condition is true but preceding condition was false.&lt;br /&gt;
|-&lt;br /&gt;
|  if&lt;br /&gt;
|  condition; commands &lt;br /&gt;
|  do commands once if condition is true (see condref).&lt;br /&gt;
|-&lt;br /&gt;
|  namespace&lt;br /&gt;
|  [filter] &lt;br /&gt;
|  list namespace scripts and the functions they define.&lt;br /&gt;
|-&lt;br /&gt;
|  pause&lt;br /&gt;
|  [seconds] &lt;br /&gt;
|  pause script execution (default 1 second).&lt;br /&gt;
|-&lt;br /&gt;
|  try&lt;br /&gt;
|  ; commands &lt;br /&gt;
|  do commands, and continue even if an error occurs.&lt;br /&gt;
|-&lt;br /&gt;
|  using&lt;br /&gt;
|  filename &lt;br /&gt;
|  add ASH script to namespace.&lt;br /&gt;
|-&lt;br /&gt;
|  wait&lt;br /&gt;
|  [seconds] &lt;br /&gt;
|  pause script execution (default 1 second).&lt;br /&gt;
|-&lt;br /&gt;
|  while&lt;br /&gt;
|  condition; commands &lt;br /&gt;
|  do commands repeatedly while condition is true.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Other==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!  Command Name&lt;br /&gt;
!  Arguments&lt;br /&gt;
!  Description&lt;br /&gt;
|-&lt;br /&gt;
|  *.php*&lt;br /&gt;
|  &lt;br /&gt;
|  visit URL without showing results.&lt;br /&gt;
|-&lt;br /&gt;
|  *mirror*&lt;br /&gt;
|  [filename] &lt;br /&gt;
|  stop [or start] logging to an additional file.&lt;br /&gt;
|-&lt;br /&gt;
|  aa&lt;br /&gt;
|  skill &lt;br /&gt;
|  set default attack method.&lt;br /&gt;
|-&lt;br /&gt;
|  attack&lt;br /&gt;
|  [ target [, target]... ] &lt;br /&gt;
|  PvP for dignity or flowers&lt;br /&gt;
|-&lt;br /&gt;
|  autoattack&lt;br /&gt;
|  skill &lt;br /&gt;
|  set default attack method.&lt;br /&gt;
|-&lt;br /&gt;
|  basement&lt;br /&gt;
|  &lt;br /&gt;
|  check Fernswarthy&#039;s Basement status.&lt;br /&gt;
|-&lt;br /&gt;
|  burn&lt;br /&gt;
|  extra &amp;amp;#124; * &amp;amp;#124; num &amp;amp;#124; -num&lt;br /&gt;
|  use excess/all/specified/all but specified MP for buff extension and summons.&lt;br /&gt;
|-&lt;br /&gt;
|  camp*&lt;br /&gt;
|  rest &amp;amp;#124; etc. [numTimes] &lt;br /&gt;
|  perform campground actions.&lt;br /&gt;
|-&lt;br /&gt;
|  cast[?]&lt;br /&gt;
|  [ [count] skill [on player] ] &lt;br /&gt;
|  list spells, or use one.&lt;br /&gt;
|-&lt;br /&gt;
|  clan&lt;br /&gt;
|  [ snapshot &amp;amp;#124; stashlog ] &lt;br /&gt;
|  clan management.&lt;br /&gt;
|-&lt;br /&gt;
|  csend&lt;br /&gt;
|  item [, item]... to recipient [ &amp;amp;#124;| message ] &lt;br /&gt;
|  send kmail&lt;br /&gt;
|-&lt;br /&gt;
|  demons&lt;br /&gt;
|  &lt;br /&gt;
|  list the demon names you know.&lt;br /&gt;
|-&lt;br /&gt;
|  donate&lt;br /&gt;
|  boris &amp;amp;#124; mus | jarl | mys | pete | mox amount &lt;br /&gt;
|  donate in Hall of Legends.&lt;br /&gt;
|-&lt;br /&gt;
|  drink[?]&lt;br /&gt;
|  [either] item [, item]... &lt;br /&gt;
|  use/consume items&lt;br /&gt;
|-&lt;br /&gt;
|  effects&lt;br /&gt;
|  [param] &lt;br /&gt;
|  list indicated type of data, possibly filtered by param.&lt;br /&gt;
|-&lt;br /&gt;
|  enable&lt;br /&gt;
|  all &amp;amp;#124; command [, command]... &lt;br /&gt;
|  allow/deny CLI commands.&lt;br /&gt;
|-&lt;br /&gt;
|  encounters&lt;br /&gt;
|  [param] &lt;br /&gt;
|  list indicated type of data, possibly filtered by param.&lt;br /&gt;
|-&lt;br /&gt;
|  entity&lt;br /&gt;
|  &lt;br /&gt;
|  give details of your current pastamancer combat entity.&lt;br /&gt;
|-&lt;br /&gt;
|  familiar[?]&lt;br /&gt;
|  [list filter] &amp;amp;#124; lock | unlock | species | none &lt;br /&gt;
|  list or change familiar types&lt;br /&gt;
|-&lt;br /&gt;
|  field&lt;br /&gt;
|  [ plant square type &amp;amp;#124; pick square | harvest ] &lt;br /&gt;
|  view or use your mushroom plot&lt;br /&gt;
|-&lt;br /&gt;
|  flowers&lt;br /&gt;
|  &lt;br /&gt;
|  commit random acts of PvP.&lt;br /&gt;
|-&lt;br /&gt;
|  forum*&lt;br /&gt;
|  &lt;br /&gt;
|  visit the official KoL forums.&lt;br /&gt;
|-&lt;br /&gt;
|  friars&lt;br /&gt;
|  [blessing] food &amp;amp;#124; familiar | booze &lt;br /&gt;
|  get daily blessing.&lt;br /&gt;
|-&lt;br /&gt;
|  galaktik(hp&amp;amp;#124;mp)&lt;br /&gt;
|  [amount] &lt;br /&gt;
|  restore some or all hp or mp&lt;br /&gt;
|-&lt;br /&gt;
|  hiddencity&lt;br /&gt;
|  square [temple&amp;amp;#124;altar item] &lt;br /&gt;
|  set Hidden City square [and perform an action there].&lt;br /&gt;
|-&lt;br /&gt;
|  holiday&lt;br /&gt;
|  HolidayName &lt;br /&gt;
|  enable special processing for unpredicted holidays.&lt;br /&gt;
|-&lt;br /&gt;
|  hottub&lt;br /&gt;
|  &lt;br /&gt;
|  soak in your clan&#039;s hot tub&lt;br /&gt;
|-&lt;br /&gt;
|  http:*&lt;br /&gt;
|  &lt;br /&gt;
|  visit URL without showing results.&lt;br /&gt;
|-&lt;br /&gt;
|  kmail&lt;br /&gt;
|  item [, item]... to recipient [ &amp;amp;#124;| message ] &lt;br /&gt;
|  send kmail&lt;br /&gt;
|-&lt;br /&gt;
|  locations&lt;br /&gt;
|  [param] &lt;br /&gt;
|  list indicated type of data, possibly filtered by param.&lt;br /&gt;
|-&lt;br /&gt;
|  lookup&lt;br /&gt;
|  item &amp;amp;#124; effect &lt;br /&gt;
|  go to appropriate KoL Wiki page.&lt;br /&gt;
|-&lt;br /&gt;
|  mcd&lt;br /&gt;
|  number &lt;br /&gt;
|  set mind control device (or equivalent) to new value.&lt;br /&gt;
|-&lt;br /&gt;
|  mind-control&lt;br /&gt;
|  number &lt;br /&gt;
|  set mind control device (or equivalent) to new value.&lt;br /&gt;
|-&lt;br /&gt;
|  moleref&lt;br /&gt;
|  &lt;br /&gt;
|  Path of the Mole spoilers.&lt;br /&gt;
|-&lt;br /&gt;
|  monsters&lt;br /&gt;
|  location &lt;br /&gt;
|  show combat details for the specified area.&lt;br /&gt;
|-&lt;br /&gt;
|  moon*&lt;br /&gt;
|  [param] &lt;br /&gt;
|  list indicated type of data, possibly filtered by param.&lt;br /&gt;
|-&lt;br /&gt;
|  mpitems&lt;br /&gt;
|  &lt;br /&gt;
|  counts MP restoratives in inventory.&lt;br /&gt;
|-&lt;br /&gt;
|  nuns&lt;br /&gt;
|  [mp] &lt;br /&gt;
|  visit the Nunnery for restoration [but only if MP is restored].&lt;br /&gt;
|-&lt;br /&gt;
|  olfact*&lt;br /&gt;
|  ( none &amp;amp;#124; monster name | [item] list | goals ) [abort] &lt;br /&gt;
|  tag next monster [that drops all items in list, or your goals].&lt;br /&gt;
|-&lt;br /&gt;
|  putty&lt;br /&gt;
|  ( none &amp;amp;#124; monster name | [item] list | goals ) [abort] &lt;br /&gt;
|  tag next monster [that drops all items in list, or your goals].&lt;br /&gt;
|-&lt;br /&gt;
|  pvp&lt;br /&gt;
|  [ target [, target]... ] &lt;br /&gt;
|  PvP for dignity or flowers&lt;br /&gt;
|-&lt;br /&gt;
|  pvplog*&lt;br /&gt;
|  &lt;br /&gt;
|  summarize PvP results.&lt;br /&gt;
|-&lt;br /&gt;
|  raffle&lt;br /&gt;
|  ticketsToBuy [ inventory &amp;amp;#124; storage ] &lt;br /&gt;
|  buy raffle tickets&lt;br /&gt;
|-&lt;br /&gt;
|  recover*&lt;br /&gt;
|  hp &amp;amp;#124; health | mp | mana | both &lt;br /&gt;
|  attempt to regain some HP or MP.&lt;br /&gt;
|-&lt;br /&gt;
|  remedy[?]&lt;br /&gt;
|  effect [, effect]... &lt;br /&gt;
|  remove effects using appropriate means.&lt;br /&gt;
|-&lt;br /&gt;
|  restore*&lt;br /&gt;
|  hp &amp;amp;#124; health | mp | mana | both &lt;br /&gt;
|  attempt to regain some HP or MP.&lt;br /&gt;
|-&lt;br /&gt;
|  safe&lt;br /&gt;
|  location &lt;br /&gt;
|  show summary data for the specified area.&lt;br /&gt;
|-&lt;br /&gt;
|  send&lt;br /&gt;
|  item [, item]... to recipient [ &amp;amp;#124;| message ] &lt;br /&gt;
|  send kmail&lt;br /&gt;
|-&lt;br /&gt;
|  shrug[?]&lt;br /&gt;
|  effect [, effect]... &lt;br /&gt;
|  remove effects using appropriate means.&lt;br /&gt;
|-&lt;br /&gt;
|  skill[?]&lt;br /&gt;
|  [ [count] skill [on player] ] &lt;br /&gt;
|  list spells, or use one.&lt;br /&gt;
|-&lt;br /&gt;
|  skills&lt;br /&gt;
|  [param] &lt;br /&gt;
|  list indicated type of data, possibly filtered by param.&lt;br /&gt;
|-&lt;br /&gt;
|  sleep&lt;br /&gt;
|  number &lt;br /&gt;
|  rest on your clan sofa for number turns.&lt;br /&gt;
|-&lt;br /&gt;
|  soak&lt;br /&gt;
|  &lt;br /&gt;
|  soak in your clan&#039;s hot tub&lt;br /&gt;
|-&lt;br /&gt;
|  sofa&lt;br /&gt;
|  number &lt;br /&gt;
|  rest on your clan sofa for number turns.&lt;br /&gt;
|-&lt;br /&gt;
|  spade&lt;br /&gt;
|  [prices URL] &lt;br /&gt;
|  submit automatically gathered data.&lt;br /&gt;
|-&lt;br /&gt;
|  status&lt;br /&gt;
|  [param] &lt;br /&gt;
|  list indicated type of data, possibly filtered by param.&lt;br /&gt;
|-&lt;br /&gt;
|  styx&lt;br /&gt;
|  muscle &amp;amp;#124; mysticality | moxie &lt;br /&gt;
|  get daily Styx Pixie buff.&lt;br /&gt;
|-&lt;br /&gt;
|  summary&lt;br /&gt;
|  [param] &lt;br /&gt;
|  list indicated type of data, possibly filtered by param.&lt;br /&gt;
|-&lt;br /&gt;
|  summon&lt;br /&gt;
|  demonName &amp;amp;#124; effect &amp;amp;#124; location &amp;amp;#124; number &lt;br /&gt;
|  use the Summoning Chamber.&lt;br /&gt;
|-&lt;br /&gt;
|  text&lt;br /&gt;
|  URL &lt;br /&gt;
|  show text results from visiting URL.&lt;br /&gt;
|-&lt;br /&gt;
|  train&lt;br /&gt;
|  base weight &amp;amp;#124; buffed weight | turns number &lt;br /&gt;
|  train familiar.&lt;br /&gt;
|-&lt;br /&gt;
|  uneffect[?]&lt;br /&gt;
|  effect [, effect]... &lt;br /&gt;
|  remove effects using appropriate means.&lt;br /&gt;
|-&lt;br /&gt;
|  unequip&lt;br /&gt;
|  slot &amp;amp;#124; name &lt;br /&gt;
|  remove equipment in slot, or that matches name&lt;br /&gt;
|-&lt;br /&gt;
|  up?&lt;br /&gt;
|  effect [, effect]... &lt;br /&gt;
|  extend duration of effects.&lt;br /&gt;
|-&lt;br /&gt;
|  wiki&lt;br /&gt;
|  searchText &lt;br /&gt;
|  perform search on KoL Wiki.&lt;br /&gt;
|-&lt;br /&gt;
|  win&lt;br /&gt;
|  game &lt;br /&gt;
|  I&#039;m as surprised as you! I didn&#039;t think it was possible.&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>HippoKing</name></author>
	</entry>
	<entry>
		<id>https://wiki.kolmafia.us/index.php?title=CLI_Reference&amp;diff=2917</id>
		<title>CLI Reference</title>
		<link rel="alternate" type="text/html" href="https://wiki.kolmafia.us/index.php?title=CLI_Reference&amp;diff=2917"/>
		<updated>2009-08-30T16:16:00Z</updated>

		<summary type="html">&lt;p&gt;HippoKing: reordered partly&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The KoLmafia Graphical CLI is one of the most helpful features it has. This page is intended to provide information on the commands available.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Inventory and Consumption Management==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!  Command&lt;br /&gt;
!  Arguments&lt;br /&gt;
!  Description&lt;br /&gt;
|-&lt;br /&gt;
|  *brewery*[?]&lt;br /&gt;
|  [ daily special &amp;amp;#124; item ] &lt;br /&gt;
|  show daily special [or consume it or other restaurant item].&lt;br /&gt;
|-&lt;br /&gt;
|  *kitchen*[?]&lt;br /&gt;
|  item &lt;br /&gt;
|  consumes item at Hell&#039;s Kitchen, if available.&lt;br /&gt;
|-&lt;br /&gt;
|  acquire&lt;br /&gt;
|  item &lt;br /&gt;
|  ensure that you have item, creating or buying it if needed.&lt;br /&gt;
|-&lt;br /&gt;
|  bake&lt;br /&gt;
|  [ item... ] &lt;br /&gt;
|  list creatables, or create specified items.&lt;br /&gt;
|-&lt;br /&gt;
|  chew[?]&lt;br /&gt;
|  [either] item [, item]... &lt;br /&gt;
|  use/consume items&lt;br /&gt;
|-&lt;br /&gt;
|  cleanup&lt;br /&gt;
|  &lt;br /&gt;
|  use, pulverize, or autosell your junk items.&lt;br /&gt;
|-&lt;br /&gt;
|  closet&lt;br /&gt;
|  list filter &amp;amp;#124; put item... | take item... &lt;br /&gt;
|  list or manipulate your closet.&lt;br /&gt;
|-&lt;br /&gt;
|  create&lt;br /&gt;
|  [ item... ] &lt;br /&gt;
|  list creatables, or create specified items.&lt;br /&gt;
|-&lt;br /&gt;
|  display&lt;br /&gt;
|  [filter] &amp;amp;#124; put item... | take item... &lt;br /&gt;
|  list or manipulate your display case.&lt;br /&gt;
|-&lt;br /&gt;
|  eat[?]&lt;br /&gt;
|  [either] item [, item]... &lt;br /&gt;
|  use/consume items&lt;br /&gt;
|-&lt;br /&gt;
|  equip&lt;br /&gt;
|  [list filter] &amp;amp;#124; [slot] item &lt;br /&gt;
|  show equipment, or equip item [in slot].&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Quests==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!  Command Name&lt;br /&gt;
!  Arguments&lt;br /&gt;
!  Description&lt;br /&gt;
|-&lt;br /&gt;
|  !&lt;br /&gt;
|  &lt;br /&gt;
|  list the Dungeons of Doom potions you&#039;ve identified.&lt;br /&gt;
|-&lt;br /&gt;
|  bang&lt;br /&gt;
|  &lt;br /&gt;
|  list the Dungeons of Doom potions you&#039;ve identified.&lt;br /&gt;
|-&lt;br /&gt;
|  chamber&lt;br /&gt;
|  &lt;br /&gt;
|  automatically complete quest.&lt;br /&gt;
|-&lt;br /&gt;
|  council&lt;br /&gt;
|  &lt;br /&gt;
|  visit the Council to advance quest progress.&lt;br /&gt;
|-&lt;br /&gt;
|  dusty&lt;br /&gt;
|  &lt;br /&gt;
|  list the dusty bottles of wine you&#039;ve identified.&lt;br /&gt;
|-&lt;br /&gt;
|  entryway&lt;br /&gt;
|  [clover] &lt;br /&gt;
|  automatically complete quest [using a clover].&lt;br /&gt;
|-&lt;br /&gt;
|  factory&lt;br /&gt;
|  report digits &lt;br /&gt;
|  Given a string of 7 dwarven digits, report on factory.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Capitalism==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!  Command Name&lt;br /&gt;
!  Arguments&lt;br /&gt;
!  Description&lt;br /&gt;
|-&lt;br /&gt;
|  automall&lt;br /&gt;
|  &lt;br /&gt;
|  dump all profitable, non-memento items into the Mall.&lt;br /&gt;
|-&lt;br /&gt;
|  autosell&lt;br /&gt;
|  item [, item]... &lt;br /&gt;
|  autosell items.&lt;br /&gt;
|-&lt;br /&gt;
|  buy&lt;br /&gt;
|  item [@ limit] [, another]... &lt;br /&gt;
|  buy from NPC store or the Mall.&lt;br /&gt;
|-&lt;br /&gt;
|  cheapest[?]&lt;br /&gt;
|  [+]item [,[-]item]... [; cmds] &lt;br /&gt;
|  compare prices, do cmds with &amp;quot;it&amp;quot; replaced with best.&lt;br /&gt;
|-&lt;br /&gt;
|  expensive[?]&lt;br /&gt;
|  [+]item [,[-]item]... [; cmds]&lt;br /&gt;
|  compare prices, do cmds with &amp;quot;it&amp;quot; replaced with best.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Mafia==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!  Command Name&lt;br /&gt;
!  Arguments&lt;br /&gt;
!  Description&lt;br /&gt;
|-&lt;br /&gt;
|  adv*[?]&lt;br /&gt;
|  last &amp;amp;#124; [count] location &lt;br /&gt;
|  spend your turns.&lt;br /&gt;
|-&lt;br /&gt;
|  abort&lt;br /&gt;
|  [message] &lt;br /&gt;
|  stop current script or automated task.&lt;br /&gt;
|-&lt;br /&gt;
|  alias&lt;br /&gt;
|  [ word =&amp;gt; expansion ] &lt;br /&gt;
|  list or create CLI abbreviations.&lt;br /&gt;
|-&lt;br /&gt;
|  ash&lt;br /&gt;
|  statement &lt;br /&gt;
|  test a line of ASH code without having to edit a script.&lt;br /&gt;
|-&lt;br /&gt;
|  ashref&lt;br /&gt;
|  [filter] &lt;br /&gt;
|  summarize ASH built-in functions [matching filter].&lt;br /&gt;
|-&lt;br /&gt;
|  backtrace&lt;br /&gt;
|  text &amp;amp;#124; off &lt;br /&gt;
|  dump stack when a gCLI message or page URL matches text (case-sensitive).&lt;br /&gt;
|-&lt;br /&gt;
|  breakfast&lt;br /&gt;
|  &lt;br /&gt;
|  perform start-of-day activities.&lt;br /&gt;
|-&lt;br /&gt;
|  budget&lt;br /&gt;
|  [number] &lt;br /&gt;
|  show [or set] the number of budgeted Hagnk&#039;s pulls.&lt;br /&gt;
|-&lt;br /&gt;
|  buffbot&lt;br /&gt;
|  number &lt;br /&gt;
|  run buffbot for number iterations.&lt;br /&gt;
|-&lt;br /&gt;
|  call&lt;br /&gt;
|  [numberx] filename &amp;amp;#124; function [parameters] &lt;br /&gt;
|  check/run script.&lt;br /&gt;
|-&lt;br /&gt;
|  ccs&lt;br /&gt;
|  [script] &lt;br /&gt;
|  show [or select] Custom Combat Script in use.&lt;br /&gt;
|-&lt;br /&gt;
|  cecho&lt;br /&gt;
|  color text &lt;br /&gt;
|  show text using color (specified by name or #RRGGBB).&lt;br /&gt;
|-&lt;br /&gt;
|  chat&lt;br /&gt;
|  &lt;br /&gt;
|  switch to tab or open window&lt;br /&gt;
|-&lt;br /&gt;
|  check&lt;br /&gt;
|  hp &amp;amp;#124; health &amp;amp;#124; mp &amp;amp;#124; mana &amp;amp;#124; both &lt;br /&gt;
|  attempt to regain some HP or MP.&lt;br /&gt;
|-&lt;br /&gt;
|  checkpoint&lt;br /&gt;
|  &lt;br /&gt;
|  remembers current equipment, use &amp;quot;outfit checkpoint&amp;quot; to restore.&lt;br /&gt;
|-&lt;br /&gt;
|  clear&lt;br /&gt;
|  &lt;br /&gt;
|  clear CLI window.&lt;br /&gt;
|-&lt;br /&gt;
|  cls&lt;br /&gt;
|  &lt;br /&gt;
|  clear CLI window.&lt;br /&gt;
|-&lt;br /&gt;
|  condition*&lt;br /&gt;
|  clear &amp;amp;#124; check | add condition | set condition &lt;br /&gt;
|  modify your adventuring goals.&lt;br /&gt;
|-&lt;br /&gt;
|  condref&lt;br /&gt;
|  &lt;br /&gt;
|  list conditions usable with if/while commands.&lt;br /&gt;
|-&lt;br /&gt;
|  counters&lt;br /&gt;
|  [ clear &amp;amp;#124; add number [title img] ] &lt;br /&gt;
|  show, clear, or add to current turn counters.&lt;br /&gt;
|-&lt;br /&gt;
|  debug&lt;br /&gt;
|  [on] &amp;amp;#124; off &lt;br /&gt;
|  start or stop logging of debugging data.&lt;br /&gt;
|-&lt;br /&gt;
|  disable&lt;br /&gt;
|  all &amp;amp;#124; command [, command]... &lt;br /&gt;
|  allow/deny CLI commands.&lt;br /&gt;
|-&lt;br /&gt;
|  events&lt;br /&gt;
|  [clear] &lt;br /&gt;
|  clear or show recent events.&lt;br /&gt;
|-&lt;br /&gt;
|  exec*&lt;br /&gt;
|  [numberx] filename &amp;amp;#124; function [parameters] &lt;br /&gt;
|  check/run script.&lt;br /&gt;
|-&lt;br /&gt;
|  exit&lt;br /&gt;
|  &lt;br /&gt;
|  logout and exit KoLmafia.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Scripting==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!  Command Name&lt;br /&gt;
!  Arguments&lt;br /&gt;
!  Description&lt;br /&gt;
|-&lt;br /&gt;
|  &amp;lt;inline-ash-script&amp;gt;&lt;br /&gt;
|  &lt;br /&gt;
|  embed an ASH script in a CLI script.&lt;br /&gt;
|-&lt;br /&gt;
|  cecho&lt;br /&gt;
|  color text &lt;br /&gt;
|  show text using color (specified by name or #RRGGBB).&lt;br /&gt;
|-&lt;br /&gt;
|  colorecho&lt;br /&gt;
|  color text &lt;br /&gt;
|  show text using color (specified by name or #RRGGBB).&lt;br /&gt;
|-&lt;br /&gt;
|  echo&lt;br /&gt;
|  timestamp &amp;amp;#124; text &lt;br /&gt;
|  include timestamp or text in the session log.&lt;br /&gt;
|-&lt;br /&gt;
|  else&lt;br /&gt;
|  ; commands &lt;br /&gt;
|  do commands if preceding if/while/try didn&#039;t execute.&lt;br /&gt;
|-&lt;br /&gt;
|  elseif&lt;br /&gt;
|  condition; commands &lt;br /&gt;
|  do if condition is true but preceding condition was false.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Other==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!  Command Name&lt;br /&gt;
!  Arguments&lt;br /&gt;
!  Description&lt;br /&gt;
|-&lt;br /&gt;
|  *.php*&lt;br /&gt;
|  &lt;br /&gt;
|  visit URL without showing results.&lt;br /&gt;
|-&lt;br /&gt;
|  *mirror*&lt;br /&gt;
|  [filename] &lt;br /&gt;
|  stop [or start] logging to an additional file.&lt;br /&gt;
|-&lt;br /&gt;
|  aa&lt;br /&gt;
|  skill &lt;br /&gt;
|  set default attack method.&lt;br /&gt;
|-&lt;br /&gt;
|  attack&lt;br /&gt;
|  [ target [, target]... ] &lt;br /&gt;
|  PvP for dignity or flowers&lt;br /&gt;
|-&lt;br /&gt;
|  autoattack&lt;br /&gt;
|  skill &lt;br /&gt;
|  set default attack method.&lt;br /&gt;
|-&lt;br /&gt;
|  basement&lt;br /&gt;
|  &lt;br /&gt;
|  check Fernswarthy&#039;s Basement status.&lt;br /&gt;
|-&lt;br /&gt;
|  burn&lt;br /&gt;
|  extra &amp;amp;#124; * &amp;amp;#124; num &amp;amp;#124; -num&lt;br /&gt;
|  use excess/all/specified/all but specified MP for buff extension and summons.&lt;br /&gt;
|-&lt;br /&gt;
|  camp*&lt;br /&gt;
|  rest &amp;amp;#124; etc. [numTimes] &lt;br /&gt;
|  perform campground actions.&lt;br /&gt;
|-&lt;br /&gt;
|  cast[?]&lt;br /&gt;
|  [ [count] skill [on player] ] &lt;br /&gt;
|  list spells, or use one.&lt;br /&gt;
|-&lt;br /&gt;
|  clan&lt;br /&gt;
|  [ snapshot &amp;amp;#124; stashlog ] &lt;br /&gt;
|  clan management.&lt;br /&gt;
|-&lt;br /&gt;
|  csend&lt;br /&gt;
|  item [, item]... to recipient [ &amp;amp;#124;| message ] &lt;br /&gt;
|  send kmail&lt;br /&gt;
|-&lt;br /&gt;
|  demons&lt;br /&gt;
|  &lt;br /&gt;
|  list the demon names you know.&lt;br /&gt;
|-&lt;br /&gt;
|  donate&lt;br /&gt;
|  boris &amp;amp;#124; mus | jarl | mys | pete | mox amount &lt;br /&gt;
|  donate in Hall of Legends.&lt;br /&gt;
|-&lt;br /&gt;
|  drink[?]&lt;br /&gt;
|  [either] item [, item]... &lt;br /&gt;
|  use/consume items&lt;br /&gt;
|-&lt;br /&gt;
|  effects&lt;br /&gt;
|  [param] &lt;br /&gt;
|  list indicated type of data, possibly filtered by param.&lt;br /&gt;
|-&lt;br /&gt;
|  enable&lt;br /&gt;
|  all &amp;amp;#124; command [, command]... &lt;br /&gt;
|  allow/deny CLI commands.&lt;br /&gt;
|-&lt;br /&gt;
|  encounters&lt;br /&gt;
|  [param] &lt;br /&gt;
|  list indicated type of data, possibly filtered by param.&lt;br /&gt;
|-&lt;br /&gt;
|  entity&lt;br /&gt;
|  &lt;br /&gt;
|  give details of your current pastamancer combat entity.&lt;br /&gt;
|-&lt;br /&gt;
|  familiar[?]&lt;br /&gt;
|  [list filter] &amp;amp;#124; lock | unlock | species | none &lt;br /&gt;
|  list or change familiar types&lt;br /&gt;
|-&lt;br /&gt;
|  field&lt;br /&gt;
|  [ plant square type &amp;amp;#124; pick square | harvest ] &lt;br /&gt;
|  view or use your mushroom plot&lt;br /&gt;
|-&lt;br /&gt;
|  find&lt;br /&gt;
|  item &lt;br /&gt;
|  ensure that you have item, creating or buying it if needed.&lt;br /&gt;
|-&lt;br /&gt;
|  flowers&lt;br /&gt;
|  &lt;br /&gt;
|  commit random acts of PvP.&lt;br /&gt;
|-&lt;br /&gt;
|  fold[?]&lt;br /&gt;
|  item &lt;br /&gt;
|  produce item by using another form, repeated as needed.&lt;br /&gt;
|-&lt;br /&gt;
|  forum*&lt;br /&gt;
|  &lt;br /&gt;
|  visit the official KoL forums.&lt;br /&gt;
|-&lt;br /&gt;
|  friars&lt;br /&gt;
|  [blessing] food &amp;amp;#124; familiar | booze &lt;br /&gt;
|  get daily blessing.&lt;br /&gt;
|-&lt;br /&gt;
|  galaktik(hp&amp;amp;#124;mp)&lt;br /&gt;
|  [amount] &lt;br /&gt;
|  restore some or all hp or mp&lt;br /&gt;
|-&lt;br /&gt;
|  gc&lt;br /&gt;
|  &lt;br /&gt;
|  force Java garbage collection.&lt;br /&gt;
|-&lt;br /&gt;
|  gear&lt;br /&gt;
|  &lt;br /&gt;
|  switch to tab or open window&lt;br /&gt;
|-&lt;br /&gt;
|  get&lt;br /&gt;
|  preference [ = value ] &lt;br /&gt;
|  show/change preference settings&lt;br /&gt;
|-&lt;br /&gt;
|  ghost[?]&lt;br /&gt;
|  [either] item [, item]... &lt;br /&gt;
|  use/consume items&lt;br /&gt;
|-&lt;br /&gt;
|  goal*&lt;br /&gt;
|  clear &amp;amp;#124; check | add condition | set condition &lt;br /&gt;
|  modify your adventuring goals.&lt;br /&gt;
|-&lt;br /&gt;
|  gourd&lt;br /&gt;
|  &lt;br /&gt;
|  automatically complete quest.&lt;br /&gt;
|-&lt;br /&gt;
|  grandpa&lt;br /&gt;
|  query &lt;br /&gt;
|  Ask Grandpa about something.&lt;br /&gt;
|-&lt;br /&gt;
|  guardians&lt;br /&gt;
|  &lt;br /&gt;
|  automatically complete quest.&lt;br /&gt;
|-&lt;br /&gt;
|  guild&lt;br /&gt;
|  &lt;br /&gt;
|  automatically complete quest.&lt;br /&gt;
|-&lt;br /&gt;
|  hagnk&lt;br /&gt;
|  outfit name &amp;amp;#124; item [, item]... &lt;br /&gt;
|  pull items from Hagnk&#039;s storage.&lt;br /&gt;
|-&lt;br /&gt;
|  hedge*&lt;br /&gt;
|  &lt;br /&gt;
|  automatically complete quest.&lt;br /&gt;
|-&lt;br /&gt;
|  help&lt;br /&gt;
|  [filter] &lt;br /&gt;
|  list CLI commands [that match filter].&lt;br /&gt;
|-&lt;br /&gt;
|  hermit[?]&lt;br /&gt;
|  [item] &lt;br /&gt;
|  get clover status, or trade for item.&lt;br /&gt;
|-&lt;br /&gt;
|  hiddencity&lt;br /&gt;
|  square [temple&amp;amp;#124;altar item] &lt;br /&gt;
|  set Hidden City square [and perform an action there].&lt;br /&gt;
|-&lt;br /&gt;
|  hobo[?]&lt;br /&gt;
|  [either] item [, item]... &lt;br /&gt;
|  use/consume items&lt;br /&gt;
|-&lt;br /&gt;
|  holiday&lt;br /&gt;
|  HolidayName &lt;br /&gt;
|  enable special processing for unpredicted holidays.&lt;br /&gt;
|-&lt;br /&gt;
|  hottub&lt;br /&gt;
|  &lt;br /&gt;
|  soak in your clan&#039;s hot tub&lt;br /&gt;
|-&lt;br /&gt;
|  http:*&lt;br /&gt;
|  &lt;br /&gt;
|  visit URL without showing results.&lt;br /&gt;
|-&lt;br /&gt;
|  if&lt;br /&gt;
|  condition; commands &lt;br /&gt;
|  do commands once if condition is true (see condref).&lt;br /&gt;
|-&lt;br /&gt;
|  insults&lt;br /&gt;
|  &lt;br /&gt;
|  list the pirate insult comebacks you know.&lt;br /&gt;
|-&lt;br /&gt;
|  inv*&lt;br /&gt;
|  [param] &lt;br /&gt;
|  list indicated type of data, possibly filtered by param.&lt;br /&gt;
|-&lt;br /&gt;
|  item&lt;br /&gt;
|  &lt;br /&gt;
|  switch to tab or open window&lt;br /&gt;
|-&lt;br /&gt;
|  junk&lt;br /&gt;
|  &lt;br /&gt;
|  use, pulverize, or autosell your junk items.&lt;br /&gt;
|-&lt;br /&gt;
|  kmail&lt;br /&gt;
|  item [, item]... to recipient [ &amp;amp;#124;| message ] &lt;br /&gt;
|  send kmail&lt;br /&gt;
|-&lt;br /&gt;
|  later&lt;br /&gt;
|  commands &lt;br /&gt;
|  adds a button to do commands to the Daily Deeds list.&lt;br /&gt;
|-&lt;br /&gt;
|  leaflet&lt;br /&gt;
|  [nomagic] &amp;amp;#124; location | command &lt;br /&gt;
|  complete leaflet quest [without using magic words].&lt;br /&gt;
|-&lt;br /&gt;
|  load&lt;br /&gt;
|  [numberx] filename &amp;amp;#124; function [parameters] &lt;br /&gt;
|  check/run script.&lt;br /&gt;
|-&lt;br /&gt;
|  locations&lt;br /&gt;
|  [param] &lt;br /&gt;
|  list indicated type of data, possibly filtered by param.&lt;br /&gt;
|-&lt;br /&gt;
|  log&lt;br /&gt;
|  [status],[equipment],[effects],[etc.] &lt;br /&gt;
|  record data, &amp;quot;log snapshot&amp;quot; for all common data.&lt;br /&gt;
|-&lt;br /&gt;
|  logecho&lt;br /&gt;
|  timestamp &amp;amp;#124; text &lt;br /&gt;
|  include timestamp or text in the session log only.&lt;br /&gt;
|-&lt;br /&gt;
|  login&lt;br /&gt;
|  username &lt;br /&gt;
|  logout then log back in as username.&lt;br /&gt;
|-&lt;br /&gt;
|  logout&lt;br /&gt;
|  &lt;br /&gt;
|  logout and return to login window.&lt;br /&gt;
|-&lt;br /&gt;
|  logprint&lt;br /&gt;
|  timestamp &amp;amp;#124; text &lt;br /&gt;
|  include timestamp or text in the session log only.&lt;br /&gt;
|-&lt;br /&gt;
|  lookup&lt;br /&gt;
|  item &amp;amp;#124; effect &lt;br /&gt;
|  go to appropriate KoL Wiki page.&lt;br /&gt;
|-&lt;br /&gt;
|  mail&lt;br /&gt;
|  &lt;br /&gt;
|  switch to tab or open window&lt;br /&gt;
|-&lt;br /&gt;
|  make&lt;br /&gt;
|  [ item... ] &lt;br /&gt;
|  list creatables, or create specified items.&lt;br /&gt;
|-&lt;br /&gt;
|  mallbuy&lt;br /&gt;
|  item [@ limit] [, another]... &lt;br /&gt;
|  buy from NPC store or the Mall.&lt;br /&gt;
|-&lt;br /&gt;
|  mallsell&lt;br /&gt;
|  item [[@] price [[limit] num]] [, another]... &lt;br /&gt;
|  sell in Mall.&lt;br /&gt;
|-&lt;br /&gt;
|  [+&amp;amp;#124;-|weight]&lt;br /&gt;
|  keyword, ... &lt;br /&gt;
|  run the Modifier Maximizer.&lt;br /&gt;
|-&lt;br /&gt;
|  maze&lt;br /&gt;
|  &lt;br /&gt;
|  automatically complete quest.&lt;br /&gt;
|-&lt;br /&gt;
|  mcd&lt;br /&gt;
|  number &lt;br /&gt;
|  set mind control device (or equivalent) to new value.&lt;br /&gt;
|-&lt;br /&gt;
|  mind-control&lt;br /&gt;
|  number &lt;br /&gt;
|  set mind control device (or equivalent) to new value.&lt;br /&gt;
|-&lt;br /&gt;
|  mix&lt;br /&gt;
|  [ item... ] &lt;br /&gt;
|  list creatables, or create specified items.&lt;br /&gt;
|-&lt;br /&gt;
|  modifies&lt;br /&gt;
|  filter &lt;br /&gt;
|  list all possible sources of modifiers matching filter.&lt;br /&gt;
|-&lt;br /&gt;
|  modref&lt;br /&gt;
|  [object] &lt;br /&gt;
|  list all modifiers, show values for player [and object].&lt;br /&gt;
|-&lt;br /&gt;
|  modtrace&lt;br /&gt;
|  filter &lt;br /&gt;
|  list everything that adds to modifiers matching filter.&lt;br /&gt;
|-&lt;br /&gt;
|  moleref&lt;br /&gt;
|  &lt;br /&gt;
|  Path of the Mole spoilers.&lt;br /&gt;
|-&lt;br /&gt;
|  monsters&lt;br /&gt;
|  location &lt;br /&gt;
|  show combat details for the specified area.&lt;br /&gt;
|-&lt;br /&gt;
|  mood*&lt;br /&gt;
|  clear &amp;amp;#124; autofill | execute | repeat [numTimes] | moodName [numTimes] &lt;br /&gt;
|  mood management.&lt;br /&gt;
|-&lt;br /&gt;
|  moon*&lt;br /&gt;
|  [param] &lt;br /&gt;
|  list indicated type of data, possibly filtered by param.&lt;br /&gt;
|-&lt;br /&gt;
|  mpitems&lt;br /&gt;
|  &lt;br /&gt;
|  counts MP restoratives in inventory.&lt;br /&gt;
|-&lt;br /&gt;
|  namespace&lt;br /&gt;
|  [filter] &lt;br /&gt;
|  list namespace scripts and the functions they define.&lt;br /&gt;
|-&lt;br /&gt;
|  nemesis&lt;br /&gt;
|  &lt;br /&gt;
|  automatically complete quest.&lt;br /&gt;
|-&lt;br /&gt;
|  nuns&lt;br /&gt;
|  [mp] &lt;br /&gt;
|  visit the Nunnery for restoration [but only if MP is restored].&lt;br /&gt;
|-&lt;br /&gt;
|  objective*&lt;br /&gt;
|  clear &amp;amp;#124; check | add condition | set condition &lt;br /&gt;
|  modify your adventuring goals.&lt;br /&gt;
|-&lt;br /&gt;
|  olfact*&lt;br /&gt;
|  ( none &amp;amp;#124; monster name | [item] list | goals ) [abort] &lt;br /&gt;
|  tag next monster [that drops all items in list, or your goals].&lt;br /&gt;
|-&lt;br /&gt;
|  opt*&lt;br /&gt;
|  &lt;br /&gt;
|  switch to tab or open window&lt;br /&gt;
|-&lt;br /&gt;
|  outfit&lt;br /&gt;
|  [list filter] &amp;amp;#124; save name | checkpoint | name &lt;br /&gt;
|  list, save, restore, or change outfits.&lt;br /&gt;
|-&lt;br /&gt;
|  overdrink[?]&lt;br /&gt;
|  [either] item [, item]... &lt;br /&gt;
|  use/consume items&lt;br /&gt;
|-&lt;br /&gt;
|  pause&lt;br /&gt;
|  [seconds] &lt;br /&gt;
|  pause script execution (default 1 second).&lt;br /&gt;
|-&lt;br /&gt;
|  ply&lt;br /&gt;
|  [ item... ] &lt;br /&gt;
|  list creatables, or create specified items.&lt;br /&gt;
|-&lt;br /&gt;
|  print&lt;br /&gt;
|  timestamp &amp;amp;#124; text &lt;br /&gt;
|  include timestamp or text in the session log.&lt;br /&gt;
|-&lt;br /&gt;
|  priphea&lt;br /&gt;
|  &lt;br /&gt;
|  launch KoLmafia GUI.&lt;br /&gt;
|-&lt;br /&gt;
|  pull&lt;br /&gt;
|  outfit name &amp;amp;#124; item [, item]... &lt;br /&gt;
|  pull items from Hagnk&#039;s storage.&lt;br /&gt;
|-&lt;br /&gt;
|  pulverize&lt;br /&gt;
|  item [, item]... &lt;br /&gt;
|  pulverize specified items&lt;br /&gt;
|-&lt;br /&gt;
|  putty&lt;br /&gt;
|  ( none &amp;amp;#124; monster name | [item] list | goals ) [abort] &lt;br /&gt;
|  tag next monster [that drops all items in list, or your goals].&lt;br /&gt;
|-&lt;br /&gt;
|  pvp&lt;br /&gt;
|  [ target [, target]... ] &lt;br /&gt;
|  PvP for dignity or flowers&lt;br /&gt;
|-&lt;br /&gt;
|  pvplog*&lt;br /&gt;
|  &lt;br /&gt;
|  summarize PvP results.&lt;br /&gt;
|-&lt;br /&gt;
|  quark[?]&lt;br /&gt;
|  [itemList...] &lt;br /&gt;
|  gain MP by pasting unstable quark with best item from itemList (or your junk list).&lt;br /&gt;
|-&lt;br /&gt;
|  quit&lt;br /&gt;
|  &lt;br /&gt;
|  logout and exit KoLmafia.&lt;br /&gt;
|-&lt;br /&gt;
|  radio&lt;br /&gt;
|  &lt;br /&gt;
|  switch to tab or open window&lt;br /&gt;
|-&lt;br /&gt;
|  raffle&lt;br /&gt;
|  ticketsToBuy [ inventory &amp;amp;#124; storage ] &lt;br /&gt;
|  buy raffle tickets&lt;br /&gt;
|-&lt;br /&gt;
|  recover*&lt;br /&gt;
|  hp &amp;amp;#124; health | mp | mana | both &lt;br /&gt;
|  attempt to regain some HP or MP.&lt;br /&gt;
|-&lt;br /&gt;
|  refresh&lt;br /&gt;
|  all &amp;amp;#124; status | equip | inv | storage | familiar | stickers &lt;br /&gt;
|  resynchronize with KoL.&lt;br /&gt;
|-&lt;br /&gt;
|  relay&lt;br /&gt;
|  &lt;br /&gt;
|  open the relay browser.&lt;br /&gt;
|-&lt;br /&gt;
|  remedy[?]&lt;br /&gt;
|  effect [, effect]... &lt;br /&gt;
|  remove effects using appropriate means.&lt;br /&gt;
|-&lt;br /&gt;
|  remove&lt;br /&gt;
|  slot &amp;amp;#124; name &lt;br /&gt;
|  remove equipment in slot, or that matches name&lt;br /&gt;
|-&lt;br /&gt;
|  repeat&lt;br /&gt;
|  [number] &lt;br /&gt;
|  repeat previous line [number times].&lt;br /&gt;
|-&lt;br /&gt;
|  reprice&lt;br /&gt;
|  &lt;br /&gt;
|  price all max-priced items at or below current Mall minimum price.&lt;br /&gt;
|-&lt;br /&gt;
|  restaurant[?]&lt;br /&gt;
|  [ daily special &amp;amp;#124; item ] &lt;br /&gt;
|  show daily special [or consume it or other restaurant item].&lt;br /&gt;
|-&lt;br /&gt;
|  restore*&lt;br /&gt;
|  hp &amp;amp;#124; health | mp | mana | both &lt;br /&gt;
|  attempt to regain some HP or MP.&lt;br /&gt;
|-&lt;br /&gt;
|  retrieve&lt;br /&gt;
|  item &lt;br /&gt;
|  ensure that you have item, creating or buying it if needed.&lt;br /&gt;
|-&lt;br /&gt;
|  run&lt;br /&gt;
|  [numberx] filename &amp;amp;#124; function [parameters] &lt;br /&gt;
|  check/run script.&lt;br /&gt;
|-&lt;br /&gt;
|  safe&lt;br /&gt;
|  location &lt;br /&gt;
|  show summary data for the specified area.&lt;br /&gt;
|-&lt;br /&gt;
|  save&lt;br /&gt;
|  as mood &lt;br /&gt;
|  add your current effects to the mood.&lt;br /&gt;
|-&lt;br /&gt;
|  searchmall&lt;br /&gt;
|  item [ with limit number ] &lt;br /&gt;
|  search the Mall.&lt;br /&gt;
|-&lt;br /&gt;
|  sell&lt;br /&gt;
|  item [, item]... &lt;br /&gt;
|  autosell items.&lt;br /&gt;
|-&lt;br /&gt;
|  send&lt;br /&gt;
|  item [, item]... to recipient [ &amp;amp;#124;| message ] &lt;br /&gt;
|  send kmail&lt;br /&gt;
|-&lt;br /&gt;
|  session&lt;br /&gt;
|  [param] &lt;br /&gt;
|  list indicated type of data, possibly filtered by param.&lt;br /&gt;
|-&lt;br /&gt;
|  set&lt;br /&gt;
|  preference [ = value ] &lt;br /&gt;
|  show/change preference settings&lt;br /&gt;
|-&lt;br /&gt;
|  shrug[?]&lt;br /&gt;
|  effect [, effect]... &lt;br /&gt;
|  remove effects using appropriate means.&lt;br /&gt;
|-&lt;br /&gt;
|  skill[?]&lt;br /&gt;
|  [ [count] skill [on player] ] &lt;br /&gt;
|  list spells, or use one.&lt;br /&gt;
|-&lt;br /&gt;
|  skills&lt;br /&gt;
|  [param] &lt;br /&gt;
|  list indicated type of data, possibly filtered by param.&lt;br /&gt;
|-&lt;br /&gt;
|  sleep&lt;br /&gt;
|  number &lt;br /&gt;
|  rest on your clan sofa for number turns.&lt;br /&gt;
|-&lt;br /&gt;
|  slimeling[?]&lt;br /&gt;
|  [either] item [, item]... &lt;br /&gt;
|  use/consume items&lt;br /&gt;
|-&lt;br /&gt;
|  smash&lt;br /&gt;
|  item [, item]... &lt;br /&gt;
|  pulverize specified items&lt;br /&gt;
|-&lt;br /&gt;
|  smith&lt;br /&gt;
|  [ item... ] &lt;br /&gt;
|  list creatables, or create specified items.&lt;br /&gt;
|-&lt;br /&gt;
|  soak&lt;br /&gt;
|  &lt;br /&gt;
|  soak in your clan&#039;s hot tub&lt;br /&gt;
|-&lt;br /&gt;
|  sofa&lt;br /&gt;
|  number &lt;br /&gt;
|  rest on your clan sofa for number turns.&lt;br /&gt;
|-&lt;br /&gt;
|  spade&lt;br /&gt;
|  [prices URL] &lt;br /&gt;
|  submit automatically gathered data.&lt;br /&gt;
|-&lt;br /&gt;
|  speculate&lt;br /&gt;
|  MCD num &amp;amp;#124; equip [slot] item | unequip slot | familiar type | up eff | uneffect eff | quiet ; [another;...] &lt;br /&gt;
|  predict modifiers.&lt;br /&gt;
|-&lt;br /&gt;
|  squeeze[?]&lt;br /&gt;
|  item &lt;br /&gt;
|  produce item by using another form, repeated as needed.&lt;br /&gt;
|-&lt;br /&gt;
|  start&lt;br /&gt;
|  [numberx] filename &amp;amp;#124; function [parameters] &lt;br /&gt;
|  check/run script.&lt;br /&gt;
|-&lt;br /&gt;
|  stash&lt;br /&gt;
|  [put] item... &amp;amp;#124; take item... &lt;br /&gt;
|  exchange items with clan stash&lt;br /&gt;
|-&lt;br /&gt;
|  status&lt;br /&gt;
|  [param] &lt;br /&gt;
|  list indicated type of data, possibly filtered by param.&lt;br /&gt;
|-&lt;br /&gt;
|  sticker*&lt;br /&gt;
|  sticker1 [, sticker2 [, sticker3]] &lt;br /&gt;
|  replace worn stickers.&lt;br /&gt;
|-&lt;br /&gt;
|  storage&lt;br /&gt;
|  [param] &lt;br /&gt;
|  list indicated type of data, possibly filtered by param.&lt;br /&gt;
|-&lt;br /&gt;
|  styx&lt;br /&gt;
|  muscle &amp;amp;#124; mysticality | moxie &lt;br /&gt;
|  get daily Styx Pixie buff.&lt;br /&gt;
|-&lt;br /&gt;
|  summary&lt;br /&gt;
|  [param] &lt;br /&gt;
|  list indicated type of data, possibly filtered by param.&lt;br /&gt;
|-&lt;br /&gt;
|  summon&lt;br /&gt;
|  demonName &amp;amp;#124; effect | location | number &lt;br /&gt;
|  use the Summoning Chamber.&lt;br /&gt;
|-&lt;br /&gt;
|  tavern&lt;br /&gt;
|  &lt;br /&gt;
|  automatically complete quest.&lt;br /&gt;
|-&lt;br /&gt;
|  telescope&lt;br /&gt;
|  [look] high &amp;amp;#124; low &lt;br /&gt;
|  get daily buff, or Lair hints from your telescope.&lt;br /&gt;
|-&lt;br /&gt;
|  text&lt;br /&gt;
|  URL &lt;br /&gt;
|  show text results from visiting URL.&lt;br /&gt;
|-&lt;br /&gt;
|  tinker&lt;br /&gt;
|  [ item... ] &lt;br /&gt;
|  list creatables, or create specified items.&lt;br /&gt;
|-&lt;br /&gt;
|  tower&lt;br /&gt;
|  &lt;br /&gt;
|  automatically complete quest.&lt;br /&gt;
|-&lt;br /&gt;
|  train&lt;br /&gt;
|  base weight &amp;amp;#124; buffed weight | turns number &lt;br /&gt;
|  train familiar.&lt;br /&gt;
|-&lt;br /&gt;
|  trigger*&lt;br /&gt;
|  clear &amp;amp;#124; autofill | [type,] effect [, action] &lt;br /&gt;
|  edit current mood&lt;br /&gt;
|-&lt;br /&gt;
|  try&lt;br /&gt;
|  ; commands &lt;br /&gt;
|  do commands, and continue even if an error occurs.&lt;br /&gt;
|-&lt;br /&gt;
|  unalias&lt;br /&gt;
|  word &lt;br /&gt;
|  remove a CLI abbreviation.&lt;br /&gt;
|-&lt;br /&gt;
|  undercut&lt;br /&gt;
|  &lt;br /&gt;
|  price all max-priced items at or below current Mall minimum price.&lt;br /&gt;
|-&lt;br /&gt;
|  uneffect[?]&lt;br /&gt;
|  effect [, effect]... &lt;br /&gt;
|  remove effects using appropriate means.&lt;br /&gt;
|-&lt;br /&gt;
|  unequip&lt;br /&gt;
|  slot &amp;amp;#124; name &lt;br /&gt;
|  remove equipment in slot, or that matches name&lt;br /&gt;
|-&lt;br /&gt;
|  untinker&lt;br /&gt;
|  [ item... ] &lt;br /&gt;
|  complete quest, or untinker items.&lt;br /&gt;
|-&lt;br /&gt;
|  up?&lt;br /&gt;
|  effect [, effect]... &lt;br /&gt;
|  extend duration of effects.&lt;br /&gt;
|-&lt;br /&gt;
|  update&lt;br /&gt;
|  data &amp;amp;#124; clear | prices URL or filename &lt;br /&gt;
|  download most recent data files, or revert to built-in data.&lt;br /&gt;
|-&lt;br /&gt;
|  use[?]&lt;br /&gt;
|  [either] item [, item]... &lt;br /&gt;
|  use/consume items&lt;br /&gt;
|-&lt;br /&gt;
|  using&lt;br /&gt;
|  filename &lt;br /&gt;
|  add ASH script to namespace.&lt;br /&gt;
|-&lt;br /&gt;
|  validate&lt;br /&gt;
|  [numberx] filename &amp;amp;#124; function [parameters] &lt;br /&gt;
|  check/run script.&lt;br /&gt;
|-&lt;br /&gt;
|  verify&lt;br /&gt;
|  [numberx] filename &amp;amp;#124; function [parameters] &lt;br /&gt;
|  check/run script.&lt;br /&gt;
|-&lt;br /&gt;
|  version&lt;br /&gt;
|  &lt;br /&gt;
|  display KoLmafia version.&lt;br /&gt;
|-&lt;br /&gt;
|  wait&lt;br /&gt;
|  [seconds] &lt;br /&gt;
|  pause script execution (default 1 second).&lt;br /&gt;
|-&lt;br /&gt;
|  wear&lt;br /&gt;
|  [list filter] &amp;amp;#124; [slot] item &lt;br /&gt;
|  show equipment, or equip item [in slot].&lt;br /&gt;
|-&lt;br /&gt;
|  whatif&lt;br /&gt;
|  MCD num &amp;amp;#124; equip [slot] item | unequip slot | familiar type | up eff | uneffect eff | quiet ; [another;...] &lt;br /&gt;
|  predict modifiers.&lt;br /&gt;
|-&lt;br /&gt;
|  while&lt;br /&gt;
|  condition; commands &lt;br /&gt;
|  do commands repeatedly while condition is true.&lt;br /&gt;
|-&lt;br /&gt;
|  wield&lt;br /&gt;
|  [list filter] &amp;amp;#124; [slot] item &lt;br /&gt;
|  show equipment, or equip item [in slot].&lt;br /&gt;
|-&lt;br /&gt;
|  wiki&lt;br /&gt;
|  searchText &lt;br /&gt;
|  perform search on KoL Wiki.&lt;br /&gt;
|-&lt;br /&gt;
|  win&lt;br /&gt;
|  game &lt;br /&gt;
|  I&#039;m as surprised as you! I didn&#039;t think it was possible.&lt;br /&gt;
|-&lt;br /&gt;
|  zap&lt;br /&gt;
|  item [, item]... &lt;br /&gt;
|  transform items with your wand.&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>HippoKing</name></author>
	</entry>
	<entry>
		<id>https://wiki.kolmafia.us/index.php?title=CLI_Reference&amp;diff=2916</id>
		<title>CLI Reference</title>
		<link rel="alternate" type="text/html" href="https://wiki.kolmafia.us/index.php?title=CLI_Reference&amp;diff=2916"/>
		<updated>2009-08-30T15:31:35Z</updated>

		<summary type="html">&lt;p&gt;HippoKing: wikies are horrible but I think I finally got the table syntax right&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The KoLmafia Graphical CLI is one of the most helpful features it has. This page is intended to provide information on the commands available.&lt;br /&gt;
&lt;br /&gt;
==Inventory Management==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!  Command&lt;br /&gt;
!  Arguments&lt;br /&gt;
!  Description&lt;br /&gt;
|-&lt;br /&gt;
|  acquire&lt;br /&gt;
|  item&lt;br /&gt;
|  Ensures you have argument item, making or buying when necessary.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Quests==&lt;br /&gt;
&lt;br /&gt;
==Market Management==&lt;br /&gt;
&lt;br /&gt;
==Mafia==&lt;br /&gt;
&lt;br /&gt;
==Other==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!  Command Name&lt;br /&gt;
!  Arguments&lt;br /&gt;
!  Description&lt;br /&gt;
|-&lt;br /&gt;
|  !&lt;br /&gt;
|  &lt;br /&gt;
|  list the Dungeons of Doom potions you&#039;ve identified.&lt;br /&gt;
|-&lt;br /&gt;
|  *.php*&lt;br /&gt;
|  &lt;br /&gt;
|  visit URL without showing results.&lt;br /&gt;
|-&lt;br /&gt;
|  *brewery*[?]&lt;br /&gt;
|  [ daily special &amp;amp;#124; item ] &lt;br /&gt;
|  show daily special [or consume it or other restaurant item].&lt;br /&gt;
|-&lt;br /&gt;
|  *kitchen*[?]&lt;br /&gt;
|  item &lt;br /&gt;
|  consumes item at Hell&#039;s Kitchen, if available.&lt;br /&gt;
|-&lt;br /&gt;
|  *mirror*&lt;br /&gt;
|  [filename] &lt;br /&gt;
|  stop [or start] logging to an additional file.&lt;br /&gt;
|-&lt;br /&gt;
|  &amp;lt;inline-ash-script&amp;gt;&lt;br /&gt;
|  &lt;br /&gt;
|  embed an ASH script in a CLI script.&lt;br /&gt;
|-&lt;br /&gt;
|  aa&lt;br /&gt;
|  skill &lt;br /&gt;
|  set default attack method.&lt;br /&gt;
|-&lt;br /&gt;
|  abort&lt;br /&gt;
|  [message] &lt;br /&gt;
|  stop current script or automated task.&lt;br /&gt;
|-&lt;br /&gt;
|  acquire&lt;br /&gt;
|  item &lt;br /&gt;
|  ensure that you have item, creating or buying it if needed.&lt;br /&gt;
|-&lt;br /&gt;
|  adv*[?]&lt;br /&gt;
|  last &amp;amp;#124; [count] location &lt;br /&gt;
|  spend your turns.&lt;br /&gt;
|-&lt;br /&gt;
|  alias&lt;br /&gt;
|  [ word =&amp;gt; expansion ] &lt;br /&gt;
|  list or create CLI abbreviations.&lt;br /&gt;
|-&lt;br /&gt;
|  ash&lt;br /&gt;
|  statement &lt;br /&gt;
|  test a line of ASH code without having to edit a script.&lt;br /&gt;
|-&lt;br /&gt;
|  ashref&lt;br /&gt;
|  [filter] &lt;br /&gt;
|  summarize ASH built-in functions [matching filter].&lt;br /&gt;
|-&lt;br /&gt;
|  attack&lt;br /&gt;
|  [ target [, target]... ] &lt;br /&gt;
|  PvP for dignity or flowers&lt;br /&gt;
|-&lt;br /&gt;
|  autoattack&lt;br /&gt;
|  skill &lt;br /&gt;
|  set default attack method.&lt;br /&gt;
|-&lt;br /&gt;
|  automall&lt;br /&gt;
|  &lt;br /&gt;
|  dump all profitable, non-memento items into the Mall.&lt;br /&gt;
|-&lt;br /&gt;
|  autosell&lt;br /&gt;
|  item [, item]... &lt;br /&gt;
|  autosell items.&lt;br /&gt;
|-&lt;br /&gt;
|  backtrace&lt;br /&gt;
|  text &amp;amp;#124; off &lt;br /&gt;
|  dump stack when a gCLI message or page URL matches text (case-sensitive).&lt;br /&gt;
|-&lt;br /&gt;
|  bake&lt;br /&gt;
|  [ item... ] &lt;br /&gt;
|  list creatables, or create specified items.&lt;br /&gt;
|-&lt;br /&gt;
|  bang&lt;br /&gt;
|  &lt;br /&gt;
|  list the Dungeons of Doom potions you&#039;ve identified.&lt;br /&gt;
|-&lt;br /&gt;
|  basement&lt;br /&gt;
|  &lt;br /&gt;
|  check Fernswarthy&#039;s Basement status.&lt;br /&gt;
|-&lt;br /&gt;
|  breakfast&lt;br /&gt;
|  &lt;br /&gt;
|  perform start-of-day activities.&lt;br /&gt;
|-&lt;br /&gt;
|  budget&lt;br /&gt;
|  [number] &lt;br /&gt;
|  show [or set] the number of budgeted Hagnk&#039;s pulls.&lt;br /&gt;
|-&lt;br /&gt;
|  buffbot&lt;br /&gt;
|  number &lt;br /&gt;
|  run buffbot for number iterations.&lt;br /&gt;
|-&lt;br /&gt;
|  -num&lt;br /&gt;
|  &lt;br /&gt;
|  use excess/all/specified/all but specified MP for buff extension and summons.&lt;br /&gt;
|-&lt;br /&gt;
|  buy&lt;br /&gt;
|  item [@ limit] [, another]... &lt;br /&gt;
|  buy from NPC store or the Mall.&lt;br /&gt;
|-&lt;br /&gt;
|  call&lt;br /&gt;
|  [numberx] filename &amp;amp;#124; function [parameters] &lt;br /&gt;
|  check/run script.&lt;br /&gt;
|-&lt;br /&gt;
|  camp*&lt;br /&gt;
|  rest &amp;amp;#124; etc. [numTimes] &lt;br /&gt;
|  perform campground actions.&lt;br /&gt;
|-&lt;br /&gt;
|  cast[?]&lt;br /&gt;
|  [ [count] skill [on player] ] &lt;br /&gt;
|  list spells, or use one.&lt;br /&gt;
|-&lt;br /&gt;
|  ccs&lt;br /&gt;
|  [script] &lt;br /&gt;
|  show [or select] Custom Combat Script in use.&lt;br /&gt;
|-&lt;br /&gt;
|  cecho&lt;br /&gt;
|  color text &lt;br /&gt;
|  show text using color (specified by name or #RRGGBB).&lt;br /&gt;
|-&lt;br /&gt;
|  chamber&lt;br /&gt;
|  &lt;br /&gt;
|  automatically complete quest.&lt;br /&gt;
|-&lt;br /&gt;
|  chat&lt;br /&gt;
|  &lt;br /&gt;
|  switch to tab or open window&lt;br /&gt;
|-&lt;br /&gt;
|  [,[-]item]...&lt;br /&gt;
|  [; cmds] &lt;br /&gt;
|  compare prices, do cmds with &amp;quot;it&amp;quot; replaced with best.&lt;br /&gt;
|-&lt;br /&gt;
|  check&lt;br /&gt;
|  hp &amp;amp;#124; health | mp | mana | both &lt;br /&gt;
|  attempt to regain some HP or MP.&lt;br /&gt;
|-&lt;br /&gt;
|  checkpoint&lt;br /&gt;
|  &lt;br /&gt;
|  remembers current equipment, use &amp;quot;outfit checkpoint&amp;quot; to restore.&lt;br /&gt;
|-&lt;br /&gt;
|  chew[?]&lt;br /&gt;
|  [either] item [, item]... &lt;br /&gt;
|  use/consume items&lt;br /&gt;
|-&lt;br /&gt;
|  clan&lt;br /&gt;
|  [ snapshot &amp;amp;#124; stashlog ] &lt;br /&gt;
|  clan management.&lt;br /&gt;
|-&lt;br /&gt;
|  cleanup&lt;br /&gt;
|  &lt;br /&gt;
|  use, pulverize, or autosell your junk items.&lt;br /&gt;
|-&lt;br /&gt;
|  clear&lt;br /&gt;
|  &lt;br /&gt;
|  clear CLI window.&lt;br /&gt;
|-&lt;br /&gt;
|  closet&lt;br /&gt;
|  list filter &amp;amp;#124; put item... | take item... &lt;br /&gt;
|  list or manipulate your closet.&lt;br /&gt;
|-&lt;br /&gt;
|  cls&lt;br /&gt;
|  &lt;br /&gt;
|  clear CLI window.&lt;br /&gt;
|-&lt;br /&gt;
|  colorecho&lt;br /&gt;
|  color text &lt;br /&gt;
|  show text using color (specified by name or #RRGGBB).&lt;br /&gt;
|-&lt;br /&gt;
|  condition*&lt;br /&gt;
|  clear &amp;amp;#124; check | add condition | set condition &lt;br /&gt;
|  modify your adventuring goals.&lt;br /&gt;
|-&lt;br /&gt;
|  condref&lt;br /&gt;
|  &lt;br /&gt;
|  list conditions usable with if/while commands.&lt;br /&gt;
|-&lt;br /&gt;
|  council&lt;br /&gt;
|  &lt;br /&gt;
|  visit the Council to advance quest progress.&lt;br /&gt;
|-&lt;br /&gt;
|  counters&lt;br /&gt;
|  [ clear &amp;amp;#124; add number [title img] ] &lt;br /&gt;
|  show, clear, or add to current turn counters.&lt;br /&gt;
|-&lt;br /&gt;
|  create&lt;br /&gt;
|  [ item... ] &lt;br /&gt;
|  list creatables, or create specified items.&lt;br /&gt;
|-&lt;br /&gt;
|  csend&lt;br /&gt;
|  item [, item]... to recipient [ &amp;amp;#124;| message ] &lt;br /&gt;
|  send kmail&lt;br /&gt;
|-&lt;br /&gt;
|  debug&lt;br /&gt;
|  [on] &amp;amp;#124; off &lt;br /&gt;
|  start or stop logging of debugging data.&lt;br /&gt;
|-&lt;br /&gt;
|  demons&lt;br /&gt;
|  &lt;br /&gt;
|  list the demon names you know.&lt;br /&gt;
|-&lt;br /&gt;
|  disable&lt;br /&gt;
|  all &amp;amp;#124; command [, command]... &lt;br /&gt;
|  allow/deny CLI commands.&lt;br /&gt;
|-&lt;br /&gt;
|  display&lt;br /&gt;
|  [filter] &amp;amp;#124; put item... | take item... &lt;br /&gt;
|  list or manipulate your display case.&lt;br /&gt;
|-&lt;br /&gt;
|  donate&lt;br /&gt;
|  boris &amp;amp;#124; mus | jarl | mys | pete | mox amount &lt;br /&gt;
|  donate in Hall of Legends.&lt;br /&gt;
|-&lt;br /&gt;
|  drink[?]&lt;br /&gt;
|  [either] item [, item]... &lt;br /&gt;
|  use/consume items&lt;br /&gt;
|-&lt;br /&gt;
|  dusty&lt;br /&gt;
|  &lt;br /&gt;
|  list the dusty bottles of wine you&#039;ve identified.&lt;br /&gt;
|-&lt;br /&gt;
|  eat[?]&lt;br /&gt;
|  [either] item [, item]... &lt;br /&gt;
|  use/consume items&lt;br /&gt;
|-&lt;br /&gt;
|  echo&lt;br /&gt;
|  timestamp &amp;amp;#124; text &lt;br /&gt;
|  include timestamp or text in the session log.&lt;br /&gt;
|-&lt;br /&gt;
|  effects&lt;br /&gt;
|  [param] &lt;br /&gt;
|  list indicated type of data, possibly filtered by param.&lt;br /&gt;
|-&lt;br /&gt;
|  else&lt;br /&gt;
|  ; commands &lt;br /&gt;
|  do commands if preceding if/while/try didn&#039;t execute.&lt;br /&gt;
|-&lt;br /&gt;
|  elseif&lt;br /&gt;
|  condition; commands &lt;br /&gt;
|  do if condition is true but preceding condition was false.&lt;br /&gt;
|-&lt;br /&gt;
|  enable&lt;br /&gt;
|  all &amp;amp;#124; command [, command]... &lt;br /&gt;
|  allow/deny CLI commands.&lt;br /&gt;
|-&lt;br /&gt;
|  encounters&lt;br /&gt;
|  [param] &lt;br /&gt;
|  list indicated type of data, possibly filtered by param.&lt;br /&gt;
|-&lt;br /&gt;
|  entity&lt;br /&gt;
|  &lt;br /&gt;
|  give details of your current pastamancer combat entity.&lt;br /&gt;
|-&lt;br /&gt;
|  entryway&lt;br /&gt;
|  [clover] &lt;br /&gt;
|  automatically complete quest [using a clover].&lt;br /&gt;
|-&lt;br /&gt;
|  equip&lt;br /&gt;
|  [list filter] &amp;amp;#124; [slot] item &lt;br /&gt;
|  show equipment, or equip item [in slot].&lt;br /&gt;
|-&lt;br /&gt;
|  events&lt;br /&gt;
|  [clear] &lt;br /&gt;
|  clear or show recent events.&lt;br /&gt;
|-&lt;br /&gt;
|  exec*&lt;br /&gt;
|  [numberx] filename &amp;amp;#124; function [parameters] &lt;br /&gt;
|  check/run script.&lt;br /&gt;
|-&lt;br /&gt;
|  exit&lt;br /&gt;
|  &lt;br /&gt;
|  logout and exit KoLmafia.&lt;br /&gt;
|-&lt;br /&gt;
|  [,[-]item]...&lt;br /&gt;
|  [; cmds] &lt;br /&gt;
|  compare prices, do cmds with &amp;quot;it&amp;quot; replaced with best.&lt;br /&gt;
|-&lt;br /&gt;
|  factory&lt;br /&gt;
|  report digits &lt;br /&gt;
|  Given a string of 7 dwarven digits, report on factory.&lt;br /&gt;
|-&lt;br /&gt;
|  familiar[?]&lt;br /&gt;
|  [list filter] &amp;amp;#124; lock | unlock | species | none &lt;br /&gt;
|  list or change familiar types&lt;br /&gt;
|-&lt;br /&gt;
|  field&lt;br /&gt;
|  [ plant square type &amp;amp;#124; pick square | harvest ] &lt;br /&gt;
|  view or use your mushroom plot&lt;br /&gt;
|-&lt;br /&gt;
|  find&lt;br /&gt;
|  item &lt;br /&gt;
|  ensure that you have item, creating or buying it if needed.&lt;br /&gt;
|-&lt;br /&gt;
|  flowers&lt;br /&gt;
|  &lt;br /&gt;
|  commit random acts of PvP.&lt;br /&gt;
|-&lt;br /&gt;
|  fold[?]&lt;br /&gt;
|  item &lt;br /&gt;
|  produce item by using another form, repeated as needed.&lt;br /&gt;
|-&lt;br /&gt;
|  forum*&lt;br /&gt;
|  &lt;br /&gt;
|  visit the official KoL forums.&lt;br /&gt;
|-&lt;br /&gt;
|  friars&lt;br /&gt;
|  [blessing] food &amp;amp;#124; familiar | booze &lt;br /&gt;
|  get daily blessing.&lt;br /&gt;
|-&lt;br /&gt;
|  galaktik(hp&amp;amp;#124;mp)&lt;br /&gt;
|  [amount] &lt;br /&gt;
|  restore some or all hp or mp&lt;br /&gt;
|-&lt;br /&gt;
|  gc&lt;br /&gt;
|  &lt;br /&gt;
|  force Java garbage collection.&lt;br /&gt;
|-&lt;br /&gt;
|  gear&lt;br /&gt;
|  &lt;br /&gt;
|  switch to tab or open window&lt;br /&gt;
|-&lt;br /&gt;
|  get&lt;br /&gt;
|  preference [ = value ] &lt;br /&gt;
|  show/change preference settings&lt;br /&gt;
|-&lt;br /&gt;
|  ghost[?]&lt;br /&gt;
|  [either] item [, item]... &lt;br /&gt;
|  use/consume items&lt;br /&gt;
|-&lt;br /&gt;
|  goal*&lt;br /&gt;
|  clear &amp;amp;#124; check | add condition | set condition &lt;br /&gt;
|  modify your adventuring goals.&lt;br /&gt;
|-&lt;br /&gt;
|  gourd&lt;br /&gt;
|  &lt;br /&gt;
|  automatically complete quest.&lt;br /&gt;
|-&lt;br /&gt;
|  grandpa&lt;br /&gt;
|  query &lt;br /&gt;
|  Ask Grandpa about something.&lt;br /&gt;
|-&lt;br /&gt;
|  guardians&lt;br /&gt;
|  &lt;br /&gt;
|  automatically complete quest.&lt;br /&gt;
|-&lt;br /&gt;
|  guild&lt;br /&gt;
|  &lt;br /&gt;
|  automatically complete quest.&lt;br /&gt;
|-&lt;br /&gt;
|  hagnk&lt;br /&gt;
|  outfit name &amp;amp;#124; item [, item]... &lt;br /&gt;
|  pull items from Hagnk&#039;s storage.&lt;br /&gt;
|-&lt;br /&gt;
|  hedge*&lt;br /&gt;
|  &lt;br /&gt;
|  automatically complete quest.&lt;br /&gt;
|-&lt;br /&gt;
|  help&lt;br /&gt;
|  [filter] &lt;br /&gt;
|  list CLI commands [that match filter].&lt;br /&gt;
|-&lt;br /&gt;
|  hermit[?]&lt;br /&gt;
|  [item] &lt;br /&gt;
|  get clover status, or trade for item.&lt;br /&gt;
|-&lt;br /&gt;
|  hiddencity&lt;br /&gt;
|  square [temple&amp;amp;#124;altar item] &lt;br /&gt;
|  set Hidden City square [and perform an action there].&lt;br /&gt;
|-&lt;br /&gt;
|  hobo[?]&lt;br /&gt;
|  [either] item [, item]... &lt;br /&gt;
|  use/consume items&lt;br /&gt;
|-&lt;br /&gt;
|  holiday&lt;br /&gt;
|  HolidayName &lt;br /&gt;
|  enable special processing for unpredicted holidays.&lt;br /&gt;
|-&lt;br /&gt;
|  hottub&lt;br /&gt;
|  &lt;br /&gt;
|  soak in your clan&#039;s hot tub&lt;br /&gt;
|-&lt;br /&gt;
|  http:*&lt;br /&gt;
|  &lt;br /&gt;
|  visit URL without showing results.&lt;br /&gt;
|-&lt;br /&gt;
|  if&lt;br /&gt;
|  condition; commands &lt;br /&gt;
|  do commands once if condition is true (see condref).&lt;br /&gt;
|-&lt;br /&gt;
|  insults&lt;br /&gt;
|  &lt;br /&gt;
|  list the pirate insult comebacks you know.&lt;br /&gt;
|-&lt;br /&gt;
|  inv*&lt;br /&gt;
|  [param] &lt;br /&gt;
|  list indicated type of data, possibly filtered by param.&lt;br /&gt;
|-&lt;br /&gt;
|  item&lt;br /&gt;
|  &lt;br /&gt;
|  switch to tab or open window&lt;br /&gt;
|-&lt;br /&gt;
|  junk&lt;br /&gt;
|  &lt;br /&gt;
|  use, pulverize, or autosell your junk items.&lt;br /&gt;
|-&lt;br /&gt;
|  kmail&lt;br /&gt;
|  item [, item]... to recipient [ &amp;amp;#124;| message ] &lt;br /&gt;
|  send kmail&lt;br /&gt;
|-&lt;br /&gt;
|  later&lt;br /&gt;
|  commands &lt;br /&gt;
|  adds a button to do commands to the Daily Deeds list.&lt;br /&gt;
|-&lt;br /&gt;
|  leaflet&lt;br /&gt;
|  [nomagic] &amp;amp;#124; location | command &lt;br /&gt;
|  complete leaflet quest [without using magic words].&lt;br /&gt;
|-&lt;br /&gt;
|  load&lt;br /&gt;
|  [numberx] filename &amp;amp;#124; function [parameters] &lt;br /&gt;
|  check/run script.&lt;br /&gt;
|-&lt;br /&gt;
|  locations&lt;br /&gt;
|  [param] &lt;br /&gt;
|  list indicated type of data, possibly filtered by param.&lt;br /&gt;
|-&lt;br /&gt;
|  log&lt;br /&gt;
|  [status],[equipment],[effects],[etc.] &lt;br /&gt;
|  record data, &amp;quot;log snapshot&amp;quot; for all common data.&lt;br /&gt;
|-&lt;br /&gt;
|  logecho&lt;br /&gt;
|  timestamp &amp;amp;#124; text &lt;br /&gt;
|  include timestamp or text in the session log only.&lt;br /&gt;
|-&lt;br /&gt;
|  login&lt;br /&gt;
|  username &lt;br /&gt;
|  logout then log back in as username.&lt;br /&gt;
|-&lt;br /&gt;
|  logout&lt;br /&gt;
|  &lt;br /&gt;
|  logout and return to login window.&lt;br /&gt;
|-&lt;br /&gt;
|  logprint&lt;br /&gt;
|  timestamp &amp;amp;#124; text &lt;br /&gt;
|  include timestamp or text in the session log only.&lt;br /&gt;
|-&lt;br /&gt;
|  lookup&lt;br /&gt;
|  item &amp;amp;#124; effect &lt;br /&gt;
|  go to appropriate KoL Wiki page.&lt;br /&gt;
|-&lt;br /&gt;
|  mail&lt;br /&gt;
|  &lt;br /&gt;
|  switch to tab or open window&lt;br /&gt;
|-&lt;br /&gt;
|  make&lt;br /&gt;
|  [ item... ] &lt;br /&gt;
|  list creatables, or create specified items.&lt;br /&gt;
|-&lt;br /&gt;
|  mallbuy&lt;br /&gt;
|  item [@ limit] [, another]... &lt;br /&gt;
|  buy from NPC store or the Mall.&lt;br /&gt;
|-&lt;br /&gt;
|  mallsell&lt;br /&gt;
|  item [[@] price [[limit] num]] [, another]... &lt;br /&gt;
|  sell in Mall.&lt;br /&gt;
|-&lt;br /&gt;
|  [+&amp;amp;#124;-|weight]&lt;br /&gt;
|  keyword, ... &lt;br /&gt;
|  run the Modifier Maximizer.&lt;br /&gt;
|-&lt;br /&gt;
|  maze&lt;br /&gt;
|  &lt;br /&gt;
|  automatically complete quest.&lt;br /&gt;
|-&lt;br /&gt;
|  mcd&lt;br /&gt;
|  number &lt;br /&gt;
|  set mind control device (or equivalent) to new value.&lt;br /&gt;
|-&lt;br /&gt;
|  mind-control&lt;br /&gt;
|  number &lt;br /&gt;
|  set mind control device (or equivalent) to new value.&lt;br /&gt;
|-&lt;br /&gt;
|  mix&lt;br /&gt;
|  [ item... ] &lt;br /&gt;
|  list creatables, or create specified items.&lt;br /&gt;
|-&lt;br /&gt;
|  modifies&lt;br /&gt;
|  filter &lt;br /&gt;
|  list all possible sources of modifiers matching filter.&lt;br /&gt;
|-&lt;br /&gt;
|  modref&lt;br /&gt;
|  [object] &lt;br /&gt;
|  list all modifiers, show values for player [and object].&lt;br /&gt;
|-&lt;br /&gt;
|  modtrace&lt;br /&gt;
|  filter &lt;br /&gt;
|  list everything that adds to modifiers matching filter.&lt;br /&gt;
|-&lt;br /&gt;
|  moleref&lt;br /&gt;
|  &lt;br /&gt;
|  Path of the Mole spoilers.&lt;br /&gt;
|-&lt;br /&gt;
|  monsters&lt;br /&gt;
|  location &lt;br /&gt;
|  show combat details for the specified area.&lt;br /&gt;
|-&lt;br /&gt;
|  mood*&lt;br /&gt;
|  clear &amp;amp;#124; autofill | execute | repeat [numTimes] | moodName [numTimes] &lt;br /&gt;
|  mood management.&lt;br /&gt;
|-&lt;br /&gt;
|  moon*&lt;br /&gt;
|  [param] &lt;br /&gt;
|  list indicated type of data, possibly filtered by param.&lt;br /&gt;
|-&lt;br /&gt;
|  mpitems&lt;br /&gt;
|  &lt;br /&gt;
|  counts MP restoratives in inventory.&lt;br /&gt;
|-&lt;br /&gt;
|  namespace&lt;br /&gt;
|  [filter] &lt;br /&gt;
|  list namespace scripts and the functions they define.&lt;br /&gt;
|-&lt;br /&gt;
|  nemesis&lt;br /&gt;
|  &lt;br /&gt;
|  automatically complete quest.&lt;br /&gt;
|-&lt;br /&gt;
|  nuns&lt;br /&gt;
|  [mp] &lt;br /&gt;
|  visit the Nunnery for restoration [but only if MP is restored].&lt;br /&gt;
|-&lt;br /&gt;
|  objective*&lt;br /&gt;
|  clear &amp;amp;#124; check | add condition | set condition &lt;br /&gt;
|  modify your adventuring goals.&lt;br /&gt;
|-&lt;br /&gt;
|  olfact*&lt;br /&gt;
|  ( none &amp;amp;#124; monster name | [item] list | goals ) [abort] &lt;br /&gt;
|  tag next monster [that drops all items in list, or your goals].&lt;br /&gt;
|-&lt;br /&gt;
|  opt*&lt;br /&gt;
|  &lt;br /&gt;
|  switch to tab or open window&lt;br /&gt;
|-&lt;br /&gt;
|  outfit&lt;br /&gt;
|  [list filter] &amp;amp;#124; save name | checkpoint | name &lt;br /&gt;
|  list, save, restore, or change outfits.&lt;br /&gt;
|-&lt;br /&gt;
|  overdrink[?]&lt;br /&gt;
|  [either] item [, item]... &lt;br /&gt;
|  use/consume items&lt;br /&gt;
|-&lt;br /&gt;
|  pause&lt;br /&gt;
|  [seconds] &lt;br /&gt;
|  pause script execution (default 1 second).&lt;br /&gt;
|-&lt;br /&gt;
|  ply&lt;br /&gt;
|  [ item... ] &lt;br /&gt;
|  list creatables, or create specified items.&lt;br /&gt;
|-&lt;br /&gt;
|  print&lt;br /&gt;
|  timestamp &amp;amp;#124; text &lt;br /&gt;
|  include timestamp or text in the session log.&lt;br /&gt;
|-&lt;br /&gt;
|  priphea&lt;br /&gt;
|  &lt;br /&gt;
|  launch KoLmafia GUI.&lt;br /&gt;
|-&lt;br /&gt;
|  pull&lt;br /&gt;
|  outfit name &amp;amp;#124; item [, item]... &lt;br /&gt;
|  pull items from Hagnk&#039;s storage.&lt;br /&gt;
|-&lt;br /&gt;
|  pulverize&lt;br /&gt;
|  item [, item]... &lt;br /&gt;
|  pulverize specified items&lt;br /&gt;
|-&lt;br /&gt;
|  putty&lt;br /&gt;
|  ( none &amp;amp;#124; monster name | [item] list | goals ) [abort] &lt;br /&gt;
|  tag next monster [that drops all items in list, or your goals].&lt;br /&gt;
|-&lt;br /&gt;
|  pvp&lt;br /&gt;
|  [ target [, target]... ] &lt;br /&gt;
|  PvP for dignity or flowers&lt;br /&gt;
|-&lt;br /&gt;
|  pvplog*&lt;br /&gt;
|  &lt;br /&gt;
|  summarize PvP results.&lt;br /&gt;
|-&lt;br /&gt;
|  quark[?]&lt;br /&gt;
|  [itemList...] &lt;br /&gt;
|  gain MP by pasting unstable quark with best item from itemList (or your junk list).&lt;br /&gt;
|-&lt;br /&gt;
|  quit&lt;br /&gt;
|  &lt;br /&gt;
|  logout and exit KoLmafia.&lt;br /&gt;
|-&lt;br /&gt;
|  radio&lt;br /&gt;
|  &lt;br /&gt;
|  switch to tab or open window&lt;br /&gt;
|-&lt;br /&gt;
|  raffle&lt;br /&gt;
|  ticketsToBuy [ inventory &amp;amp;#124; storage ] &lt;br /&gt;
|  buy raffle tickets&lt;br /&gt;
|-&lt;br /&gt;
|  recover*&lt;br /&gt;
|  hp &amp;amp;#124; health | mp | mana | both &lt;br /&gt;
|  attempt to regain some HP or MP.&lt;br /&gt;
|-&lt;br /&gt;
|  refresh&lt;br /&gt;
|  all &amp;amp;#124; status | equip | inv | storage | familiar | stickers &lt;br /&gt;
|  resynchronize with KoL.&lt;br /&gt;
|-&lt;br /&gt;
|  relay&lt;br /&gt;
|  &lt;br /&gt;
|  open the relay browser.&lt;br /&gt;
|-&lt;br /&gt;
|  remedy[?]&lt;br /&gt;
|  effect [, effect]... &lt;br /&gt;
|  remove effects using appropriate means.&lt;br /&gt;
|-&lt;br /&gt;
|  remove&lt;br /&gt;
|  slot &amp;amp;#124; name &lt;br /&gt;
|  remove equipment in slot, or that matches name&lt;br /&gt;
|-&lt;br /&gt;
|  repeat&lt;br /&gt;
|  [number] &lt;br /&gt;
|  repeat previous line [number times].&lt;br /&gt;
|-&lt;br /&gt;
|  reprice&lt;br /&gt;
|  &lt;br /&gt;
|  price all max-priced items at or below current Mall minimum price.&lt;br /&gt;
|-&lt;br /&gt;
|  restaurant[?]&lt;br /&gt;
|  [ daily special &amp;amp;#124; item ] &lt;br /&gt;
|  show daily special [or consume it or other restaurant item].&lt;br /&gt;
|-&lt;br /&gt;
|  restore*&lt;br /&gt;
|  hp &amp;amp;#124; health | mp | mana | both &lt;br /&gt;
|  attempt to regain some HP or MP.&lt;br /&gt;
|-&lt;br /&gt;
|  retrieve&lt;br /&gt;
|  item &lt;br /&gt;
|  ensure that you have item, creating or buying it if needed.&lt;br /&gt;
|-&lt;br /&gt;
|  run&lt;br /&gt;
|  [numberx] filename &amp;amp;#124; function [parameters] &lt;br /&gt;
|  check/run script.&lt;br /&gt;
|-&lt;br /&gt;
|  safe&lt;br /&gt;
|  location &lt;br /&gt;
|  show summary data for the specified area.&lt;br /&gt;
|-&lt;br /&gt;
|  save&lt;br /&gt;
|  as mood &lt;br /&gt;
|  add your current effects to the mood.&lt;br /&gt;
|-&lt;br /&gt;
|  searchmall&lt;br /&gt;
|  item [ with limit number ] &lt;br /&gt;
|  search the Mall.&lt;br /&gt;
|-&lt;br /&gt;
|  sell&lt;br /&gt;
|  item [, item]... &lt;br /&gt;
|  autosell items.&lt;br /&gt;
|-&lt;br /&gt;
|  send&lt;br /&gt;
|  item [, item]... to recipient [ &amp;amp;#124;| message ] &lt;br /&gt;
|  send kmail&lt;br /&gt;
|-&lt;br /&gt;
|  session&lt;br /&gt;
|  [param] &lt;br /&gt;
|  list indicated type of data, possibly filtered by param.&lt;br /&gt;
|-&lt;br /&gt;
|  set&lt;br /&gt;
|  preference [ = value ] &lt;br /&gt;
|  show/change preference settings&lt;br /&gt;
|-&lt;br /&gt;
|  shrug[?]&lt;br /&gt;
|  effect [, effect]... &lt;br /&gt;
|  remove effects using appropriate means.&lt;br /&gt;
|-&lt;br /&gt;
|  skill[?]&lt;br /&gt;
|  [ [count] skill [on player] ] &lt;br /&gt;
|  list spells, or use one.&lt;br /&gt;
|-&lt;br /&gt;
|  skills&lt;br /&gt;
|  [param] &lt;br /&gt;
|  list indicated type of data, possibly filtered by param.&lt;br /&gt;
|-&lt;br /&gt;
|  sleep&lt;br /&gt;
|  number &lt;br /&gt;
|  rest on your clan sofa for number turns.&lt;br /&gt;
|-&lt;br /&gt;
|  slimeling[?]&lt;br /&gt;
|  [either] item [, item]... &lt;br /&gt;
|  use/consume items&lt;br /&gt;
|-&lt;br /&gt;
|  smash&lt;br /&gt;
|  item [, item]... &lt;br /&gt;
|  pulverize specified items&lt;br /&gt;
|-&lt;br /&gt;
|  smith&lt;br /&gt;
|  [ item... ] &lt;br /&gt;
|  list creatables, or create specified items.&lt;br /&gt;
|-&lt;br /&gt;
|  soak&lt;br /&gt;
|  &lt;br /&gt;
|  soak in your clan&#039;s hot tub&lt;br /&gt;
|-&lt;br /&gt;
|  sofa&lt;br /&gt;
|  number &lt;br /&gt;
|  rest on your clan sofa for number turns.&lt;br /&gt;
|-&lt;br /&gt;
|  spade&lt;br /&gt;
|  [prices URL] &lt;br /&gt;
|  submit automatically gathered data.&lt;br /&gt;
|-&lt;br /&gt;
|  speculate&lt;br /&gt;
|  MCD num &amp;amp;#124; equip [slot] item | unequip slot | familiar type | up eff | uneffect eff | quiet ; [another;...] &lt;br /&gt;
|  predict modifiers.&lt;br /&gt;
|-&lt;br /&gt;
|  squeeze[?]&lt;br /&gt;
|  item &lt;br /&gt;
|  produce item by using another form, repeated as needed.&lt;br /&gt;
|-&lt;br /&gt;
|  start&lt;br /&gt;
|  [numberx] filename &amp;amp;#124; function [parameters] &lt;br /&gt;
|  check/run script.&lt;br /&gt;
|-&lt;br /&gt;
|  stash&lt;br /&gt;
|  [put] item... &amp;amp;#124; take item... &lt;br /&gt;
|  exchange items with clan stash&lt;br /&gt;
|-&lt;br /&gt;
|  status&lt;br /&gt;
|  [param] &lt;br /&gt;
|  list indicated type of data, possibly filtered by param.&lt;br /&gt;
|-&lt;br /&gt;
|  sticker*&lt;br /&gt;
|  sticker1 [, sticker2 [, sticker3]] &lt;br /&gt;
|  replace worn stickers.&lt;br /&gt;
|-&lt;br /&gt;
|  storage&lt;br /&gt;
|  [param] &lt;br /&gt;
|  list indicated type of data, possibly filtered by param.&lt;br /&gt;
|-&lt;br /&gt;
|  styx&lt;br /&gt;
|  muscle &amp;amp;#124; mysticality | moxie &lt;br /&gt;
|  get daily Styx Pixie buff.&lt;br /&gt;
|-&lt;br /&gt;
|  summary&lt;br /&gt;
|  [param] &lt;br /&gt;
|  list indicated type of data, possibly filtered by param.&lt;br /&gt;
|-&lt;br /&gt;
|  summon&lt;br /&gt;
|  demonName &amp;amp;#124; effect | location | number &lt;br /&gt;
|  use the Summoning Chamber.&lt;br /&gt;
|-&lt;br /&gt;
|  tavern&lt;br /&gt;
|  &lt;br /&gt;
|  automatically complete quest.&lt;br /&gt;
|-&lt;br /&gt;
|  telescope&lt;br /&gt;
|  [look] high &amp;amp;#124; low &lt;br /&gt;
|  get daily buff, or Lair hints from your telescope.&lt;br /&gt;
|-&lt;br /&gt;
|  text&lt;br /&gt;
|  URL &lt;br /&gt;
|  show text results from visiting URL.&lt;br /&gt;
|-&lt;br /&gt;
|  tinker&lt;br /&gt;
|  [ item... ] &lt;br /&gt;
|  list creatables, or create specified items.&lt;br /&gt;
|-&lt;br /&gt;
|  tower&lt;br /&gt;
|  &lt;br /&gt;
|  automatically complete quest.&lt;br /&gt;
|-&lt;br /&gt;
|  train&lt;br /&gt;
|  base weight &amp;amp;#124; buffed weight | turns number &lt;br /&gt;
|  train familiar.&lt;br /&gt;
|-&lt;br /&gt;
|  trigger*&lt;br /&gt;
|  clear &amp;amp;#124; autofill | [type,] effect [, action] &lt;br /&gt;
|  edit current mood&lt;br /&gt;
|-&lt;br /&gt;
|  try&lt;br /&gt;
|  ; commands &lt;br /&gt;
|  do commands, and continue even if an error occurs.&lt;br /&gt;
|-&lt;br /&gt;
|  unalias&lt;br /&gt;
|  word &lt;br /&gt;
|  remove a CLI abbreviation.&lt;br /&gt;
|-&lt;br /&gt;
|  undercut&lt;br /&gt;
|  &lt;br /&gt;
|  price all max-priced items at or below current Mall minimum price.&lt;br /&gt;
|-&lt;br /&gt;
|  uneffect[?]&lt;br /&gt;
|  effect [, effect]... &lt;br /&gt;
|  remove effects using appropriate means.&lt;br /&gt;
|-&lt;br /&gt;
|  unequip&lt;br /&gt;
|  slot &amp;amp;#124; name &lt;br /&gt;
|  remove equipment in slot, or that matches name&lt;br /&gt;
|-&lt;br /&gt;
|  untinker&lt;br /&gt;
|  [ item... ] &lt;br /&gt;
|  complete quest, or untinker items.&lt;br /&gt;
|-&lt;br /&gt;
|  up?&lt;br /&gt;
|  effect [, effect]... &lt;br /&gt;
|  extend duration of effects.&lt;br /&gt;
|-&lt;br /&gt;
|  update&lt;br /&gt;
|  data &amp;amp;#124; clear | prices URL or filename &lt;br /&gt;
|  download most recent data files, or revert to built-in data.&lt;br /&gt;
|-&lt;br /&gt;
|  use[?]&lt;br /&gt;
|  [either] item [, item]... &lt;br /&gt;
|  use/consume items&lt;br /&gt;
|-&lt;br /&gt;
|  using&lt;br /&gt;
|  filename &lt;br /&gt;
|  add ASH script to namespace.&lt;br /&gt;
|-&lt;br /&gt;
|  validate&lt;br /&gt;
|  [numberx] filename &amp;amp;#124; function [parameters] &lt;br /&gt;
|  check/run script.&lt;br /&gt;
|-&lt;br /&gt;
|  verify&lt;br /&gt;
|  [numberx] filename &amp;amp;#124; function [parameters] &lt;br /&gt;
|  check/run script.&lt;br /&gt;
|-&lt;br /&gt;
|  version&lt;br /&gt;
|  &lt;br /&gt;
|  display KoLmafia version.&lt;br /&gt;
|-&lt;br /&gt;
|  wait&lt;br /&gt;
|  [seconds] &lt;br /&gt;
|  pause script execution (default 1 second).&lt;br /&gt;
|-&lt;br /&gt;
|  wear&lt;br /&gt;
|  [list filter] &amp;amp;#124; [slot] item &lt;br /&gt;
|  show equipment, or equip item [in slot].&lt;br /&gt;
|-&lt;br /&gt;
|  whatif&lt;br /&gt;
|  MCD num &amp;amp;#124; equip [slot] item | unequip slot | familiar type | up eff | uneffect eff | quiet ; [another;...] &lt;br /&gt;
|  predict modifiers.&lt;br /&gt;
|-&lt;br /&gt;
|  while&lt;br /&gt;
|  condition; commands &lt;br /&gt;
|  do commands repeatedly while condition is true.&lt;br /&gt;
|-&lt;br /&gt;
|  wield&lt;br /&gt;
|  [list filter] &amp;amp;#124; [slot] item &lt;br /&gt;
|  show equipment, or equip item [in slot].&lt;br /&gt;
|-&lt;br /&gt;
|  wiki&lt;br /&gt;
|  searchText &lt;br /&gt;
|  perform search on KoL Wiki.&lt;br /&gt;
|-&lt;br /&gt;
|  win&lt;br /&gt;
|  game &lt;br /&gt;
|  I&#039;m as surprised as you! I didn&#039;t think it was possible.&lt;br /&gt;
|-&lt;br /&gt;
|  zap&lt;br /&gt;
|  item [, item]... &lt;br /&gt;
|  transform items with your wand.&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>HippoKing</name></author>
	</entry>
	<entry>
		<id>https://wiki.kolmafia.us/index.php?title=CLI_Reference&amp;diff=2915</id>
		<title>CLI Reference</title>
		<link rel="alternate" type="text/html" href="https://wiki.kolmafia.us/index.php?title=CLI_Reference&amp;diff=2915"/>
		<updated>2009-08-30T15:23:48Z</updated>

		<summary type="html">&lt;p&gt;HippoKing: fixed another issue&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The KoLmafia Graphical CLI is one of the most helpful features it has. This page is intended to provide information on the commands available.&lt;br /&gt;
&lt;br /&gt;
==Inventory Management==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!  Command&lt;br /&gt;
!  Arguments&lt;br /&gt;
!  Description&lt;br /&gt;
|-&lt;br /&gt;
|  acquire&lt;br /&gt;
|  item&lt;br /&gt;
|  Ensures you have argument item, making or buying when necessary.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Quests==&lt;br /&gt;
&lt;br /&gt;
==Market Management==&lt;br /&gt;
&lt;br /&gt;
==Mafia==&lt;br /&gt;
&lt;br /&gt;
==Other==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!  Command Name&lt;br /&gt;
!  Arguments&lt;br /&gt;
!  Description&lt;br /&gt;
|-&lt;br /&gt;
|  !&lt;br /&gt;
|   &lt;br /&gt;
|  list the Dungeons of Doom potions you&#039;ve identified.&lt;br /&gt;
|-&lt;br /&gt;
|  *.php*&lt;br /&gt;
|   &lt;br /&gt;
|  visit URL without showing results.&lt;br /&gt;
|-&lt;br /&gt;
|  *brewery*[?]&lt;br /&gt;
|   [ daily special | item ] &lt;br /&gt;
|  show daily special [or consume it or other restaurant item].&lt;br /&gt;
|-&lt;br /&gt;
|  *kitchen*[?]&lt;br /&gt;
|   item &lt;br /&gt;
|  consumes item at Hell&#039;s Kitchen, if available.&lt;br /&gt;
|-&lt;br /&gt;
|  *mirror*&lt;br /&gt;
|   [filename] &lt;br /&gt;
|  stop [or start] logging to an additional file.&lt;br /&gt;
|-&lt;br /&gt;
|  &amp;lt;inline-ash-script&amp;gt;&lt;br /&gt;
|   &lt;br /&gt;
|  embed an ASH script in a CLI script.&lt;br /&gt;
|-&lt;br /&gt;
|  aa&lt;br /&gt;
|   skill &lt;br /&gt;
|  set default attack method.&lt;br /&gt;
|-&lt;br /&gt;
|  abort&lt;br /&gt;
|   [message] &lt;br /&gt;
|  stop current script or automated task.&lt;br /&gt;
|-&lt;br /&gt;
|  acquire&lt;br /&gt;
|   item &lt;br /&gt;
|  ensure that you have item, creating or buying it if needed.&lt;br /&gt;
|-&lt;br /&gt;
|  adv*[?]&lt;br /&gt;
|   last | [count] location &lt;br /&gt;
|  spend your turns.&lt;br /&gt;
|-&lt;br /&gt;
|  alias&lt;br /&gt;
|   [ word =&amp;gt; expansion ] &lt;br /&gt;
|  list or create CLI abbreviations.&lt;br /&gt;
|-&lt;br /&gt;
|  ash&lt;br /&gt;
|   statement &lt;br /&gt;
|  test a line of ASH code without having to edit a script.&lt;br /&gt;
|-&lt;br /&gt;
|  ashref&lt;br /&gt;
|   [filter] &lt;br /&gt;
|  summarize ASH built-in functions [matching filter].&lt;br /&gt;
|-&lt;br /&gt;
|  attack&lt;br /&gt;
|   [ target [, target]... ] &lt;br /&gt;
|  PvP for dignity or flowers&lt;br /&gt;
|-&lt;br /&gt;
|  autoattack&lt;br /&gt;
|   skill &lt;br /&gt;
|  set default attack method.&lt;br /&gt;
|-&lt;br /&gt;
|  automall&lt;br /&gt;
|   &lt;br /&gt;
|  dump all profitable, non-memento items into the Mall.&lt;br /&gt;
|-&lt;br /&gt;
|  autosell&lt;br /&gt;
|   item [, item]... &lt;br /&gt;
|  autosell items.&lt;br /&gt;
|-&lt;br /&gt;
|  backtrace&lt;br /&gt;
|   text | off &lt;br /&gt;
|  dump stack when a gCLI message or page URL matches text (case-sensitive).&lt;br /&gt;
|-&lt;br /&gt;
|  bake&lt;br /&gt;
|   [ item... ] &lt;br /&gt;
|  list creatables, or create specified items.&lt;br /&gt;
|-&lt;br /&gt;
|  bang&lt;br /&gt;
|   &lt;br /&gt;
|  list the Dungeons of Doom potions you&#039;ve identified.&lt;br /&gt;
|-&lt;br /&gt;
|  basement&lt;br /&gt;
|   &lt;br /&gt;
|  check Fernswarthy&#039;s Basement status.&lt;br /&gt;
|-&lt;br /&gt;
|  breakfast&lt;br /&gt;
|   &lt;br /&gt;
|  perform start-of-day activities.&lt;br /&gt;
|-&lt;br /&gt;
|  budget&lt;br /&gt;
|   [number] &lt;br /&gt;
|  show [or set] the number of budgeted Hagnk&#039;s pulls.&lt;br /&gt;
|-&lt;br /&gt;
|  buffbot&lt;br /&gt;
|   number &lt;br /&gt;
|  run buffbot for number iterations.&lt;br /&gt;
|-&lt;br /&gt;
|  -num&lt;br /&gt;
|   &lt;br /&gt;
|  use excess/all/specified/all but specified MP for buff extension and summons.&lt;br /&gt;
|-&lt;br /&gt;
|  buy&lt;br /&gt;
|   item [@ limit] [, another]... &lt;br /&gt;
|  buy from NPC store or the Mall.&lt;br /&gt;
|-&lt;br /&gt;
|  call&lt;br /&gt;
|   [numberx] filename | function [parameters] &lt;br /&gt;
|  check/run script.&lt;br /&gt;
|-&lt;br /&gt;
|  camp*&lt;br /&gt;
|   rest | etc. [numTimes] &lt;br /&gt;
|  perform campground actions.&lt;br /&gt;
|-&lt;br /&gt;
|  cast[?]&lt;br /&gt;
|   [ [count] skill [on player] ] &lt;br /&gt;
|  list spells, or use one.&lt;br /&gt;
|-&lt;br /&gt;
|  ccs&lt;br /&gt;
|   [script] &lt;br /&gt;
|  show [or select] Custom Combat Script in use.&lt;br /&gt;
|-&lt;br /&gt;
|  cecho&lt;br /&gt;
|   color text &lt;br /&gt;
|  show text using color (specified by name or #RRGGBB).&lt;br /&gt;
|-&lt;br /&gt;
|  chamber&lt;br /&gt;
|   &lt;br /&gt;
|  automatically complete quest.&lt;br /&gt;
|-&lt;br /&gt;
|  chat&lt;br /&gt;
|   &lt;br /&gt;
|  switch to tab or open window&lt;br /&gt;
|-&lt;br /&gt;
|  [,[-]item]...&lt;br /&gt;
|   [; cmds] &lt;br /&gt;
|  compare prices, do cmds with &amp;quot;it&amp;quot; replaced with best.&lt;br /&gt;
|-&lt;br /&gt;
|  check&lt;br /&gt;
|   hp | health | mp | mana | both &lt;br /&gt;
|  attempt to regain some HP or MP.&lt;br /&gt;
|-&lt;br /&gt;
|  checkpoint&lt;br /&gt;
|   &lt;br /&gt;
|  remembers current equipment, use &amp;quot;outfit checkpoint&amp;quot; to restore.&lt;br /&gt;
|-&lt;br /&gt;
|  chew[?]&lt;br /&gt;
|   [either] item [, item]... &lt;br /&gt;
|  use/consume items&lt;br /&gt;
|-&lt;br /&gt;
|  clan&lt;br /&gt;
|   [ snapshot | stashlog ] &lt;br /&gt;
|  clan management.&lt;br /&gt;
|-&lt;br /&gt;
|  cleanup&lt;br /&gt;
|   &lt;br /&gt;
|  use, pulverize, or autosell your junk items.&lt;br /&gt;
|-&lt;br /&gt;
|  clear&lt;br /&gt;
|   &lt;br /&gt;
|  clear CLI window.&lt;br /&gt;
|-&lt;br /&gt;
|  closet&lt;br /&gt;
|   list filter | put item... | take item... &lt;br /&gt;
|  list or manipulate your closet.&lt;br /&gt;
|-&lt;br /&gt;
|  cls&lt;br /&gt;
|   &lt;br /&gt;
|  clear CLI window.&lt;br /&gt;
|-&lt;br /&gt;
|  colorecho&lt;br /&gt;
|   color text &lt;br /&gt;
|  show text using color (specified by name or #RRGGBB).&lt;br /&gt;
|-&lt;br /&gt;
|  condition*&lt;br /&gt;
|   clear | check | add condition | set condition &lt;br /&gt;
|  modify your adventuring goals.&lt;br /&gt;
|-&lt;br /&gt;
|  condref&lt;br /&gt;
|   &lt;br /&gt;
|  list conditions usable with if/while commands.&lt;br /&gt;
|-&lt;br /&gt;
|  council&lt;br /&gt;
|   &lt;br /&gt;
|  visit the Council to advance quest progress.&lt;br /&gt;
|-&lt;br /&gt;
|  counters&lt;br /&gt;
|   [ clear | add number [title img] ] &lt;br /&gt;
|  show, clear, or add to current turn counters.&lt;br /&gt;
|-&lt;br /&gt;
|  create&lt;br /&gt;
|   [ item... ] &lt;br /&gt;
|  list creatables, or create specified items.&lt;br /&gt;
|-&lt;br /&gt;
|  csend&lt;br /&gt;
|   item [, item]... to recipient [ | message ] &lt;br /&gt;
|  send kmail&lt;br /&gt;
|-&lt;br /&gt;
|  debug&lt;br /&gt;
|   [on] | off &lt;br /&gt;
|  start or stop logging of debugging data.&lt;br /&gt;
|-&lt;br /&gt;
|  demons&lt;br /&gt;
|   &lt;br /&gt;
|  list the demon names you know.&lt;br /&gt;
|-&lt;br /&gt;
|  disable&lt;br /&gt;
|   all | command [, command]... &lt;br /&gt;
|  allow/deny CLI commands.&lt;br /&gt;
|-&lt;br /&gt;
|  display&lt;br /&gt;
|   [filter] | put item... | take item... &lt;br /&gt;
|  list or manipulate your display case.&lt;br /&gt;
|-&lt;br /&gt;
|  donate&lt;br /&gt;
|   boris | mus | jarl | mys | pete | mox amount &lt;br /&gt;
|  donate in Hall of Legends.&lt;br /&gt;
|-&lt;br /&gt;
|  drink[?]&lt;br /&gt;
|   [either] item [, item]... &lt;br /&gt;
|  use/consume items&lt;br /&gt;
|-&lt;br /&gt;
|  dusty&lt;br /&gt;
|   &lt;br /&gt;
|  list the dusty bottles of wine you&#039;ve identified.&lt;br /&gt;
|-&lt;br /&gt;
|  eat[?]&lt;br /&gt;
|   [either] item [, item]... &lt;br /&gt;
|  use/consume items&lt;br /&gt;
|-&lt;br /&gt;
|  echo&lt;br /&gt;
|   timestamp | text &lt;br /&gt;
|  include timestamp or text in the session log.&lt;br /&gt;
|-&lt;br /&gt;
|  effects&lt;br /&gt;
|   [param] &lt;br /&gt;
|  list indicated type of data, possibly filtered by param.&lt;br /&gt;
|-&lt;br /&gt;
|  else&lt;br /&gt;
|   ; commands &lt;br /&gt;
|  do commands if preceding if/while/try didn&#039;t execute.&lt;br /&gt;
|-&lt;br /&gt;
|  elseif&lt;br /&gt;
|   condition; commands &lt;br /&gt;
|  do if condition is true but preceding condition was false.&lt;br /&gt;
|-&lt;br /&gt;
|  enable&lt;br /&gt;
|   all | command [, command]... &lt;br /&gt;
|  allow/deny CLI commands.&lt;br /&gt;
|-&lt;br /&gt;
|  encounters&lt;br /&gt;
|   [param] &lt;br /&gt;
|  list indicated type of data, possibly filtered by param.&lt;br /&gt;
|-&lt;br /&gt;
|  entity&lt;br /&gt;
|   &lt;br /&gt;
|  give details of your current pastamancer combat entity.&lt;br /&gt;
|-&lt;br /&gt;
|  entryway&lt;br /&gt;
|   [clover] &lt;br /&gt;
|  automatically complete quest [using a clover].&lt;br /&gt;
|-&lt;br /&gt;
|  equip&lt;br /&gt;
|   [list filter] | [slot] item &lt;br /&gt;
|  show equipment, or equip item [in slot].&lt;br /&gt;
|-&lt;br /&gt;
|  events&lt;br /&gt;
|   [clear] &lt;br /&gt;
|  clear or show recent events.&lt;br /&gt;
|-&lt;br /&gt;
|  exec*&lt;br /&gt;
|   [numberx] filename | function [parameters] &lt;br /&gt;
|  check/run script.&lt;br /&gt;
|-&lt;br /&gt;
|  exit&lt;br /&gt;
|   &lt;br /&gt;
|  logout and exit KoLmafia.&lt;br /&gt;
|-&lt;br /&gt;
|  [,[-]item]...&lt;br /&gt;
|   [; cmds] &lt;br /&gt;
|  compare prices, do cmds with &amp;quot;it&amp;quot; replaced with best.&lt;br /&gt;
|-&lt;br /&gt;
|  factory&lt;br /&gt;
|   report digits &lt;br /&gt;
|  Given a string of 7 dwarven digits, report on factory.&lt;br /&gt;
|-&lt;br /&gt;
|  familiar[?]&lt;br /&gt;
|   [list filter] | lock | unlock | species | none &lt;br /&gt;
|  list or change familiar types&lt;br /&gt;
|-&lt;br /&gt;
|  field&lt;br /&gt;
|   [ plant square type | pick square | harvest ] &lt;br /&gt;
|  view or use your mushroom plot&lt;br /&gt;
|-&lt;br /&gt;
|  find&lt;br /&gt;
|   item &lt;br /&gt;
|  ensure that you have item, creating or buying it if needed.&lt;br /&gt;
|-&lt;br /&gt;
|  flowers&lt;br /&gt;
|   &lt;br /&gt;
|  commit random acts of PvP.&lt;br /&gt;
|-&lt;br /&gt;
|  fold[?]&lt;br /&gt;
|   item &lt;br /&gt;
|  produce item by using another form, repeated as needed.&lt;br /&gt;
|-&lt;br /&gt;
|  forum*&lt;br /&gt;
|   &lt;br /&gt;
|  visit the official KoL forums.&lt;br /&gt;
|-&lt;br /&gt;
|  friars&lt;br /&gt;
|   [blessing] food | familiar | booze &lt;br /&gt;
|  get daily blessing.&lt;br /&gt;
|-&lt;br /&gt;
|  galaktik(hp|mp)&lt;br /&gt;
|   [amount] &lt;br /&gt;
|  restore some or all hp or mp&lt;br /&gt;
|-&lt;br /&gt;
|  gc&lt;br /&gt;
|   &lt;br /&gt;
|  force Java garbage collection.&lt;br /&gt;
|-&lt;br /&gt;
|  gear&lt;br /&gt;
|   &lt;br /&gt;
|  switch to tab or open window&lt;br /&gt;
|-&lt;br /&gt;
|  get&lt;br /&gt;
|   preference [ = value ] &lt;br /&gt;
|  show/change preference settings&lt;br /&gt;
|-&lt;br /&gt;
|  ghost[?]&lt;br /&gt;
|   [either] item [, item]... &lt;br /&gt;
|  use/consume items&lt;br /&gt;
|-&lt;br /&gt;
|  goal*&lt;br /&gt;
|   clear | check | add condition | set condition &lt;br /&gt;
|  modify your adventuring goals.&lt;br /&gt;
|-&lt;br /&gt;
|  gourd&lt;br /&gt;
|   &lt;br /&gt;
|  automatically complete quest.&lt;br /&gt;
|-&lt;br /&gt;
|  grandpa&lt;br /&gt;
|   query &lt;br /&gt;
|  Ask Grandpa about something.&lt;br /&gt;
|-&lt;br /&gt;
|  guardians&lt;br /&gt;
|   &lt;br /&gt;
|  automatically complete quest.&lt;br /&gt;
|-&lt;br /&gt;
|  guild&lt;br /&gt;
|   &lt;br /&gt;
|  automatically complete quest.&lt;br /&gt;
|-&lt;br /&gt;
|  hagnk&lt;br /&gt;
|   outfit name | item [, item]... &lt;br /&gt;
|  pull items from Hagnk&#039;s storage.&lt;br /&gt;
|-&lt;br /&gt;
|  hedge*&lt;br /&gt;
|   &lt;br /&gt;
|  automatically complete quest.&lt;br /&gt;
|-&lt;br /&gt;
|  help&lt;br /&gt;
|   [filter] &lt;br /&gt;
|  list CLI commands [that match filter].&lt;br /&gt;
|-&lt;br /&gt;
|  hermit[?]&lt;br /&gt;
|   [item] &lt;br /&gt;
|  get clover status, or trade for item.&lt;br /&gt;
|-&lt;br /&gt;
|  hiddencity&lt;br /&gt;
|   square [temple|altar item] &lt;br /&gt;
|  set Hidden City square [and perform an action there].&lt;br /&gt;
|-&lt;br /&gt;
|  hobo[?]&lt;br /&gt;
|   [either] item [, item]... &lt;br /&gt;
|  use/consume items&lt;br /&gt;
|-&lt;br /&gt;
|  holiday&lt;br /&gt;
|   HolidayName &lt;br /&gt;
|  enable special processing for unpredicted holidays.&lt;br /&gt;
|-&lt;br /&gt;
|  hottub&lt;br /&gt;
|   &lt;br /&gt;
|  soak in your clan&#039;s hot tub&lt;br /&gt;
|-&lt;br /&gt;
|  http:*&lt;br /&gt;
|   &lt;br /&gt;
|  visit URL without showing results.&lt;br /&gt;
|-&lt;br /&gt;
|  if&lt;br /&gt;
|   condition; commands &lt;br /&gt;
|  do commands once if condition is true (see condref).&lt;br /&gt;
|-&lt;br /&gt;
|  insults&lt;br /&gt;
|   &lt;br /&gt;
|  list the pirate insult comebacks you know.&lt;br /&gt;
|-&lt;br /&gt;
|  inv*&lt;br /&gt;
|   [param] &lt;br /&gt;
|  list indicated type of data, possibly filtered by param.&lt;br /&gt;
|-&lt;br /&gt;
|  item&lt;br /&gt;
|   &lt;br /&gt;
|  switch to tab or open window&lt;br /&gt;
|-&lt;br /&gt;
|  junk&lt;br /&gt;
|   &lt;br /&gt;
|  use, pulverize, or autosell your junk items.&lt;br /&gt;
|-&lt;br /&gt;
|  kmail&lt;br /&gt;
|   item [, item]... to recipient [ | message ] &lt;br /&gt;
|  send kmail&lt;br /&gt;
|-&lt;br /&gt;
|  later&lt;br /&gt;
|   commands &lt;br /&gt;
|  adds a button to do commands to the Daily Deeds list.&lt;br /&gt;
|-&lt;br /&gt;
|  leaflet&lt;br /&gt;
|   [nomagic] | location | command &lt;br /&gt;
|  complete leaflet quest [without using magic words].&lt;br /&gt;
|-&lt;br /&gt;
|  load&lt;br /&gt;
|   [numberx] filename | function [parameters] &lt;br /&gt;
|  check/run script.&lt;br /&gt;
|-&lt;br /&gt;
|  locations&lt;br /&gt;
|   [param] &lt;br /&gt;
|  list indicated type of data, possibly filtered by param.&lt;br /&gt;
|-&lt;br /&gt;
|  log&lt;br /&gt;
|   [status],[equipment],[effects],[etc.] &lt;br /&gt;
|  record data, &amp;quot;log snapshot&amp;quot; for all common data.&lt;br /&gt;
|-&lt;br /&gt;
|  logecho&lt;br /&gt;
|   timestamp | text &lt;br /&gt;
|  include timestamp or text in the session log only.&lt;br /&gt;
|-&lt;br /&gt;
|  login&lt;br /&gt;
|   username &lt;br /&gt;
|  logout then log back in as username.&lt;br /&gt;
|-&lt;br /&gt;
|  logout&lt;br /&gt;
|   &lt;br /&gt;
|  logout and return to login window.&lt;br /&gt;
|-&lt;br /&gt;
|  logprint&lt;br /&gt;
|   timestamp | text &lt;br /&gt;
|  include timestamp or text in the session log only.&lt;br /&gt;
|-&lt;br /&gt;
|  lookup&lt;br /&gt;
|   item | effect &lt;br /&gt;
|  go to appropriate KoL Wiki page.&lt;br /&gt;
|-&lt;br /&gt;
|  mail&lt;br /&gt;
|   &lt;br /&gt;
|  switch to tab or open window&lt;br /&gt;
|-&lt;br /&gt;
|  make&lt;br /&gt;
|   [ item... ] &lt;br /&gt;
|  list creatables, or create specified items.&lt;br /&gt;
|-&lt;br /&gt;
|  mallbuy&lt;br /&gt;
|   item [@ limit] [, another]... &lt;br /&gt;
|  buy from NPC store or the Mall.&lt;br /&gt;
|-&lt;br /&gt;
|  mallsell&lt;br /&gt;
|   item [[@] price [[limit] num]] [, another]... &lt;br /&gt;
|  sell in Mall.&lt;br /&gt;
|-&lt;br /&gt;
|  [+|-|weight]&lt;br /&gt;
|   keyword, ... &lt;br /&gt;
|  run the Modifier Maximizer.&lt;br /&gt;
|-&lt;br /&gt;
|  maze&lt;br /&gt;
|   &lt;br /&gt;
|  automatically complete quest.&lt;br /&gt;
|-&lt;br /&gt;
|  mcd&lt;br /&gt;
|   number &lt;br /&gt;
|  set mind control device (or equivalent) to new value.&lt;br /&gt;
|-&lt;br /&gt;
|  mind-control&lt;br /&gt;
|   number &lt;br /&gt;
|  set mind control device (or equivalent) to new value.&lt;br /&gt;
|-&lt;br /&gt;
|  mix&lt;br /&gt;
|   [ item... ] &lt;br /&gt;
|  list creatables, or create specified items.&lt;br /&gt;
|-&lt;br /&gt;
|  modifies&lt;br /&gt;
|   filter &lt;br /&gt;
|  list all possible sources of modifiers matching filter.&lt;br /&gt;
|-&lt;br /&gt;
|  modref&lt;br /&gt;
|   [object] &lt;br /&gt;
|  list all modifiers, show values for player [and object].&lt;br /&gt;
|-&lt;br /&gt;
|  modtrace&lt;br /&gt;
|   filter &lt;br /&gt;
|  list everything that adds to modifiers matching filter.&lt;br /&gt;
|-&lt;br /&gt;
|  moleref&lt;br /&gt;
|   &lt;br /&gt;
|  Path of the Mole spoilers.&lt;br /&gt;
|-&lt;br /&gt;
|  monsters&lt;br /&gt;
|   location &lt;br /&gt;
|  show combat details for the specified area.&lt;br /&gt;
|-&lt;br /&gt;
|  mood*&lt;br /&gt;
|   clear | autofill | execute | repeat [numTimes] | moodName [numTimes] &lt;br /&gt;
|  mood management.&lt;br /&gt;
|-&lt;br /&gt;
|  moon*&lt;br /&gt;
|   [param] &lt;br /&gt;
|  list indicated type of data, possibly filtered by param.&lt;br /&gt;
|-&lt;br /&gt;
|  mpitems&lt;br /&gt;
|   &lt;br /&gt;
|  counts MP restoratives in inventory.&lt;br /&gt;
|-&lt;br /&gt;
|  namespace&lt;br /&gt;
|   [filter] &lt;br /&gt;
|  list namespace scripts and the functions they define.&lt;br /&gt;
|-&lt;br /&gt;
|  nemesis&lt;br /&gt;
|   &lt;br /&gt;
|  automatically complete quest.&lt;br /&gt;
|-&lt;br /&gt;
|  nuns&lt;br /&gt;
|   [mp] &lt;br /&gt;
|  visit the Nunnery for restoration [but only if MP is restored].&lt;br /&gt;
|-&lt;br /&gt;
|  objective*&lt;br /&gt;
|   clear | check | add condition | set condition &lt;br /&gt;
|  modify your adventuring goals.&lt;br /&gt;
|-&lt;br /&gt;
|  olfact*&lt;br /&gt;
|   ( none | monster name | [item] list | goals ) [abort] &lt;br /&gt;
|  tag next monster [that drops all items in list, or your goals].&lt;br /&gt;
|-&lt;br /&gt;
|  opt*&lt;br /&gt;
|   &lt;br /&gt;
|  switch to tab or open window&lt;br /&gt;
|-&lt;br /&gt;
|  outfit&lt;br /&gt;
|   [list filter] | save name | checkpoint | name &lt;br /&gt;
|  list, save, restore, or change outfits.&lt;br /&gt;
|-&lt;br /&gt;
|  overdrink[?]&lt;br /&gt;
|   [either] item [, item]... &lt;br /&gt;
|  use/consume items&lt;br /&gt;
|-&lt;br /&gt;
|  pause&lt;br /&gt;
|   [seconds] &lt;br /&gt;
|  pause script execution (default 1 second).&lt;br /&gt;
|-&lt;br /&gt;
|  ply&lt;br /&gt;
|   [ item... ] &lt;br /&gt;
|  list creatables, or create specified items.&lt;br /&gt;
|-&lt;br /&gt;
|  print&lt;br /&gt;
|   timestamp | text &lt;br /&gt;
|  include timestamp or text in the session log.&lt;br /&gt;
|-&lt;br /&gt;
|  priphea&lt;br /&gt;
|   &lt;br /&gt;
|  launch KoLmafia GUI.&lt;br /&gt;
|-&lt;br /&gt;
|  pull&lt;br /&gt;
|   outfit name | item [, item]... &lt;br /&gt;
|  pull items from Hagnk&#039;s storage.&lt;br /&gt;
|-&lt;br /&gt;
|  pulverize&lt;br /&gt;
|   item [, item]... &lt;br /&gt;
|  pulverize specified items&lt;br /&gt;
|-&lt;br /&gt;
|  putty&lt;br /&gt;
|   ( none | monster name | [item] list | goals ) [abort] &lt;br /&gt;
|  tag next monster [that drops all items in list, or your goals].&lt;br /&gt;
|-&lt;br /&gt;
|  pvp&lt;br /&gt;
|   [ target [, target]... ] &lt;br /&gt;
|  PvP for dignity or flowers&lt;br /&gt;
|-&lt;br /&gt;
|  pvplog*&lt;br /&gt;
|   &lt;br /&gt;
|  summarize PvP results.&lt;br /&gt;
|-&lt;br /&gt;
|  quark[?]&lt;br /&gt;
|   [itemList...] &lt;br /&gt;
|  gain MP by pasting unstable quark with best item from itemList (or your junk list).&lt;br /&gt;
|-&lt;br /&gt;
|  quit&lt;br /&gt;
|   &lt;br /&gt;
|  logout and exit KoLmafia.&lt;br /&gt;
|-&lt;br /&gt;
|  radio&lt;br /&gt;
|   &lt;br /&gt;
|  switch to tab or open window&lt;br /&gt;
|-&lt;br /&gt;
|  raffle&lt;br /&gt;
|   ticketsToBuy [ inventory | storage ] &lt;br /&gt;
|  buy raffle tickets&lt;br /&gt;
|-&lt;br /&gt;
|  recover*&lt;br /&gt;
|   hp | health | mp | mana | both &lt;br /&gt;
|  attempt to regain some HP or MP.&lt;br /&gt;
|-&lt;br /&gt;
|  refresh&lt;br /&gt;
|   all | status | equip | inv | storage | familiar | stickers &lt;br /&gt;
|  resynchronize with KoL.&lt;br /&gt;
|-&lt;br /&gt;
|  relay&lt;br /&gt;
|   &lt;br /&gt;
|  open the relay browser.&lt;br /&gt;
|-&lt;br /&gt;
|  remedy[?]&lt;br /&gt;
|   effect [, effect]... &lt;br /&gt;
|  remove effects using appropriate means.&lt;br /&gt;
|-&lt;br /&gt;
|  remove&lt;br /&gt;
|   slot | name &lt;br /&gt;
|  remove equipment in slot, or that matches name&lt;br /&gt;
|-&lt;br /&gt;
|  repeat&lt;br /&gt;
|   [number] &lt;br /&gt;
|  repeat previous line [number times].&lt;br /&gt;
|-&lt;br /&gt;
|  reprice&lt;br /&gt;
|   &lt;br /&gt;
|  price all max-priced items at or below current Mall minimum price.&lt;br /&gt;
|-&lt;br /&gt;
|  restaurant[?]&lt;br /&gt;
|   [ daily special | item ] &lt;br /&gt;
|  show daily special [or consume it or other restaurant item].&lt;br /&gt;
|-&lt;br /&gt;
|  restore*&lt;br /&gt;
|   hp | health | mp | mana | both &lt;br /&gt;
|  attempt to regain some HP or MP.&lt;br /&gt;
|-&lt;br /&gt;
|  retrieve&lt;br /&gt;
|   item &lt;br /&gt;
|  ensure that you have item, creating or buying it if needed.&lt;br /&gt;
|-&lt;br /&gt;
|  run&lt;br /&gt;
|   [numberx] filename | function [parameters] &lt;br /&gt;
|  check/run script.&lt;br /&gt;
|-&lt;br /&gt;
|  safe&lt;br /&gt;
|   location &lt;br /&gt;
|  show summary data for the specified area.&lt;br /&gt;
|-&lt;br /&gt;
|  save&lt;br /&gt;
|   as mood &lt;br /&gt;
|  add your current effects to the mood.&lt;br /&gt;
|-&lt;br /&gt;
|  searchmall&lt;br /&gt;
|   item [ with limit number ] &lt;br /&gt;
|  search the Mall.&lt;br /&gt;
|-&lt;br /&gt;
|  sell&lt;br /&gt;
|   item [, item]... &lt;br /&gt;
|  autosell items.&lt;br /&gt;
|-&lt;br /&gt;
|  send&lt;br /&gt;
|   item [, item]... to recipient [ | message ] &lt;br /&gt;
|  send kmail&lt;br /&gt;
|-&lt;br /&gt;
|  session&lt;br /&gt;
|   [param] &lt;br /&gt;
|  list indicated type of data, possibly filtered by param.&lt;br /&gt;
|-&lt;br /&gt;
|  set&lt;br /&gt;
|   preference [ = value ] &lt;br /&gt;
|  show/change preference settings&lt;br /&gt;
|-&lt;br /&gt;
|  shrug[?]&lt;br /&gt;
|   effect [, effect]... &lt;br /&gt;
|  remove effects using appropriate means.&lt;br /&gt;
|-&lt;br /&gt;
|  skill[?]&lt;br /&gt;
|   [ [count] skill [on player] ] &lt;br /&gt;
|  list spells, or use one.&lt;br /&gt;
|-&lt;br /&gt;
|  skills&lt;br /&gt;
|   [param] &lt;br /&gt;
|  list indicated type of data, possibly filtered by param.&lt;br /&gt;
|-&lt;br /&gt;
|  sleep&lt;br /&gt;
|   number &lt;br /&gt;
|  rest on your clan sofa for number turns.&lt;br /&gt;
|-&lt;br /&gt;
|  slimeling[?]&lt;br /&gt;
|   [either] item [, item]... &lt;br /&gt;
|  use/consume items&lt;br /&gt;
|-&lt;br /&gt;
|  smash&lt;br /&gt;
|   item [, item]... &lt;br /&gt;
|  pulverize specified items&lt;br /&gt;
|-&lt;br /&gt;
|  smith&lt;br /&gt;
|   [ item... ] &lt;br /&gt;
|  list creatables, or create specified items.&lt;br /&gt;
|-&lt;br /&gt;
|  soak&lt;br /&gt;
|   &lt;br /&gt;
|  soak in your clan&#039;s hot tub&lt;br /&gt;
|-&lt;br /&gt;
|  sofa&lt;br /&gt;
|   number &lt;br /&gt;
|  rest on your clan sofa for number turns.&lt;br /&gt;
|-&lt;br /&gt;
|  spade&lt;br /&gt;
|   [prices URL] &lt;br /&gt;
|  submit automatically gathered data.&lt;br /&gt;
|-&lt;br /&gt;
|  speculate&lt;br /&gt;
|   MCD num | equip [slot] item | unequip slot | familiar type | up eff | uneffect eff | quiet ; [another;...] &lt;br /&gt;
|  predict modifiers.&lt;br /&gt;
|-&lt;br /&gt;
|  squeeze[?]&lt;br /&gt;
|   item &lt;br /&gt;
|  produce item by using another form, repeated as needed.&lt;br /&gt;
|-&lt;br /&gt;
|  start&lt;br /&gt;
|   [numberx] filename | function [parameters] &lt;br /&gt;
|  check/run script.&lt;br /&gt;
|-&lt;br /&gt;
|  stash&lt;br /&gt;
|   [put] item... | take item... &lt;br /&gt;
|  exchange items with clan stash&lt;br /&gt;
|-&lt;br /&gt;
|  status&lt;br /&gt;
|   [param] &lt;br /&gt;
|  list indicated type of data, possibly filtered by param.&lt;br /&gt;
|-&lt;br /&gt;
|  sticker*&lt;br /&gt;
|   sticker1 [, sticker2 [, sticker3]] &lt;br /&gt;
|  replace worn stickers.&lt;br /&gt;
|-&lt;br /&gt;
|  storage&lt;br /&gt;
|   [param] &lt;br /&gt;
|  list indicated type of data, possibly filtered by param.&lt;br /&gt;
|-&lt;br /&gt;
|  styx&lt;br /&gt;
|   muscle | mysticality | moxie &lt;br /&gt;
|  get daily Styx Pixie buff.&lt;br /&gt;
|-&lt;br /&gt;
|  summary&lt;br /&gt;
|   [param] &lt;br /&gt;
|  list indicated type of data, possibly filtered by param.&lt;br /&gt;
|-&lt;br /&gt;
|  summon&lt;br /&gt;
|   demonName | effect | location | number &lt;br /&gt;
|  use the Summoning Chamber.&lt;br /&gt;
|-&lt;br /&gt;
|  tavern&lt;br /&gt;
|   &lt;br /&gt;
|  automatically complete quest.&lt;br /&gt;
|-&lt;br /&gt;
|  telescope&lt;br /&gt;
|   [look] high | low &lt;br /&gt;
|  get daily buff, or Lair hints from your telescope.&lt;br /&gt;
|-&lt;br /&gt;
|  text&lt;br /&gt;
|   URL &lt;br /&gt;
|  show text results from visiting URL.&lt;br /&gt;
|-&lt;br /&gt;
|  tinker&lt;br /&gt;
|   [ item... ] &lt;br /&gt;
|  list creatables, or create specified items.&lt;br /&gt;
|-&lt;br /&gt;
|  tower&lt;br /&gt;
|   &lt;br /&gt;
|  automatically complete quest.&lt;br /&gt;
|-&lt;br /&gt;
|  train&lt;br /&gt;
|   base weight | buffed weight | turns number &lt;br /&gt;
|  train familiar.&lt;br /&gt;
|-&lt;br /&gt;
|  trigger*&lt;br /&gt;
|   clear | autofill | [type,] effect [, action] &lt;br /&gt;
|  edit current mood&lt;br /&gt;
|-&lt;br /&gt;
|  try&lt;br /&gt;
|   ; commands &lt;br /&gt;
|  do commands, and continue even if an error occurs.&lt;br /&gt;
|-&lt;br /&gt;
|  unalias&lt;br /&gt;
|   word &lt;br /&gt;
|  remove a CLI abbreviation.&lt;br /&gt;
|-&lt;br /&gt;
|  undercut&lt;br /&gt;
|   &lt;br /&gt;
|  price all max-priced items at or below current Mall minimum price.&lt;br /&gt;
|-&lt;br /&gt;
|  uneffect[?]&lt;br /&gt;
|   effect [, effect]... &lt;br /&gt;
|  remove effects using appropriate means.&lt;br /&gt;
|-&lt;br /&gt;
|  unequip&lt;br /&gt;
|   slot | name &lt;br /&gt;
|  remove equipment in slot, or that matches name&lt;br /&gt;
|-&lt;br /&gt;
|  untinker&lt;br /&gt;
|   [ item... ] &lt;br /&gt;
|  complete quest, or untinker items.&lt;br /&gt;
|-&lt;br /&gt;
|  up?&lt;br /&gt;
|   effect [, effect]... &lt;br /&gt;
|  extend duration of effects.&lt;br /&gt;
|-&lt;br /&gt;
|  update&lt;br /&gt;
|   data | clear | prices URL or filename &lt;br /&gt;
|  download most recent data files, or revert to built-in data.&lt;br /&gt;
|-&lt;br /&gt;
|  use[?]&lt;br /&gt;
|   [either] item [, item]... &lt;br /&gt;
|  use/consume items&lt;br /&gt;
|-&lt;br /&gt;
|  using&lt;br /&gt;
|   filename &lt;br /&gt;
|  add ASH script to namespace.&lt;br /&gt;
|-&lt;br /&gt;
|  validate&lt;br /&gt;
|   [numberx] filename | function [parameters] &lt;br /&gt;
|  check/run script.&lt;br /&gt;
|-&lt;br /&gt;
|  verify&lt;br /&gt;
|   [numberx] filename | function [parameters] &lt;br /&gt;
|  check/run script.&lt;br /&gt;
|-&lt;br /&gt;
|  version&lt;br /&gt;
|   &lt;br /&gt;
|  display KoLmafia version.&lt;br /&gt;
|-&lt;br /&gt;
|  wait&lt;br /&gt;
|   [seconds] &lt;br /&gt;
|  pause script execution (default 1 second).&lt;br /&gt;
|-&lt;br /&gt;
|  wear&lt;br /&gt;
|   [list filter] | [slot] item &lt;br /&gt;
|  show equipment, or equip item [in slot].&lt;br /&gt;
|-&lt;br /&gt;
|  whatif&lt;br /&gt;
|   MCD num | equip [slot] item | unequip slot | familiar type | up eff | uneffect eff | quiet ; [another;...] &lt;br /&gt;
|  predict modifiers.&lt;br /&gt;
|-&lt;br /&gt;
|  while&lt;br /&gt;
|   condition; commands &lt;br /&gt;
|  do commands repeatedly while condition is true.&lt;br /&gt;
|-&lt;br /&gt;
|  wield&lt;br /&gt;
|   [list filter] | [slot] item &lt;br /&gt;
|  show equipment, or equip item [in slot].&lt;br /&gt;
|-&lt;br /&gt;
|  wiki&lt;br /&gt;
|   searchText &lt;br /&gt;
|  perform search on KoL Wiki.&lt;br /&gt;
|-&lt;br /&gt;
|  win&lt;br /&gt;
|   game &lt;br /&gt;
|  I&#039;m as surprised as you! I didn&#039;t think it was possible.&lt;br /&gt;
|-&lt;br /&gt;
|  zap&lt;br /&gt;
|   item [, item]... &lt;br /&gt;
|  transform items with your wand.&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>HippoKing</name></author>
	</entry>
	<entry>
		<id>https://wiki.kolmafia.us/index.php?title=CLI_Reference&amp;diff=2914</id>
		<title>CLI Reference</title>
		<link rel="alternate" type="text/html" href="https://wiki.kolmafia.us/index.php?title=CLI_Reference&amp;diff=2914"/>
		<updated>2009-08-30T15:18:13Z</updated>

		<summary type="html">&lt;p&gt;HippoKing: corrected galaktik parsing&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The KoLmafia Graphical CLI is one of the most helpful features it has. This page is intended to provide information on the commands available.&lt;br /&gt;
&lt;br /&gt;
==Inventory Management==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!  Command&lt;br /&gt;
!  Arguments&lt;br /&gt;
!  Description&lt;br /&gt;
|-&lt;br /&gt;
|  acquire&lt;br /&gt;
|  item&lt;br /&gt;
|  Ensures you have argument item, making or buying when necessary.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Quests==&lt;br /&gt;
&lt;br /&gt;
==Market Management==&lt;br /&gt;
&lt;br /&gt;
==Mafia==&lt;br /&gt;
&lt;br /&gt;
==Other==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!  Command Name&lt;br /&gt;
!  Arguments&lt;br /&gt;
!  Description&lt;br /&gt;
|-&lt;br /&gt;
|  !&lt;br /&gt;
|  &lt;br /&gt;
|  list the Dungeons of Doom potions you&#039;ve identified.&lt;br /&gt;
|-&lt;br /&gt;
|  *.php*&lt;br /&gt;
|  &lt;br /&gt;
|  visit URL without showing results.&lt;br /&gt;
|-&lt;br /&gt;
|  *brewery*[?]&lt;br /&gt;
|  [ daily special | item ] &lt;br /&gt;
|  show daily special [or consume it or other restaurant item].&lt;br /&gt;
|-&lt;br /&gt;
|  *kitchen*[?]&lt;br /&gt;
|  item &lt;br /&gt;
|  consumes item at Hell&#039;s Kitchen, if available.&lt;br /&gt;
|-&lt;br /&gt;
|  *mirror*&lt;br /&gt;
|  [filename] &lt;br /&gt;
|  stop [or start] logging to an additional file.&lt;br /&gt;
|-&lt;br /&gt;
|  &amp;lt;inline-ash-script&amp;gt;&lt;br /&gt;
|  &lt;br /&gt;
|  embed an ASH script in a CLI script.&lt;br /&gt;
|-&lt;br /&gt;
|  aa&lt;br /&gt;
|  skill &lt;br /&gt;
|  set default attack method.&lt;br /&gt;
|-&lt;br /&gt;
|  abort&lt;br /&gt;
|  [message] &lt;br /&gt;
|  stop current script or automated task.&lt;br /&gt;
|-&lt;br /&gt;
|  acquire&lt;br /&gt;
|  item &lt;br /&gt;
|  ensure that you have item, creating or buying it if needed.&lt;br /&gt;
|-&lt;br /&gt;
|  adv*[?]&lt;br /&gt;
|  last | [count] location &lt;br /&gt;
|  spend your turns.&lt;br /&gt;
|-&lt;br /&gt;
|  alias&lt;br /&gt;
|  [ word =&amp;gt; expansion ] &lt;br /&gt;
|  list or create CLI abbreviations.&lt;br /&gt;
|-&lt;br /&gt;
|  ash&lt;br /&gt;
|  statement &lt;br /&gt;
|  test a line of ASH code without having to edit a script.&lt;br /&gt;
|-&lt;br /&gt;
|  ashref&lt;br /&gt;
|  [filter] &lt;br /&gt;
|  summarize ASH built-in functions [matching filter].&lt;br /&gt;
|-&lt;br /&gt;
|  attack&lt;br /&gt;
|  [ target [, target]... ] &lt;br /&gt;
|  PvP for dignity or flowers&lt;br /&gt;
|-&lt;br /&gt;
|  autoattack&lt;br /&gt;
|  skill &lt;br /&gt;
|  set default attack method.&lt;br /&gt;
|-&lt;br /&gt;
|  automall&lt;br /&gt;
|  &lt;br /&gt;
|  dump all profitable, non-memento items into the Mall.&lt;br /&gt;
|-&lt;br /&gt;
|  autosell&lt;br /&gt;
|  item [, item]... &lt;br /&gt;
|  autosell items.&lt;br /&gt;
|-&lt;br /&gt;
|  backtrace&lt;br /&gt;
|  text | off &lt;br /&gt;
|  dump stack when a gCLI message or page URL matches text (case-sensitive).&lt;br /&gt;
|-&lt;br /&gt;
|  bake&lt;br /&gt;
|  [ item... ] &lt;br /&gt;
|  list creatables, or create specified items.&lt;br /&gt;
|-&lt;br /&gt;
|  bang&lt;br /&gt;
|  &lt;br /&gt;
|  list the Dungeons of Doom potions you&#039;ve identified.&lt;br /&gt;
|-&lt;br /&gt;
|  basement&lt;br /&gt;
|  &lt;br /&gt;
|  check Fernswarthy&#039;s Basement status.&lt;br /&gt;
|-&lt;br /&gt;
|  breakfast&lt;br /&gt;
|  &lt;br /&gt;
|  perform start-of-day activities.&lt;br /&gt;
|-&lt;br /&gt;
|  budget&lt;br /&gt;
|  [number] &lt;br /&gt;
|  show [or set] the number of budgeted Hagnk&#039;s pulls.&lt;br /&gt;
|-&lt;br /&gt;
|  buffbot&lt;br /&gt;
|  number &lt;br /&gt;
|  run buffbot for number iterations.&lt;br /&gt;
|-&lt;br /&gt;
|  -num&lt;br /&gt;
|  &lt;br /&gt;
|  use excess/all/specified/all but specified MP for buff extension and summons.&lt;br /&gt;
|-&lt;br /&gt;
|  buy&lt;br /&gt;
|  item [@ limit] [, another]... &lt;br /&gt;
|  buy from NPC store or the Mall.&lt;br /&gt;
|-&lt;br /&gt;
|  call&lt;br /&gt;
|  [numberx] filename | function [parameters] &lt;br /&gt;
|  check/run script.&lt;br /&gt;
|-&lt;br /&gt;
|  camp*&lt;br /&gt;
|  rest | etc. [numTimes] &lt;br /&gt;
|  perform campground actions.&lt;br /&gt;
|-&lt;br /&gt;
|  cast[?]&lt;br /&gt;
|  [ [count] skill [on player] ] &lt;br /&gt;
|  list spells, or use one.&lt;br /&gt;
|-&lt;br /&gt;
|  ccs&lt;br /&gt;
|  [script] &lt;br /&gt;
|  show [or select] Custom Combat Script in use.&lt;br /&gt;
|-&lt;br /&gt;
|  cecho&lt;br /&gt;
|  color text &lt;br /&gt;
|  show text using color (specified by name or #RRGGBB).&lt;br /&gt;
|-&lt;br /&gt;
|  chamber&lt;br /&gt;
|  &lt;br /&gt;
|  automatically complete quest.&lt;br /&gt;
|-&lt;br /&gt;
|  chat&lt;br /&gt;
|  &lt;br /&gt;
|  switch to tab or open window&lt;br /&gt;
|-&lt;br /&gt;
|  [,[-]item]...&lt;br /&gt;
|  [; cmds] &lt;br /&gt;
|  compare prices, do cmds with &amp;quot;it&amp;quot; replaced with best.&lt;br /&gt;
|-&lt;br /&gt;
|  check&lt;br /&gt;
|  hp | health | mp | mana | both &lt;br /&gt;
|  attempt to regain some HP or MP.&lt;br /&gt;
|-&lt;br /&gt;
|  checkpoint&lt;br /&gt;
|  &lt;br /&gt;
|  remembers current equipment, use &amp;quot;outfit checkpoint&amp;quot; to restore.&lt;br /&gt;
|-&lt;br /&gt;
|  chew[?]&lt;br /&gt;
|  [either] item [, item]... &lt;br /&gt;
|  use/consume items&lt;br /&gt;
|-&lt;br /&gt;
|  clan&lt;br /&gt;
|  [ snapshot | stashlog ] &lt;br /&gt;
|  clan management.&lt;br /&gt;
|-&lt;br /&gt;
|  cleanup&lt;br /&gt;
|  &lt;br /&gt;
|  use, pulverize, or autosell your junk items.&lt;br /&gt;
|-&lt;br /&gt;
|  clear&lt;br /&gt;
|  &lt;br /&gt;
|  clear CLI window.&lt;br /&gt;
|-&lt;br /&gt;
|  closet&lt;br /&gt;
|  list filter | put item... | take item... &lt;br /&gt;
|  list or manipulate your closet.&lt;br /&gt;
|-&lt;br /&gt;
|  cls&lt;br /&gt;
|  &lt;br /&gt;
|  clear CLI window.&lt;br /&gt;
|-&lt;br /&gt;
|  colorecho&lt;br /&gt;
|  color text &lt;br /&gt;
|  show text using color (specified by name or #RRGGBB).&lt;br /&gt;
|-&lt;br /&gt;
|  condition*&lt;br /&gt;
|  clear | check | add condition | set condition &lt;br /&gt;
|  modify your adventuring goals.&lt;br /&gt;
|-&lt;br /&gt;
|  condref&lt;br /&gt;
|  &lt;br /&gt;
|  list conditions usable with if/while commands.&lt;br /&gt;
|-&lt;br /&gt;
|  council&lt;br /&gt;
|  &lt;br /&gt;
|  visit the Council to advance quest progress.&lt;br /&gt;
|-&lt;br /&gt;
|  counters&lt;br /&gt;
|  [ clear | add number [title img] ] &lt;br /&gt;
|  show, clear, or add to current turn counters.&lt;br /&gt;
|-&lt;br /&gt;
|  create&lt;br /&gt;
|  [ item... ] &lt;br /&gt;
|  list creatables, or create specified items.&lt;br /&gt;
|-&lt;br /&gt;
|  csend&lt;br /&gt;
|  item [, item]... to recipient [ | message ] &lt;br /&gt;
|  send kmail&lt;br /&gt;
|-&lt;br /&gt;
|  debug&lt;br /&gt;
|  [on] | off &lt;br /&gt;
|  start or stop logging of debugging data.&lt;br /&gt;
|-&lt;br /&gt;
|  demons&lt;br /&gt;
|  &lt;br /&gt;
|  list the demon names you know.&lt;br /&gt;
|-&lt;br /&gt;
|  disable&lt;br /&gt;
|  all | command [, command]... &lt;br /&gt;
|  allow/deny CLI commands.&lt;br /&gt;
|-&lt;br /&gt;
|  display&lt;br /&gt;
|  [filter] | put item... | take item... &lt;br /&gt;
|  list or manipulate your display case.&lt;br /&gt;
|-&lt;br /&gt;
|  donate&lt;br /&gt;
|  boris | mus | jarl | mys | pete | mox amount &lt;br /&gt;
|  donate in Hall of Legends.&lt;br /&gt;
|-&lt;br /&gt;
|  drink[?]&lt;br /&gt;
|  [either] item [, item]... &lt;br /&gt;
|  use/consume items&lt;br /&gt;
|-&lt;br /&gt;
|  dusty&lt;br /&gt;
|  &lt;br /&gt;
|  list the dusty bottles of wine you&#039;ve identified.&lt;br /&gt;
|-&lt;br /&gt;
|  eat[?]&lt;br /&gt;
|  [either] item [, item]... &lt;br /&gt;
|  use/consume items&lt;br /&gt;
|-&lt;br /&gt;
|  echo&lt;br /&gt;
|  timestamp | text &lt;br /&gt;
|  include timestamp or text in the session log.&lt;br /&gt;
|-&lt;br /&gt;
|  effects&lt;br /&gt;
|  [param] &lt;br /&gt;
|  list indicated type of data, possibly filtered by param.&lt;br /&gt;
|-&lt;br /&gt;
|  else&lt;br /&gt;
|  ; commands &lt;br /&gt;
|  do commands if preceding if/while/try didn&#039;t execute.&lt;br /&gt;
|-&lt;br /&gt;
|  elseif&lt;br /&gt;
|  condition; commands &lt;br /&gt;
|  do if condition is true but preceding condition was false.&lt;br /&gt;
|-&lt;br /&gt;
|  enable&lt;br /&gt;
|  all | command [, command]... &lt;br /&gt;
|  allow/deny CLI commands.&lt;br /&gt;
|-&lt;br /&gt;
|  encounters&lt;br /&gt;
|  [param] &lt;br /&gt;
|  list indicated type of data, possibly filtered by param.&lt;br /&gt;
|-&lt;br /&gt;
|  entity&lt;br /&gt;
|  &lt;br /&gt;
|  give details of your current pastamancer combat entity.&lt;br /&gt;
|-&lt;br /&gt;
|  entryway&lt;br /&gt;
|  [clover] &lt;br /&gt;
|  automatically complete quest [using a clover].&lt;br /&gt;
|-&lt;br /&gt;
|  equip&lt;br /&gt;
|  [list filter] | [slot] item &lt;br /&gt;
|  show equipment, or equip item [in slot].&lt;br /&gt;
|-&lt;br /&gt;
|  events&lt;br /&gt;
|  [clear] &lt;br /&gt;
|  clear or show recent events.&lt;br /&gt;
|-&lt;br /&gt;
|  exec*&lt;br /&gt;
|  [numberx] filename | function [parameters] &lt;br /&gt;
|  check/run script.&lt;br /&gt;
|-&lt;br /&gt;
|  exit&lt;br /&gt;
|  &lt;br /&gt;
|  logout and exit KoLmafia.&lt;br /&gt;
|-&lt;br /&gt;
|  [,[-]item]...&lt;br /&gt;
|  [; cmds] &lt;br /&gt;
|  compare prices, do cmds with &amp;quot;it&amp;quot; replaced with best.&lt;br /&gt;
|-&lt;br /&gt;
|  factory&lt;br /&gt;
|  report digits &lt;br /&gt;
|  Given a string of 7 dwarven digits, report on factory.&lt;br /&gt;
|-&lt;br /&gt;
|  familiar[?]&lt;br /&gt;
|  [list filter] | lock | unlock | species | none &lt;br /&gt;
|  list or change familiar types&lt;br /&gt;
|-&lt;br /&gt;
|  field&lt;br /&gt;
|  [ plant square type | pick square | harvest ] &lt;br /&gt;
|  view or use your mushroom plot&lt;br /&gt;
|-&lt;br /&gt;
|  find&lt;br /&gt;
|  item &lt;br /&gt;
|  ensure that you have item, creating or buying it if needed.&lt;br /&gt;
|-&lt;br /&gt;
|  flowers&lt;br /&gt;
|  &lt;br /&gt;
|  commit random acts of PvP.&lt;br /&gt;
|-&lt;br /&gt;
|  fold[?]&lt;br /&gt;
|  item &lt;br /&gt;
|  produce item by using another form, repeated as needed.&lt;br /&gt;
|-&lt;br /&gt;
|  forum*&lt;br /&gt;
|  &lt;br /&gt;
|  visit the official KoL forums.&lt;br /&gt;
|-&lt;br /&gt;
|  friars&lt;br /&gt;
|  [blessing] food | familiar | booze &lt;br /&gt;
|  get daily blessing.&lt;br /&gt;
|-&lt;br /&gt;
|  galaktik(hp|mp)&lt;br /&gt;
|  [amount] &lt;br /&gt;
|  restore some or all hp or mp&lt;br /&gt;
|-&lt;br /&gt;
|  gc&lt;br /&gt;
|  &lt;br /&gt;
|  force Java garbage collection.&lt;br /&gt;
|-&lt;br /&gt;
|  gear&lt;br /&gt;
|  &lt;br /&gt;
|  switch to tab or open window&lt;br /&gt;
|-&lt;br /&gt;
|  get&lt;br /&gt;
|  preference [ = value ] &lt;br /&gt;
|  show/change preference settings&lt;br /&gt;
|-&lt;br /&gt;
|  ghost[?]&lt;br /&gt;
|  [either] item [, item]... &lt;br /&gt;
|  use/consume items&lt;br /&gt;
|-&lt;br /&gt;
|  goal*&lt;br /&gt;
|  clear | check | add condition | set condition &lt;br /&gt;
|  modify your adventuring goals.&lt;br /&gt;
|-&lt;br /&gt;
|  gourd&lt;br /&gt;
|  &lt;br /&gt;
|  automatically complete quest.&lt;br /&gt;
|-&lt;br /&gt;
|  grandpa&lt;br /&gt;
|  query &lt;br /&gt;
|  Ask Grandpa about something.&lt;br /&gt;
|-&lt;br /&gt;
|  guardians&lt;br /&gt;
|  &lt;br /&gt;
|  automatically complete quest.&lt;br /&gt;
|-&lt;br /&gt;
|  guild&lt;br /&gt;
|  &lt;br /&gt;
|  automatically complete quest.&lt;br /&gt;
|-&lt;br /&gt;
|  hagnk&lt;br /&gt;
|  outfit name | item [, item]... &lt;br /&gt;
|  pull items from Hagnk&#039;s storage.&lt;br /&gt;
|-&lt;br /&gt;
|  hedge*&lt;br /&gt;
|  &lt;br /&gt;
|  automatically complete quest.&lt;br /&gt;
|-&lt;br /&gt;
|  help&lt;br /&gt;
|  [filter] &lt;br /&gt;
|  list CLI commands [that match filter].&lt;br /&gt;
|-&lt;br /&gt;
|  hermit[?]&lt;br /&gt;
|  [item] &lt;br /&gt;
|  get clover status, or trade for item.&lt;br /&gt;
|-&lt;br /&gt;
|  hiddencity&lt;br /&gt;
|  square [temple|altar item] &lt;br /&gt;
|  set Hidden City square [and perform an action there].&lt;br /&gt;
|-&lt;br /&gt;
|  hobo[?]&lt;br /&gt;
|  [either] item [, item]... &lt;br /&gt;
|  use/consume items&lt;br /&gt;
|-&lt;br /&gt;
|  holiday&lt;br /&gt;
|  HolidayName &lt;br /&gt;
|  enable special processing for unpredicted holidays.&lt;br /&gt;
|-&lt;br /&gt;
|  hottub&lt;br /&gt;
|  &lt;br /&gt;
|  soak in your clan&#039;s hot tub&lt;br /&gt;
|-&lt;br /&gt;
|  http:*&lt;br /&gt;
|  &lt;br /&gt;
|  visit URL without showing results.&lt;br /&gt;
|-&lt;br /&gt;
|  if&lt;br /&gt;
|  condition; commands &lt;br /&gt;
|  do commands once if condition is true (see condref).&lt;br /&gt;
|-&lt;br /&gt;
|  insults&lt;br /&gt;
|  &lt;br /&gt;
|  list the pirate insult comebacks you know.&lt;br /&gt;
|-&lt;br /&gt;
|  inv*&lt;br /&gt;
|  [param] &lt;br /&gt;
|  list indicated type of data, possibly filtered by param.&lt;br /&gt;
|-&lt;br /&gt;
|  item&lt;br /&gt;
|  &lt;br /&gt;
|  switch to tab or open window&lt;br /&gt;
|-&lt;br /&gt;
|  junk&lt;br /&gt;
|  &lt;br /&gt;
|  use, pulverize, or autosell your junk items.&lt;br /&gt;
|-&lt;br /&gt;
|  kmail&lt;br /&gt;
|  item [, item]... to recipient [ | message ] &lt;br /&gt;
|  send kmail&lt;br /&gt;
|-&lt;br /&gt;
|  later&lt;br /&gt;
|  commands &lt;br /&gt;
|  adds a button to do commands to the Daily Deeds list.&lt;br /&gt;
|-&lt;br /&gt;
|  leaflet&lt;br /&gt;
|  [nomagic] | location | command &lt;br /&gt;
|  complete leaflet quest [without using magic words].&lt;br /&gt;
|-&lt;br /&gt;
|  load&lt;br /&gt;
|  [numberx] filename | function [parameters] &lt;br /&gt;
|  check/run script.&lt;br /&gt;
|-&lt;br /&gt;
|  locations&lt;br /&gt;
|  [param] &lt;br /&gt;
|  list indicated type of data, possibly filtered by param.&lt;br /&gt;
|-&lt;br /&gt;
|  log&lt;br /&gt;
|  [status],[equipment],[effects],[etc.] &lt;br /&gt;
|  record data, &amp;quot;log snapshot&amp;quot; for all common data.&lt;br /&gt;
|-&lt;br /&gt;
|  logecho&lt;br /&gt;
|  timestamp | text &lt;br /&gt;
|  include timestamp or text in the session log only.&lt;br /&gt;
|-&lt;br /&gt;
|  login&lt;br /&gt;
|  username &lt;br /&gt;
|  logout then log back in as username.&lt;br /&gt;
|-&lt;br /&gt;
|  logout&lt;br /&gt;
|  &lt;br /&gt;
|  logout and return to login window.&lt;br /&gt;
|-&lt;br /&gt;
|  logprint&lt;br /&gt;
|  timestamp | text &lt;br /&gt;
|  include timestamp or text in the session log only.&lt;br /&gt;
|-&lt;br /&gt;
|  lookup&lt;br /&gt;
|  item | effect &lt;br /&gt;
|  go to appropriate KoL Wiki page.&lt;br /&gt;
|-&lt;br /&gt;
|  mail&lt;br /&gt;
|  &lt;br /&gt;
|  switch to tab or open window&lt;br /&gt;
|-&lt;br /&gt;
|  make&lt;br /&gt;
|  [ item... ] &lt;br /&gt;
|  list creatables, or create specified items.&lt;br /&gt;
|-&lt;br /&gt;
|  mallbuy&lt;br /&gt;
|  item [@ limit] [, another]... &lt;br /&gt;
|  buy from NPC store or the Mall.&lt;br /&gt;
|-&lt;br /&gt;
|  mallsell&lt;br /&gt;
|  item [[@] price [[limit] num]] [, another]... &lt;br /&gt;
|  sell in Mall.&lt;br /&gt;
|-&lt;br /&gt;
|  [+|-|weight]&lt;br /&gt;
|  keyword, ... &lt;br /&gt;
|  run the Modifier Maximizer.&lt;br /&gt;
|-&lt;br /&gt;
|  maze&lt;br /&gt;
|  &lt;br /&gt;
|  automatically complete quest.&lt;br /&gt;
|-&lt;br /&gt;
|  mcd&lt;br /&gt;
|  number &lt;br /&gt;
|  set mind control device (or equivalent) to new value.&lt;br /&gt;
|-&lt;br /&gt;
|  mind-control&lt;br /&gt;
|  number &lt;br /&gt;
|  set mind control device (or equivalent) to new value.&lt;br /&gt;
|-&lt;br /&gt;
|  mix&lt;br /&gt;
|  [ item... ] &lt;br /&gt;
|  list creatables, or create specified items.&lt;br /&gt;
|-&lt;br /&gt;
|  modifies&lt;br /&gt;
|  filter &lt;br /&gt;
|  list all possible sources of modifiers matching filter.&lt;br /&gt;
|-&lt;br /&gt;
|  modref&lt;br /&gt;
|  [object] &lt;br /&gt;
|  list all modifiers, show values for player [and object].&lt;br /&gt;
|-&lt;br /&gt;
|  modtrace&lt;br /&gt;
|  filter &lt;br /&gt;
|  list everything that adds to modifiers matching filter.&lt;br /&gt;
|-&lt;br /&gt;
|  moleref&lt;br /&gt;
|  &lt;br /&gt;
|  Path of the Mole spoilers.&lt;br /&gt;
|-&lt;br /&gt;
|  monsters&lt;br /&gt;
|  location &lt;br /&gt;
|  show combat details for the specified area.&lt;br /&gt;
|-&lt;br /&gt;
|  mood*&lt;br /&gt;
|  clear | autofill | execute | repeat [numTimes] | moodName [numTimes] &lt;br /&gt;
|  mood management.&lt;br /&gt;
|-&lt;br /&gt;
|  moon*&lt;br /&gt;
|  [param] &lt;br /&gt;
|  list indicated type of data, possibly filtered by param.&lt;br /&gt;
|-&lt;br /&gt;
|  mpitems&lt;br /&gt;
|  &lt;br /&gt;
|  counts MP restoratives in inventory.&lt;br /&gt;
|-&lt;br /&gt;
|  namespace&lt;br /&gt;
|  [filter] &lt;br /&gt;
|  list namespace scripts and the functions they define.&lt;br /&gt;
|-&lt;br /&gt;
|  nemesis&lt;br /&gt;
|  &lt;br /&gt;
|  automatically complete quest.&lt;br /&gt;
|-&lt;br /&gt;
|  nuns&lt;br /&gt;
|  [mp] &lt;br /&gt;
|  visit the Nunnery for restoration [but only if MP is restored].&lt;br /&gt;
|-&lt;br /&gt;
|  objective*&lt;br /&gt;
|  clear | check | add condition | set condition &lt;br /&gt;
|  modify your adventuring goals.&lt;br /&gt;
|-&lt;br /&gt;
|  olfact*&lt;br /&gt;
|  ( none | monster name | [item] list | goals ) [abort] &lt;br /&gt;
|  tag next monster [that drops all items in list, or your goals].&lt;br /&gt;
|-&lt;br /&gt;
|  opt*&lt;br /&gt;
|  &lt;br /&gt;
|  switch to tab or open window&lt;br /&gt;
|-&lt;br /&gt;
|  outfit&lt;br /&gt;
|  [list filter] | save name | checkpoint | name &lt;br /&gt;
|  list, save, restore, or change outfits.&lt;br /&gt;
|-&lt;br /&gt;
|  overdrink[?]&lt;br /&gt;
|  [either] item [, item]... &lt;br /&gt;
|  use/consume items&lt;br /&gt;
|-&lt;br /&gt;
|  pause&lt;br /&gt;
|  [seconds] &lt;br /&gt;
|  pause script execution (default 1 second).&lt;br /&gt;
|-&lt;br /&gt;
|  ply&lt;br /&gt;
|  [ item... ] &lt;br /&gt;
|  list creatables, or create specified items.&lt;br /&gt;
|-&lt;br /&gt;
|  print&lt;br /&gt;
|  timestamp | text &lt;br /&gt;
|  include timestamp or text in the session log.&lt;br /&gt;
|-&lt;br /&gt;
|  priphea&lt;br /&gt;
|  &lt;br /&gt;
|  launch KoLmafia GUI.&lt;br /&gt;
|-&lt;br /&gt;
|  pull&lt;br /&gt;
|  outfit name | item [, item]... &lt;br /&gt;
|  pull items from Hagnk&#039;s storage.&lt;br /&gt;
|-&lt;br /&gt;
|  pulverize&lt;br /&gt;
|  item [, item]... &lt;br /&gt;
|  pulverize specified items&lt;br /&gt;
|-&lt;br /&gt;
|  putty&lt;br /&gt;
|  ( none | monster name | [item] list | goals ) [abort] &lt;br /&gt;
|  tag next monster [that drops all items in list, or your goals].&lt;br /&gt;
|-&lt;br /&gt;
|  pvp&lt;br /&gt;
|  [ target [, target]... ] &lt;br /&gt;
|  PvP for dignity or flowers&lt;br /&gt;
|-&lt;br /&gt;
|  pvplog*&lt;br /&gt;
|  &lt;br /&gt;
|  summarize PvP results.&lt;br /&gt;
|-&lt;br /&gt;
|  quark[?]&lt;br /&gt;
|  [itemList...] &lt;br /&gt;
|  gain MP by pasting unstable quark with best item from itemList (or your junk list).&lt;br /&gt;
|-&lt;br /&gt;
|  quit&lt;br /&gt;
|  &lt;br /&gt;
|  logout and exit KoLmafia.&lt;br /&gt;
|-&lt;br /&gt;
|  radio&lt;br /&gt;
|  &lt;br /&gt;
|  switch to tab or open window&lt;br /&gt;
|-&lt;br /&gt;
|  raffle&lt;br /&gt;
|  ticketsToBuy [ inventory | storage ] &lt;br /&gt;
|  buy raffle tickets&lt;br /&gt;
|-&lt;br /&gt;
|  recover*&lt;br /&gt;
|  hp | health | mp | mana | both &lt;br /&gt;
|  attempt to regain some HP or MP.&lt;br /&gt;
|-&lt;br /&gt;
|  refresh&lt;br /&gt;
|  all | status | equip | inv | storage | familiar | stickers &lt;br /&gt;
|  resynchronize with KoL.&lt;br /&gt;
|-&lt;br /&gt;
|  relay&lt;br /&gt;
|  &lt;br /&gt;
|  open the relay browser.&lt;br /&gt;
|-&lt;br /&gt;
|  remedy[?]&lt;br /&gt;
|  effect [, effect]... &lt;br /&gt;
|  remove effects using appropriate means.&lt;br /&gt;
|-&lt;br /&gt;
|  remove&lt;br /&gt;
|  slot | name &lt;br /&gt;
|  remove equipment in slot, or that matches name&lt;br /&gt;
|-&lt;br /&gt;
|  repeat&lt;br /&gt;
|  [number] &lt;br /&gt;
|  repeat previous line [number times].&lt;br /&gt;
|-&lt;br /&gt;
|  reprice&lt;br /&gt;
|  &lt;br /&gt;
|  price all max-priced items at or below current Mall minimum price.&lt;br /&gt;
|-&lt;br /&gt;
|  restaurant[?]&lt;br /&gt;
|  [ daily special | item ] &lt;br /&gt;
|  show daily special [or consume it or other restaurant item].&lt;br /&gt;
|-&lt;br /&gt;
|  restore*&lt;br /&gt;
|  hp | health | mp | mana | both &lt;br /&gt;
|  attempt to regain some HP or MP.&lt;br /&gt;
|-&lt;br /&gt;
|  retrieve&lt;br /&gt;
|  item &lt;br /&gt;
|  ensure that you have item, creating or buying it if needed.&lt;br /&gt;
|-&lt;br /&gt;
|  run&lt;br /&gt;
|  [numberx] filename | function [parameters] &lt;br /&gt;
|  check/run script.&lt;br /&gt;
|-&lt;br /&gt;
|  safe&lt;br /&gt;
|  location &lt;br /&gt;
|  show summary data for the specified area.&lt;br /&gt;
|-&lt;br /&gt;
|  save&lt;br /&gt;
|  as mood &lt;br /&gt;
|  add your current effects to the mood.&lt;br /&gt;
|-&lt;br /&gt;
|  searchmall&lt;br /&gt;
|  item [ with limit number ] &lt;br /&gt;
|  search the Mall.&lt;br /&gt;
|-&lt;br /&gt;
|  sell&lt;br /&gt;
|  item [, item]... &lt;br /&gt;
|  autosell items.&lt;br /&gt;
|-&lt;br /&gt;
|  send&lt;br /&gt;
|  item [, item]... to recipient [ | message ] &lt;br /&gt;
|  send kmail&lt;br /&gt;
|-&lt;br /&gt;
|  session&lt;br /&gt;
|  [param] &lt;br /&gt;
|  list indicated type of data, possibly filtered by param.&lt;br /&gt;
|-&lt;br /&gt;
|  set&lt;br /&gt;
|  preference [ = value ] &lt;br /&gt;
|  show/change preference settings&lt;br /&gt;
|-&lt;br /&gt;
|  shrug[?]&lt;br /&gt;
|  effect [, effect]... &lt;br /&gt;
|  remove effects using appropriate means.&lt;br /&gt;
|-&lt;br /&gt;
|  skill[?]&lt;br /&gt;
|  [ [count] skill [on player] ] &lt;br /&gt;
|  list spells, or use one.&lt;br /&gt;
|-&lt;br /&gt;
|  skills&lt;br /&gt;
|  [param] &lt;br /&gt;
|  list indicated type of data, possibly filtered by param.&lt;br /&gt;
|-&lt;br /&gt;
|  sleep&lt;br /&gt;
|  number &lt;br /&gt;
|  rest on your clan sofa for number turns.&lt;br /&gt;
|-&lt;br /&gt;
|  slimeling[?]&lt;br /&gt;
|  [either] item [, item]... &lt;br /&gt;
|  use/consume items&lt;br /&gt;
|-&lt;br /&gt;
|  smash&lt;br /&gt;
|  item [, item]... &lt;br /&gt;
|  pulverize specified items&lt;br /&gt;
|-&lt;br /&gt;
|  smith&lt;br /&gt;
|  [ item... ] &lt;br /&gt;
|  list creatables, or create specified items.&lt;br /&gt;
|-&lt;br /&gt;
|  soak&lt;br /&gt;
|  &lt;br /&gt;
|  soak in your clan&#039;s hot tub&lt;br /&gt;
|-&lt;br /&gt;
|  sofa&lt;br /&gt;
|  number &lt;br /&gt;
|  rest on your clan sofa for number turns.&lt;br /&gt;
|-&lt;br /&gt;
|  spade&lt;br /&gt;
|  [prices URL] &lt;br /&gt;
|  submit automatically gathered data.&lt;br /&gt;
|-&lt;br /&gt;
|  speculate&lt;br /&gt;
|  MCD num | equip [slot] item | unequip slot | familiar type | up eff | uneffect eff | quiet ; [another;...] &lt;br /&gt;
|  predict modifiers.&lt;br /&gt;
|-&lt;br /&gt;
|  squeeze[?]&lt;br /&gt;
|  item &lt;br /&gt;
|  produce item by using another form, repeated as needed.&lt;br /&gt;
|-&lt;br /&gt;
|  start&lt;br /&gt;
|  [numberx] filename | function [parameters] &lt;br /&gt;
|  check/run script.&lt;br /&gt;
|-&lt;br /&gt;
|  stash&lt;br /&gt;
|  [put] item... | take item... &lt;br /&gt;
|  exchange items with clan stash&lt;br /&gt;
|-&lt;br /&gt;
|  status&lt;br /&gt;
|  [param] &lt;br /&gt;
|  list indicated type of data, possibly filtered by param.&lt;br /&gt;
|-&lt;br /&gt;
|  sticker*&lt;br /&gt;
|  sticker1 [, sticker2 [, sticker3]] &lt;br /&gt;
|  replace worn stickers.&lt;br /&gt;
|-&lt;br /&gt;
|  storage&lt;br /&gt;
|  [param] &lt;br /&gt;
|  list indicated type of data, possibly filtered by param.&lt;br /&gt;
|-&lt;br /&gt;
|  styx&lt;br /&gt;
|  muscle | mysticality | moxie &lt;br /&gt;
|  get daily Styx Pixie buff.&lt;br /&gt;
|-&lt;br /&gt;
|  summary&lt;br /&gt;
|  [param] &lt;br /&gt;
|  list indicated type of data, possibly filtered by param.&lt;br /&gt;
|-&lt;br /&gt;
|  summon&lt;br /&gt;
|  demonName | effect | location | number &lt;br /&gt;
|  use the Summoning Chamber.&lt;br /&gt;
|-&lt;br /&gt;
|  tavern&lt;br /&gt;
|  &lt;br /&gt;
|  automatically complete quest.&lt;br /&gt;
|-&lt;br /&gt;
|  telescope&lt;br /&gt;
|  [look] high | low &lt;br /&gt;
|  get daily buff, or Lair hints from your telescope.&lt;br /&gt;
|-&lt;br /&gt;
|  text&lt;br /&gt;
|  URL &lt;br /&gt;
|  show text results from visiting URL.&lt;br /&gt;
|-&lt;br /&gt;
|  tinker&lt;br /&gt;
|  [ item... ] &lt;br /&gt;
|  list creatables, or create specified items.&lt;br /&gt;
|-&lt;br /&gt;
|  tower&lt;br /&gt;
|  &lt;br /&gt;
|  automatically complete quest.&lt;br /&gt;
|-&lt;br /&gt;
|  train&lt;br /&gt;
|  base weight | buffed weight | turns number &lt;br /&gt;
|  train familiar.&lt;br /&gt;
|-&lt;br /&gt;
|  trigger*&lt;br /&gt;
|  clear | autofill | [type,] effect [, action] &lt;br /&gt;
|  edit current mood&lt;br /&gt;
|-&lt;br /&gt;
|  try&lt;br /&gt;
|  ; commands &lt;br /&gt;
|  do commands, and continue even if an error occurs.&lt;br /&gt;
|-&lt;br /&gt;
|  unalias&lt;br /&gt;
|  word &lt;br /&gt;
|  remove a CLI abbreviation.&lt;br /&gt;
|-&lt;br /&gt;
|  undercut&lt;br /&gt;
|  &lt;br /&gt;
|  price all max-priced items at or below current Mall minimum price.&lt;br /&gt;
|-&lt;br /&gt;
|  uneffect[?]&lt;br /&gt;
|  effect [, effect]... &lt;br /&gt;
|  remove effects using appropriate means.&lt;br /&gt;
|-&lt;br /&gt;
|  unequip&lt;br /&gt;
|  slot | name &lt;br /&gt;
|  remove equipment in slot, or that matches name&lt;br /&gt;
|-&lt;br /&gt;
|  untinker&lt;br /&gt;
|  [ item... ] &lt;br /&gt;
|  complete quest, or untinker items.&lt;br /&gt;
|-&lt;br /&gt;
|  up?&lt;br /&gt;
|  effect [, effect]... &lt;br /&gt;
|  extend duration of effects.&lt;br /&gt;
|-&lt;br /&gt;
|  update&lt;br /&gt;
|  data | clear | prices URL or filename &lt;br /&gt;
|  download most recent data files, or revert to built-in data.&lt;br /&gt;
|-&lt;br /&gt;
|  use[?]&lt;br /&gt;
|  [either] item [, item]... &lt;br /&gt;
|  use/consume items&lt;br /&gt;
|-&lt;br /&gt;
|  using&lt;br /&gt;
|  filename &lt;br /&gt;
|  add ASH script to namespace.&lt;br /&gt;
|-&lt;br /&gt;
|  validate&lt;br /&gt;
|  [numberx] filename | function [parameters] &lt;br /&gt;
|  check/run script.&lt;br /&gt;
|-&lt;br /&gt;
|  verify&lt;br /&gt;
|  [numberx] filename | function [parameters] &lt;br /&gt;
|  check/run script.&lt;br /&gt;
|-&lt;br /&gt;
|  version&lt;br /&gt;
|  &lt;br /&gt;
|  display KoLmafia version.&lt;br /&gt;
|-&lt;br /&gt;
|  wait&lt;br /&gt;
|  [seconds] &lt;br /&gt;
|  pause script execution (default 1 second).&lt;br /&gt;
|-&lt;br /&gt;
|  wear&lt;br /&gt;
|  [list filter] | [slot] item &lt;br /&gt;
|  show equipment, or equip item [in slot].&lt;br /&gt;
|-&lt;br /&gt;
|  whatif&lt;br /&gt;
|  MCD num | equip [slot] item | unequip slot | familiar type | up eff | uneffect eff | quiet ; [another;...] &lt;br /&gt;
|  predict modifiers.&lt;br /&gt;
|-&lt;br /&gt;
|  while&lt;br /&gt;
|  condition; commands &lt;br /&gt;
|  do commands repeatedly while condition is true.&lt;br /&gt;
|-&lt;br /&gt;
|  wield&lt;br /&gt;
|  [list filter] | [slot] item &lt;br /&gt;
|  show equipment, or equip item [in slot].&lt;br /&gt;
|-&lt;br /&gt;
|  wiki&lt;br /&gt;
|  searchText &lt;br /&gt;
|  perform search on KoL Wiki.&lt;br /&gt;
|-&lt;br /&gt;
|  win&lt;br /&gt;
|  game &lt;br /&gt;
|  I&#039;m as surprised as you! I didn&#039;t think it was possible.&lt;br /&gt;
|-&lt;br /&gt;
|  zap&lt;br /&gt;
|  item [, item]... &lt;br /&gt;
|  transform items with your wand.&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>HippoKing</name></author>
	</entry>
	<entry>
		<id>https://wiki.kolmafia.us/index.php?title=CLI_Reference&amp;diff=2913</id>
		<title>CLI Reference</title>
		<link rel="alternate" type="text/html" href="https://wiki.kolmafia.us/index.php?title=CLI_Reference&amp;diff=2913"/>
		<updated>2009-08-30T15:15:00Z</updated>

		<summary type="html">&lt;p&gt;HippoKing: added commands from parsing help, as yet unsorted.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The KoLmafia Graphical CLI is one of the most helpful features it has. This page is intended to provide information on the commands available.&lt;br /&gt;
&lt;br /&gt;
==Inventory Management==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!  Command&lt;br /&gt;
!  Arguments&lt;br /&gt;
!  Description&lt;br /&gt;
|-&lt;br /&gt;
|  acquire&lt;br /&gt;
|  item&lt;br /&gt;
|  Ensures you have argument item, making or buying when necessary.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Quests==&lt;br /&gt;
&lt;br /&gt;
==Market Management==&lt;br /&gt;
&lt;br /&gt;
==Mafia==&lt;br /&gt;
&lt;br /&gt;
==Other==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!  Command Name&lt;br /&gt;
!  Arguments&lt;br /&gt;
!  Description&lt;br /&gt;
|-&lt;br /&gt;
|  !&lt;br /&gt;
|  &lt;br /&gt;
|  list the Dungeons of Doom potions you&#039;ve identified.&lt;br /&gt;
|-&lt;br /&gt;
|  *.php*&lt;br /&gt;
|  &lt;br /&gt;
|  visit URL without showing results.&lt;br /&gt;
|-&lt;br /&gt;
|  *brewery*[?]&lt;br /&gt;
|  [ daily special | item ] &lt;br /&gt;
|  show daily special [or consume it or other restaurant item].&lt;br /&gt;
|-&lt;br /&gt;
|  *kitchen*[?]&lt;br /&gt;
|  item &lt;br /&gt;
|  consumes item at Hell&#039;s Kitchen, if available.&lt;br /&gt;
|-&lt;br /&gt;
|  *mirror*&lt;br /&gt;
|  [filename] &lt;br /&gt;
|  stop [or start] logging to an additional file.&lt;br /&gt;
|-&lt;br /&gt;
|  &amp;lt;inline-ash-script&amp;gt;&lt;br /&gt;
|  &lt;br /&gt;
|  embed an ASH script in a CLI script.&lt;br /&gt;
|-&lt;br /&gt;
|  aa&lt;br /&gt;
|  skill &lt;br /&gt;
|  set default attack method.&lt;br /&gt;
|-&lt;br /&gt;
|  abort&lt;br /&gt;
|  [message] &lt;br /&gt;
|  stop current script or automated task.&lt;br /&gt;
|-&lt;br /&gt;
|  adv*[?]&lt;br /&gt;
|  last | [count] location &lt;br /&gt;
|  spend your turns.&lt;br /&gt;
|-&lt;br /&gt;
|  alias&lt;br /&gt;
|  [ word =&amp;gt; expansion ] &lt;br /&gt;
|  list or create CLI abbreviations.&lt;br /&gt;
|-&lt;br /&gt;
|  ash&lt;br /&gt;
|  statement &lt;br /&gt;
|  test a line of ASH code without having to edit a script.&lt;br /&gt;
|-&lt;br /&gt;
|  ashref&lt;br /&gt;
|  [filter] &lt;br /&gt;
|  summarize ASH built-in functions [matching filter].&lt;br /&gt;
|-&lt;br /&gt;
|  attack&lt;br /&gt;
|  [ target [, target]... ] &lt;br /&gt;
|  PvP for dignity or flowers&lt;br /&gt;
|-&lt;br /&gt;
|  autoattack&lt;br /&gt;
|  skill &lt;br /&gt;
|  set default attack method.&lt;br /&gt;
|-&lt;br /&gt;
|  automall&lt;br /&gt;
|  &lt;br /&gt;
|  dump all profitable, non-memento items into the Mall.&lt;br /&gt;
|-&lt;br /&gt;
|  autosell&lt;br /&gt;
|  item [, item]... &lt;br /&gt;
|  autosell items.&lt;br /&gt;
|-&lt;br /&gt;
|  backtrace&lt;br /&gt;
|  text | off &lt;br /&gt;
|  dump stack when a gCLI message or page URL matches text (case-sensitive).&lt;br /&gt;
|-&lt;br /&gt;
|  bake&lt;br /&gt;
|  [ item... ] &lt;br /&gt;
|  list creatables, or create specified items.&lt;br /&gt;
|-&lt;br /&gt;
|  bang&lt;br /&gt;
|  &lt;br /&gt;
|  list the Dungeons of Doom potions you&#039;ve identified.&lt;br /&gt;
|-&lt;br /&gt;
|  basement&lt;br /&gt;
|  &lt;br /&gt;
|  check Fernswarthy&#039;s Basement status.&lt;br /&gt;
|-&lt;br /&gt;
|  breakfast&lt;br /&gt;
|  &lt;br /&gt;
|  perform start-of-day activities.&lt;br /&gt;
|-&lt;br /&gt;
|  budget&lt;br /&gt;
|  [number] &lt;br /&gt;
|  show [or set] the number of budgeted Hagnk&#039;s pulls.&lt;br /&gt;
|-&lt;br /&gt;
|  buffbot&lt;br /&gt;
|  number &lt;br /&gt;
|  run buffbot for number iterations.&lt;br /&gt;
|-&lt;br /&gt;
|  -num&lt;br /&gt;
|  &lt;br /&gt;
|  use excess/all/specified/all but specified MP for buff extension and summons.&lt;br /&gt;
|-&lt;br /&gt;
|  buy&lt;br /&gt;
|  item [@ limit] [, another]... &lt;br /&gt;
|  buy from NPC store or the Mall.&lt;br /&gt;
|-&lt;br /&gt;
|  call&lt;br /&gt;
|  [numberx] filename | function [parameters] &lt;br /&gt;
|  check/run script.&lt;br /&gt;
|-&lt;br /&gt;
|  camp*&lt;br /&gt;
|  rest | etc. [numTimes] &lt;br /&gt;
|  perform campground actions.&lt;br /&gt;
|-&lt;br /&gt;
|  cast[?]&lt;br /&gt;
|  [ [count] skill [on player] ] &lt;br /&gt;
|  list spells, or use one.&lt;br /&gt;
|-&lt;br /&gt;
|  ccs&lt;br /&gt;
|  [script] &lt;br /&gt;
|  show [or select] Custom Combat Script in use.&lt;br /&gt;
|-&lt;br /&gt;
|  cecho&lt;br /&gt;
|  color text &lt;br /&gt;
|  show text using color (specified by name or #RRGGBB).&lt;br /&gt;
|-&lt;br /&gt;
|  chamber&lt;br /&gt;
|  &lt;br /&gt;
|  automatically complete quest.&lt;br /&gt;
|-&lt;br /&gt;
|  chat&lt;br /&gt;
|  &lt;br /&gt;
|  switch to tab or open window&lt;br /&gt;
|-&lt;br /&gt;
|  [,[-]item]...&lt;br /&gt;
|  [; cmds] &lt;br /&gt;
|  compare prices, do cmds with &amp;quot;it&amp;quot; replaced with best.&lt;br /&gt;
|-&lt;br /&gt;
|  check&lt;br /&gt;
|  hp | health | mp | mana | both &lt;br /&gt;
|  attempt to regain some HP or MP.&lt;br /&gt;
|-&lt;br /&gt;
|  checkpoint&lt;br /&gt;
|  &lt;br /&gt;
|  remembers current equipment, use &amp;quot;outfit checkpoint&amp;quot; to restore.&lt;br /&gt;
|-&lt;br /&gt;
|  chew[?]&lt;br /&gt;
|  [either] item [, item]... &lt;br /&gt;
|  use/consume items&lt;br /&gt;
|-&lt;br /&gt;
|  clan&lt;br /&gt;
|  [ snapshot | stashlog ] &lt;br /&gt;
|  clan management.&lt;br /&gt;
|-&lt;br /&gt;
|  cleanup&lt;br /&gt;
|  &lt;br /&gt;
|  use, pulverize, or autosell your junk items.&lt;br /&gt;
|-&lt;br /&gt;
|  clear&lt;br /&gt;
|  &lt;br /&gt;
|  clear CLI window.&lt;br /&gt;
|-&lt;br /&gt;
|  closet&lt;br /&gt;
|  list filter | put item... | take item... &lt;br /&gt;
|  list or manipulate your closet.&lt;br /&gt;
|-&lt;br /&gt;
|  cls&lt;br /&gt;
|  &lt;br /&gt;
|  clear CLI window.&lt;br /&gt;
|-&lt;br /&gt;
|  colorecho&lt;br /&gt;
|  color text &lt;br /&gt;
|  show text using color (specified by name or #RRGGBB).&lt;br /&gt;
|-&lt;br /&gt;
|  condition*&lt;br /&gt;
|  clear | check | add condition | set condition &lt;br /&gt;
|  modify your adventuring goals.&lt;br /&gt;
|-&lt;br /&gt;
|  condref&lt;br /&gt;
|  &lt;br /&gt;
|  list conditions usable with if/while commands.&lt;br /&gt;
|-&lt;br /&gt;
|  council&lt;br /&gt;
|  &lt;br /&gt;
|  visit the Council to advance quest progress.&lt;br /&gt;
|-&lt;br /&gt;
|  counters&lt;br /&gt;
|  [ clear | add number [title img] ] &lt;br /&gt;
|  show, clear, or add to current turn counters.&lt;br /&gt;
|-&lt;br /&gt;
|  create&lt;br /&gt;
|  [ item... ] &lt;br /&gt;
|  list creatables, or create specified items.&lt;br /&gt;
|-&lt;br /&gt;
|  csend&lt;br /&gt;
|  item [, item]... to recipient [ | message ] &lt;br /&gt;
|  send kmail&lt;br /&gt;
|-&lt;br /&gt;
|  debug&lt;br /&gt;
|  [on] | off &lt;br /&gt;
|  start or stop logging of debugging data.&lt;br /&gt;
|-&lt;br /&gt;
|  demons&lt;br /&gt;
|  &lt;br /&gt;
|  list the demon names you know.&lt;br /&gt;
|-&lt;br /&gt;
|  disable&lt;br /&gt;
|  all | command [, command]... &lt;br /&gt;
|  allow/deny CLI commands.&lt;br /&gt;
|-&lt;br /&gt;
|  display&lt;br /&gt;
|  [filter] | put item... | take item... &lt;br /&gt;
|  list or manipulate your display case.&lt;br /&gt;
|-&lt;br /&gt;
|  donate&lt;br /&gt;
|  boris | mus | jarl | mys | pete | mox amount &lt;br /&gt;
|  donate in Hall of Legends.&lt;br /&gt;
|-&lt;br /&gt;
|  drink[?]&lt;br /&gt;
|  [either] item [, item]... &lt;br /&gt;
|  use/consume items&lt;br /&gt;
|-&lt;br /&gt;
|  dusty&lt;br /&gt;
|  &lt;br /&gt;
|  list the dusty bottles of wine you&#039;ve identified.&lt;br /&gt;
|-&lt;br /&gt;
|  eat[?]&lt;br /&gt;
|  [either] item [, item]... &lt;br /&gt;
|  use/consume items&lt;br /&gt;
|-&lt;br /&gt;
|  echo&lt;br /&gt;
|  timestamp | text &lt;br /&gt;
|  include timestamp or text in the session log.&lt;br /&gt;
|-&lt;br /&gt;
|  effects&lt;br /&gt;
|  [param] &lt;br /&gt;
|  list indicated type of data, possibly filtered by param.&lt;br /&gt;
|-&lt;br /&gt;
|  else&lt;br /&gt;
|  ; commands &lt;br /&gt;
|  do commands if preceding if/while/try didn&#039;t execute.&lt;br /&gt;
|-&lt;br /&gt;
|  elseif&lt;br /&gt;
|  condition; commands &lt;br /&gt;
|  do if condition is true but preceding condition was false.&lt;br /&gt;
|-&lt;br /&gt;
|  enable&lt;br /&gt;
|  all | command [, command]... &lt;br /&gt;
|  allow/deny CLI commands.&lt;br /&gt;
|-&lt;br /&gt;
|  encounters&lt;br /&gt;
|  [param] &lt;br /&gt;
|  list indicated type of data, possibly filtered by param.&lt;br /&gt;
|-&lt;br /&gt;
|  entity&lt;br /&gt;
|  &lt;br /&gt;
|  give details of your current pastamancer combat entity.&lt;br /&gt;
|-&lt;br /&gt;
|  entryway&lt;br /&gt;
|  [clover] &lt;br /&gt;
|  automatically complete quest [using a clover].&lt;br /&gt;
|-&lt;br /&gt;
|  equip&lt;br /&gt;
|  [list filter] | [slot] item &lt;br /&gt;
|  show equipment, or equip item [in slot].&lt;br /&gt;
|-&lt;br /&gt;
|  events&lt;br /&gt;
|  [clear] &lt;br /&gt;
|  clear or show recent events.&lt;br /&gt;
|-&lt;br /&gt;
|  exec*&lt;br /&gt;
|  [numberx] filename | function [parameters] &lt;br /&gt;
|  check/run script.&lt;br /&gt;
|-&lt;br /&gt;
|  exit&lt;br /&gt;
|  &lt;br /&gt;
|  logout and exit KoLmafia.&lt;br /&gt;
|-&lt;br /&gt;
|  [,[-]item]...&lt;br /&gt;
|  [; cmds] &lt;br /&gt;
|  compare prices, do cmds with &amp;quot;it&amp;quot; replaced with best.&lt;br /&gt;
|-&lt;br /&gt;
|  factory&lt;br /&gt;
|  report digits &lt;br /&gt;
|  Given a string of 7 dwarven digits, report on factory.&lt;br /&gt;
|-&lt;br /&gt;
|  familiar[?]&lt;br /&gt;
|  [list filter] | lock | unlock | species | none &lt;br /&gt;
|  list or change familiar types&lt;br /&gt;
|-&lt;br /&gt;
|  field&lt;br /&gt;
|  [ plant square type | pick square | harvest ] &lt;br /&gt;
|  view or use your mushroom plot&lt;br /&gt;
|-&lt;br /&gt;
|  find&lt;br /&gt;
|  item &lt;br /&gt;
|  ensure that you have item, creating or buying it if needed.&lt;br /&gt;
|-&lt;br /&gt;
|  flowers&lt;br /&gt;
|  &lt;br /&gt;
|  commit random acts of PvP.&lt;br /&gt;
|-&lt;br /&gt;
|  fold[?]&lt;br /&gt;
|  item &lt;br /&gt;
|  produce item by using another form, repeated as needed.&lt;br /&gt;
|-&lt;br /&gt;
|  forum*&lt;br /&gt;
|  &lt;br /&gt;
|  visit the official KoL forums.&lt;br /&gt;
|-&lt;br /&gt;
|  friars&lt;br /&gt;
|  [blessing] food | familiar | booze &lt;br /&gt;
|  get daily blessing.&lt;br /&gt;
|-&lt;br /&gt;
|  galaktik(hp|mp)&lt;br /&gt;
|  [amount] &lt;br /&gt;
|  restore some or all hp or mp&lt;br /&gt;
|-&lt;br /&gt;
|  gc&lt;br /&gt;
|  &lt;br /&gt;
|  force Java garbage collection.&lt;br /&gt;
|-&lt;br /&gt;
|  gear&lt;br /&gt;
|  &lt;br /&gt;
|  switch to tab or open window&lt;br /&gt;
|-&lt;br /&gt;
|  get&lt;br /&gt;
|  preference [ = value ] &lt;br /&gt;
|  show/change preference settings&lt;br /&gt;
|-&lt;br /&gt;
|  ghost[?]&lt;br /&gt;
|  [either] item [, item]... &lt;br /&gt;
|  use/consume items&lt;br /&gt;
|-&lt;br /&gt;
|  goal*&lt;br /&gt;
|  clear | check | add condition | set condition &lt;br /&gt;
|  modify your adventuring goals.&lt;br /&gt;
|-&lt;br /&gt;
|  gourd&lt;br /&gt;
|  &lt;br /&gt;
|  automatically complete quest.&lt;br /&gt;
|-&lt;br /&gt;
|  grandpa&lt;br /&gt;
|  query &lt;br /&gt;
|  Ask Grandpa about something.&lt;br /&gt;
|-&lt;br /&gt;
|  guardians&lt;br /&gt;
|  &lt;br /&gt;
|  automatically complete quest.&lt;br /&gt;
|-&lt;br /&gt;
|  guild&lt;br /&gt;
|  &lt;br /&gt;
|  automatically complete quest.&lt;br /&gt;
|-&lt;br /&gt;
|  hagnk&lt;br /&gt;
|  outfit name | item [, item]... &lt;br /&gt;
|  pull items from Hagnk&#039;s storage.&lt;br /&gt;
|-&lt;br /&gt;
|  hedge*&lt;br /&gt;
|  &lt;br /&gt;
|  automatically complete quest.&lt;br /&gt;
|-&lt;br /&gt;
|  help&lt;br /&gt;
|  [filter] &lt;br /&gt;
|  list CLI commands [that match filter].&lt;br /&gt;
|-&lt;br /&gt;
|  hermit[?]&lt;br /&gt;
|  [item] &lt;br /&gt;
|  get clover status, or trade for item.&lt;br /&gt;
|-&lt;br /&gt;
|  hiddencity&lt;br /&gt;
|  square [temple|altar item] &lt;br /&gt;
|  set Hidden City square [and perform an action there].&lt;br /&gt;
|-&lt;br /&gt;
|  hobo[?]&lt;br /&gt;
|  [either] item [, item]... &lt;br /&gt;
|  use/consume items&lt;br /&gt;
|-&lt;br /&gt;
|  holiday&lt;br /&gt;
|  HolidayName &lt;br /&gt;
|  enable special processing for unpredicted holidays.&lt;br /&gt;
|-&lt;br /&gt;
|  hottub&lt;br /&gt;
|  &lt;br /&gt;
|  soak in your clan&#039;s hot tub&lt;br /&gt;
|-&lt;br /&gt;
|  http:*&lt;br /&gt;
|  &lt;br /&gt;
|  visit URL without showing results.&lt;br /&gt;
|-&lt;br /&gt;
|  if&lt;br /&gt;
|  condition; commands &lt;br /&gt;
|  do commands once if condition is true (see condref).&lt;br /&gt;
|-&lt;br /&gt;
|  insults&lt;br /&gt;
|  &lt;br /&gt;
|  list the pirate insult comebacks you know.&lt;br /&gt;
|-&lt;br /&gt;
|  inv*&lt;br /&gt;
|  [param] &lt;br /&gt;
|  list indicated type of data, possibly filtered by param.&lt;br /&gt;
|-&lt;br /&gt;
|  item&lt;br /&gt;
|  &lt;br /&gt;
|  switch to tab or open window&lt;br /&gt;
|-&lt;br /&gt;
|  junk&lt;br /&gt;
|  &lt;br /&gt;
|  use, pulverize, or autosell your junk items.&lt;br /&gt;
|-&lt;br /&gt;
|  kmail&lt;br /&gt;
|  item [, item]... to recipient [ | message ] &lt;br /&gt;
|  send kmail&lt;br /&gt;
|-&lt;br /&gt;
|  later&lt;br /&gt;
|  commands &lt;br /&gt;
|  adds a button to do commands to the Daily Deeds list.&lt;br /&gt;
|-&lt;br /&gt;
|  leaflet&lt;br /&gt;
|  [nomagic] | location | command &lt;br /&gt;
|  complete leaflet quest [without using magic words].&lt;br /&gt;
|-&lt;br /&gt;
|  load&lt;br /&gt;
|  [numberx] filename | function [parameters] &lt;br /&gt;
|  check/run script.&lt;br /&gt;
|-&lt;br /&gt;
|  locations&lt;br /&gt;
|  [param] &lt;br /&gt;
|  list indicated type of data, possibly filtered by param.&lt;br /&gt;
|-&lt;br /&gt;
|  log&lt;br /&gt;
|  [status],[equipment],[effects],[etc.] &lt;br /&gt;
|  record data, &amp;quot;log snapshot&amp;quot; for all common data.&lt;br /&gt;
|-&lt;br /&gt;
|  logecho&lt;br /&gt;
|  timestamp | text &lt;br /&gt;
|  include timestamp or text in the session log only.&lt;br /&gt;
|-&lt;br /&gt;
|  login&lt;br /&gt;
|  username &lt;br /&gt;
|  logout then log back in as username.&lt;br /&gt;
|-&lt;br /&gt;
|  logout&lt;br /&gt;
|  &lt;br /&gt;
|  logout and return to login window.&lt;br /&gt;
|-&lt;br /&gt;
|  logprint&lt;br /&gt;
|  timestamp | text &lt;br /&gt;
|  include timestamp or text in the session log only.&lt;br /&gt;
|-&lt;br /&gt;
|  lookup&lt;br /&gt;
|  item | effect &lt;br /&gt;
|  go to appropriate KoL Wiki page.&lt;br /&gt;
|-&lt;br /&gt;
|  mail&lt;br /&gt;
|  &lt;br /&gt;
|  switch to tab or open window&lt;br /&gt;
|-&lt;br /&gt;
|  make&lt;br /&gt;
|  [ item... ] &lt;br /&gt;
|  list creatables, or create specified items.&lt;br /&gt;
|-&lt;br /&gt;
|  mallbuy&lt;br /&gt;
|  item [@ limit] [, another]... &lt;br /&gt;
|  buy from NPC store or the Mall.&lt;br /&gt;
|-&lt;br /&gt;
|  mallsell&lt;br /&gt;
|  item [[@] price [[limit] num]] [, another]... &lt;br /&gt;
|  sell in Mall.&lt;br /&gt;
|-&lt;br /&gt;
|  [+|-|weight]&lt;br /&gt;
|  keyword, ... &lt;br /&gt;
|  run the Modifier Maximizer.&lt;br /&gt;
|-&lt;br /&gt;
|  maze&lt;br /&gt;
|  &lt;br /&gt;
|  automatically complete quest.&lt;br /&gt;
|-&lt;br /&gt;
|  mcd&lt;br /&gt;
|  number &lt;br /&gt;
|  set mind control device (or equivalent) to new value.&lt;br /&gt;
|-&lt;br /&gt;
|  mind-control&lt;br /&gt;
|  number &lt;br /&gt;
|  set mind control device (or equivalent) to new value.&lt;br /&gt;
|-&lt;br /&gt;
|  mix&lt;br /&gt;
|  [ item... ] &lt;br /&gt;
|  list creatables, or create specified items.&lt;br /&gt;
|-&lt;br /&gt;
|  modifies&lt;br /&gt;
|  filter &lt;br /&gt;
|  list all possible sources of modifiers matching filter.&lt;br /&gt;
|-&lt;br /&gt;
|  modref&lt;br /&gt;
|  [object] &lt;br /&gt;
|  list all modifiers, show values for player [and object].&lt;br /&gt;
|-&lt;br /&gt;
|  modtrace&lt;br /&gt;
|  filter &lt;br /&gt;
|  list everything that adds to modifiers matching filter.&lt;br /&gt;
|-&lt;br /&gt;
|  moleref&lt;br /&gt;
|  &lt;br /&gt;
|  Path of the Mole spoilers.&lt;br /&gt;
|-&lt;br /&gt;
|  monsters&lt;br /&gt;
|  location &lt;br /&gt;
|  show combat details for the specified area.&lt;br /&gt;
|-&lt;br /&gt;
|  mood*&lt;br /&gt;
|  clear | autofill | execute | repeat [numTimes] | moodName [numTimes] &lt;br /&gt;
|  mood management.&lt;br /&gt;
|-&lt;br /&gt;
|  moon*&lt;br /&gt;
|  [param] &lt;br /&gt;
|  list indicated type of data, possibly filtered by param.&lt;br /&gt;
|-&lt;br /&gt;
|  mpitems&lt;br /&gt;
|  &lt;br /&gt;
|  counts MP restoratives in inventory.&lt;br /&gt;
|-&lt;br /&gt;
|  namespace&lt;br /&gt;
|  [filter] &lt;br /&gt;
|  list namespace scripts and the functions they define.&lt;br /&gt;
|-&lt;br /&gt;
|  nemesis&lt;br /&gt;
|  &lt;br /&gt;
|  automatically complete quest.&lt;br /&gt;
|-&lt;br /&gt;
|  nuns&lt;br /&gt;
|  [mp] &lt;br /&gt;
|  visit the Nunnery for restoration [but only if MP is restored].&lt;br /&gt;
|-&lt;br /&gt;
|  objective*&lt;br /&gt;
|  clear | check | add condition | set condition &lt;br /&gt;
|  modify your adventuring goals.&lt;br /&gt;
|-&lt;br /&gt;
|  olfact*&lt;br /&gt;
|  ( none | monster name | [item] list | goals ) [abort] &lt;br /&gt;
|  tag next monster [that drops all items in list, or your goals].&lt;br /&gt;
|-&lt;br /&gt;
|  opt*&lt;br /&gt;
|  &lt;br /&gt;
|  switch to tab or open window&lt;br /&gt;
|-&lt;br /&gt;
|  outfit&lt;br /&gt;
|  [list filter] | save name | checkpoint | name &lt;br /&gt;
|  list, save, restore, or change outfits.&lt;br /&gt;
|-&lt;br /&gt;
|  overdrink[?]&lt;br /&gt;
|  [either] item [, item]... &lt;br /&gt;
|  use/consume items&lt;br /&gt;
|-&lt;br /&gt;
|  pause&lt;br /&gt;
|  [seconds] &lt;br /&gt;
|  pause script execution (default 1 second).&lt;br /&gt;
|-&lt;br /&gt;
|  ply&lt;br /&gt;
|  [ item... ] &lt;br /&gt;
|  list creatables, or create specified items.&lt;br /&gt;
|-&lt;br /&gt;
|  print&lt;br /&gt;
|  timestamp | text &lt;br /&gt;
|  include timestamp or text in the session log.&lt;br /&gt;
|-&lt;br /&gt;
|  priphea&lt;br /&gt;
|  &lt;br /&gt;
|  launch KoLmafia GUI.&lt;br /&gt;
|-&lt;br /&gt;
|  pull&lt;br /&gt;
|  outfit name | item [, item]... &lt;br /&gt;
|  pull items from Hagnk&#039;s storage.&lt;br /&gt;
|-&lt;br /&gt;
|  pulverize&lt;br /&gt;
|  item [, item]... &lt;br /&gt;
|  pulverize specified items&lt;br /&gt;
|-&lt;br /&gt;
|  putty&lt;br /&gt;
|  ( none | monster name | [item] list | goals ) [abort] &lt;br /&gt;
|  tag next monster [that drops all items in list, or your goals].&lt;br /&gt;
|-&lt;br /&gt;
|  pvp&lt;br /&gt;
|  [ target [, target]... ] &lt;br /&gt;
|  PvP for dignity or flowers&lt;br /&gt;
|-&lt;br /&gt;
|  pvplog*&lt;br /&gt;
|  &lt;br /&gt;
|  summarize PvP results.&lt;br /&gt;
|-&lt;br /&gt;
|  quark[?]&lt;br /&gt;
|  [itemList...] &lt;br /&gt;
|  gain MP by pasting unstable quark with best item from itemList (or your junk list).&lt;br /&gt;
|-&lt;br /&gt;
|  quit&lt;br /&gt;
|  &lt;br /&gt;
|  logout and exit KoLmafia.&lt;br /&gt;
|-&lt;br /&gt;
|  radio&lt;br /&gt;
|  &lt;br /&gt;
|  switch to tab or open window&lt;br /&gt;
|-&lt;br /&gt;
|  raffle&lt;br /&gt;
|  ticketsToBuy [ inventory | storage ] &lt;br /&gt;
|  buy raffle tickets&lt;br /&gt;
|-&lt;br /&gt;
|  recover*&lt;br /&gt;
|  hp | health | mp | mana | both &lt;br /&gt;
|  attempt to regain some HP or MP.&lt;br /&gt;
|-&lt;br /&gt;
|  refresh&lt;br /&gt;
|  all | status | equip | inv | storage | familiar | stickers &lt;br /&gt;
|  resynchronize with KoL.&lt;br /&gt;
|-&lt;br /&gt;
|  relay&lt;br /&gt;
|  &lt;br /&gt;
|  open the relay browser.&lt;br /&gt;
|-&lt;br /&gt;
|  remedy[?]&lt;br /&gt;
|  effect [, effect]... &lt;br /&gt;
|  remove effects using appropriate means.&lt;br /&gt;
|-&lt;br /&gt;
|  remove&lt;br /&gt;
|  slot | name &lt;br /&gt;
|  remove equipment in slot, or that matches name&lt;br /&gt;
|-&lt;br /&gt;
|  repeat&lt;br /&gt;
|  [number] &lt;br /&gt;
|  repeat previous line [number times].&lt;br /&gt;
|-&lt;br /&gt;
|  reprice&lt;br /&gt;
|  &lt;br /&gt;
|  price all max-priced items at or below current Mall minimum price.&lt;br /&gt;
|-&lt;br /&gt;
|  restaurant[?]&lt;br /&gt;
|  [ daily special | item ] &lt;br /&gt;
|  show daily special [or consume it or other restaurant item].&lt;br /&gt;
|-&lt;br /&gt;
|  restore*&lt;br /&gt;
|  hp | health | mp | mana | both &lt;br /&gt;
|  attempt to regain some HP or MP.&lt;br /&gt;
|-&lt;br /&gt;
|  retrieve&lt;br /&gt;
|  item &lt;br /&gt;
|  ensure that you have item, creating or buying it if needed.&lt;br /&gt;
|-&lt;br /&gt;
|  run&lt;br /&gt;
|  [numberx] filename | function [parameters] &lt;br /&gt;
|  check/run script.&lt;br /&gt;
|-&lt;br /&gt;
|  safe&lt;br /&gt;
|  location &lt;br /&gt;
|  show summary data for the specified area.&lt;br /&gt;
|-&lt;br /&gt;
|  save&lt;br /&gt;
|  as mood &lt;br /&gt;
|  add your current effects to the mood.&lt;br /&gt;
|-&lt;br /&gt;
|  searchmall&lt;br /&gt;
|  item [ with limit number ] &lt;br /&gt;
|  search the Mall.&lt;br /&gt;
|-&lt;br /&gt;
|  sell&lt;br /&gt;
|  item [, item]... &lt;br /&gt;
|  autosell items.&lt;br /&gt;
|-&lt;br /&gt;
|  send&lt;br /&gt;
|  item [, item]... to recipient [ | message ] &lt;br /&gt;
|  send kmail&lt;br /&gt;
|-&lt;br /&gt;
|  session&lt;br /&gt;
|  [param] &lt;br /&gt;
|  list indicated type of data, possibly filtered by param.&lt;br /&gt;
|-&lt;br /&gt;
|  set&lt;br /&gt;
|  preference [ = value ] &lt;br /&gt;
|  show/change preference settings&lt;br /&gt;
|-&lt;br /&gt;
|  shrug[?]&lt;br /&gt;
|  effect [, effect]... &lt;br /&gt;
|  remove effects using appropriate means.&lt;br /&gt;
|-&lt;br /&gt;
|  skill[?]&lt;br /&gt;
|  [ [count] skill [on player] ] &lt;br /&gt;
|  list spells, or use one.&lt;br /&gt;
|-&lt;br /&gt;
|  skills&lt;br /&gt;
|  [param] &lt;br /&gt;
|  list indicated type of data, possibly filtered by param.&lt;br /&gt;
|-&lt;br /&gt;
|  sleep&lt;br /&gt;
|  number &lt;br /&gt;
|  rest on your clan sofa for number turns.&lt;br /&gt;
|-&lt;br /&gt;
|  slimeling[?]&lt;br /&gt;
|  [either] item [, item]... &lt;br /&gt;
|  use/consume items&lt;br /&gt;
|-&lt;br /&gt;
|  smash&lt;br /&gt;
|  item [, item]... &lt;br /&gt;
|  pulverize specified items&lt;br /&gt;
|-&lt;br /&gt;
|  smith&lt;br /&gt;
|  [ item... ] &lt;br /&gt;
|  list creatables, or create specified items.&lt;br /&gt;
|-&lt;br /&gt;
|  soak&lt;br /&gt;
|  &lt;br /&gt;
|  soak in your clan&#039;s hot tub&lt;br /&gt;
|-&lt;br /&gt;
|  sofa&lt;br /&gt;
|  number &lt;br /&gt;
|  rest on your clan sofa for number turns.&lt;br /&gt;
|-&lt;br /&gt;
|  spade&lt;br /&gt;
|  [prices URL] &lt;br /&gt;
|  submit automatically gathered data.&lt;br /&gt;
|-&lt;br /&gt;
|  speculate&lt;br /&gt;
|  MCD num | equip [slot] item | unequip slot | familiar type | up eff | uneffect eff | quiet ; [another;...] &lt;br /&gt;
|  predict modifiers.&lt;br /&gt;
|-&lt;br /&gt;
|  squeeze[?]&lt;br /&gt;
|  item &lt;br /&gt;
|  produce item by using another form, repeated as needed.&lt;br /&gt;
|-&lt;br /&gt;
|  start&lt;br /&gt;
|  [numberx] filename | function [parameters] &lt;br /&gt;
|  check/run script.&lt;br /&gt;
|-&lt;br /&gt;
|  stash&lt;br /&gt;
|  [put] item... | take item... &lt;br /&gt;
|  exchange items with clan stash&lt;br /&gt;
|-&lt;br /&gt;
|  status&lt;br /&gt;
|  [param] &lt;br /&gt;
|  list indicated type of data, possibly filtered by param.&lt;br /&gt;
|-&lt;br /&gt;
|  sticker*&lt;br /&gt;
|  sticker1 [, sticker2 [, sticker3]] &lt;br /&gt;
|  replace worn stickers.&lt;br /&gt;
|-&lt;br /&gt;
|  storage&lt;br /&gt;
|  [param] &lt;br /&gt;
|  list indicated type of data, possibly filtered by param.&lt;br /&gt;
|-&lt;br /&gt;
|  styx&lt;br /&gt;
|  muscle | mysticality | moxie &lt;br /&gt;
|  get daily Styx Pixie buff.&lt;br /&gt;
|-&lt;br /&gt;
|  summary&lt;br /&gt;
|  [param] &lt;br /&gt;
|  list indicated type of data, possibly filtered by param.&lt;br /&gt;
|-&lt;br /&gt;
|  summon&lt;br /&gt;
|  demonName | effect | location | number &lt;br /&gt;
|  use the Summoning Chamber.&lt;br /&gt;
|-&lt;br /&gt;
|  tavern&lt;br /&gt;
|  &lt;br /&gt;
|  automatically complete quest.&lt;br /&gt;
|-&lt;br /&gt;
|  telescope&lt;br /&gt;
|  [look] high | low &lt;br /&gt;
|  get daily buff, or Lair hints from your telescope.&lt;br /&gt;
|-&lt;br /&gt;
|  text&lt;br /&gt;
|  URL &lt;br /&gt;
|  show text results from visiting URL.&lt;br /&gt;
|-&lt;br /&gt;
|  tinker&lt;br /&gt;
|  [ item... ] &lt;br /&gt;
|  list creatables, or create specified items.&lt;br /&gt;
|-&lt;br /&gt;
|  tower&lt;br /&gt;
|  &lt;br /&gt;
|  automatically complete quest.&lt;br /&gt;
|-&lt;br /&gt;
|  train&lt;br /&gt;
|  base weight | buffed weight | turns number &lt;br /&gt;
|  train familiar.&lt;br /&gt;
|-&lt;br /&gt;
|  trigger*&lt;br /&gt;
|  clear | autofill | [type,] effect [, action] &lt;br /&gt;
|  edit current mood&lt;br /&gt;
|-&lt;br /&gt;
|  try&lt;br /&gt;
|  ; commands &lt;br /&gt;
|  do commands, and continue even if an error occurs.&lt;br /&gt;
|-&lt;br /&gt;
|  unalias&lt;br /&gt;
|  word &lt;br /&gt;
|  remove a CLI abbreviation.&lt;br /&gt;
|-&lt;br /&gt;
|  undercut&lt;br /&gt;
|  &lt;br /&gt;
|  price all max-priced items at or below current Mall minimum price.&lt;br /&gt;
|-&lt;br /&gt;
|  uneffect[?]&lt;br /&gt;
|  effect [, effect]... &lt;br /&gt;
|  remove effects using appropriate means.&lt;br /&gt;
|-&lt;br /&gt;
|  unequip&lt;br /&gt;
|  slot | name &lt;br /&gt;
|  remove equipment in slot, or that matches name&lt;br /&gt;
|-&lt;br /&gt;
|  untinker&lt;br /&gt;
|  [ item... ] &lt;br /&gt;
|  complete quest, or untinker items.&lt;br /&gt;
|-&lt;br /&gt;
|  up?&lt;br /&gt;
|  effect [, effect]... &lt;br /&gt;
|  extend duration of effects.&lt;br /&gt;
|-&lt;br /&gt;
|  update&lt;br /&gt;
|  data | clear | prices URL or filename &lt;br /&gt;
|  download most recent data files, or revert to built-in data.&lt;br /&gt;
|-&lt;br /&gt;
|  use[?]&lt;br /&gt;
|  [either] item [, item]... &lt;br /&gt;
|  use/consume items&lt;br /&gt;
|-&lt;br /&gt;
|  using&lt;br /&gt;
|  filename &lt;br /&gt;
|  add ASH script to namespace.&lt;br /&gt;
|-&lt;br /&gt;
|  validate&lt;br /&gt;
|  [numberx] filename | function [parameters] &lt;br /&gt;
|  check/run script.&lt;br /&gt;
|-&lt;br /&gt;
|  verify&lt;br /&gt;
|  [numberx] filename | function [parameters] &lt;br /&gt;
|  check/run script.&lt;br /&gt;
|-&lt;br /&gt;
|  version&lt;br /&gt;
|  &lt;br /&gt;
|  display KoLmafia version.&lt;br /&gt;
|-&lt;br /&gt;
|  wait&lt;br /&gt;
|  [seconds] &lt;br /&gt;
|  pause script execution (default 1 second).&lt;br /&gt;
|-&lt;br /&gt;
|  wear&lt;br /&gt;
|  [list filter] | [slot] item &lt;br /&gt;
|  show equipment, or equip item [in slot].&lt;br /&gt;
|-&lt;br /&gt;
|  whatif&lt;br /&gt;
|  MCD num | equip [slot] item | unequip slot | familiar type | up eff | uneffect eff | quiet ; [another;...] &lt;br /&gt;
|  predict modifiers.&lt;br /&gt;
|-&lt;br /&gt;
|  while&lt;br /&gt;
|  condition; commands &lt;br /&gt;
|  do commands repeatedly while condition is true.&lt;br /&gt;
|-&lt;br /&gt;
|  wield&lt;br /&gt;
|  [list filter] | [slot] item &lt;br /&gt;
|  show equipment, or equip item [in slot].&lt;br /&gt;
|-&lt;br /&gt;
|  wiki&lt;br /&gt;
|  searchText &lt;br /&gt;
|  perform search on KoL Wiki.&lt;br /&gt;
|-&lt;br /&gt;
|  win&lt;br /&gt;
|  game &lt;br /&gt;
|  I&#039;m as surprised as you! I didn&#039;t think it was possible.&lt;br /&gt;
|-&lt;br /&gt;
|  zap&lt;br /&gt;
|  item [, item]... &lt;br /&gt;
|  transform items with your wand.&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>HippoKing</name></author>
	</entry>
	<entry>
		<id>https://wiki.kolmafia.us/index.php?title=CLI_Reference&amp;diff=2912</id>
		<title>CLI Reference</title>
		<link rel="alternate" type="text/html" href="https://wiki.kolmafia.us/index.php?title=CLI_Reference&amp;diff=2912"/>
		<updated>2009-08-30T14:34:01Z</updated>

		<summary type="html">&lt;p&gt;HippoKing: Created page with types and example command. Will expand later today.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The KoLmafia Graphical CLI is one of the most helpful features it has. This page is intended to provide information on the commands available.&lt;br /&gt;
&lt;br /&gt;
==Inventory Management==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!  Command&lt;br /&gt;
!  Arguments&lt;br /&gt;
!  Description&lt;br /&gt;
|-&lt;br /&gt;
|  acquire&lt;br /&gt;
|  item&lt;br /&gt;
|  Ensures you have argument item, making or buying when necessary.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Quests==&lt;br /&gt;
&lt;br /&gt;
==Market Management==&lt;br /&gt;
&lt;br /&gt;
==Other==&lt;/div&gt;</summary>
		<author><name>HippoKing</name></author>
	</entry>
	<entry>
		<id>https://wiki.kolmafia.us/index.php?title=User_talk:HippoKing/script&amp;diff=2876</id>
		<title>User talk:HippoKing/script</title>
		<link rel="alternate" type="text/html" href="https://wiki.kolmafia.us/index.php?title=User_talk:HippoKing/script&amp;diff=2876"/>
		<updated>2009-08-29T20:58:27Z</updated>

		<summary type="html">&lt;p&gt;HippoKing: Created page with &amp;#039;This is the perl script I used to generate the page, in case it needs updating.  Note that this needs to share a folder with the defaults.txt file from kolmafia, and you have to …&amp;#039;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This is the perl script I used to generate the page, in case it needs updating.&lt;br /&gt;
&lt;br /&gt;
Note that this needs to share a folder with the defaults.txt file from kolmafia, and you have to change the revision number manually. It was intended to be used, not to be published, so it works but it&#039;s not pretty in the slightest.&lt;br /&gt;
&lt;br /&gt;
Output overwrites wiki.txt.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;#!perl&lt;br /&gt;
use strict;&lt;br /&gt;
use warnings;&lt;br /&gt;
&lt;br /&gt;
my $revision = 7582;&lt;br /&gt;
&lt;br /&gt;
open INFILE, &#039;&amp;lt; defaults.txt&#039; or die $!;&lt;br /&gt;
open OUTFILE, &#039;&amp;gt; wiki.txt&#039; or die $!;&lt;br /&gt;
&lt;br /&gt;
my @global;&lt;br /&gt;
my @user;&lt;br /&gt;
&lt;br /&gt;
while(&amp;lt;INFILE&amp;gt;) {&lt;br /&gt;
	chomp;&lt;br /&gt;
	my @line = split /\t/;&lt;br /&gt;
	if (exists($line[0])) {&lt;br /&gt;
		if ($line[0] eq &amp;quot;global&amp;quot;) {&lt;br /&gt;
			shift @line;&lt;br /&gt;
			push @global,\@line;&lt;br /&gt;
		}&lt;br /&gt;
		if ($line[0] eq &amp;quot;user&amp;quot;) {&lt;br /&gt;
			shift @line;&lt;br /&gt;
			push @user,\@line;&lt;br /&gt;
		}&lt;br /&gt;
	}&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
print OUTFILE (&amp;quot;This is a list of all the Property variables included in KoLmafia. It was automatically generated from r&amp;quot;,$revision);&lt;br /&gt;
# global variables&lt;br /&gt;
&lt;br /&gt;
print OUTFILE (&lt;br /&gt;
	&amp;quot;\n==Global Variables==\n&amp;quot;,&lt;br /&gt;
	&#039;{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&#039;,&lt;br /&gt;
	&amp;quot;\n|-\n!  Variable Name\n!  Default Value\n!  Notes\n&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
foreach my $line (@global) {&lt;br /&gt;
	print OUTFILE (&#039;|-&#039;,&amp;quot;\n&amp;quot;);&lt;br /&gt;
	&lt;br /&gt;
	for (my $i = 0; $i&amp;lt;3;$i++) {&lt;br /&gt;
		if (defined(@$line[$i])) {&lt;br /&gt;
			print OUTFILE (&#039;|  &#039;,@$line[$i],&amp;quot;\n&amp;quot;);&lt;br /&gt;
		}&lt;br /&gt;
		else {&lt;br /&gt;
			print OUTFILE (&#039;|  &#039;,&amp;quot;\n&amp;quot;);&lt;br /&gt;
		}&lt;br /&gt;
	}&lt;br /&gt;
	&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
print OUTFILE (&#039;|}&#039;,&amp;quot;\n&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
# user Variables&lt;br /&gt;
&lt;br /&gt;
print OUTFILE (&lt;br /&gt;
	&amp;quot;\n==Per-Account Variables==\n&amp;quot;,&lt;br /&gt;
	&#039;{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;1&amp;quot;&#039;,&lt;br /&gt;
	&amp;quot;\n|-\n!  Variable Name\n!  Default Value\n!  Notes\n&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
foreach my $line (@user) {&lt;br /&gt;
	print OUTFILE (&#039;|-&#039;,&amp;quot;\n&amp;quot;);&lt;br /&gt;
	&lt;br /&gt;
	for (my $i = 0; $i&amp;lt;3;$i++) {&lt;br /&gt;
		if (defined(@$line[$i])) {&lt;br /&gt;
			print OUTFILE (&#039;|  &#039;,@$line[$i],&amp;quot;\n&amp;quot;);&lt;br /&gt;
		}&lt;br /&gt;
		else {&lt;br /&gt;
			print OUTFILE (&#039;|  &#039;,&amp;quot;\n&amp;quot;);&lt;br /&gt;
		}&lt;br /&gt;
	}&lt;br /&gt;
	&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
print OUTFILE (&#039;|}&#039;,&amp;quot;\n&amp;quot;);&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>HippoKing</name></author>
	</entry>
	<entry>
		<id>https://wiki.kolmafia.us/index.php?title=KoLmafia_Properties&amp;diff=1230</id>
		<title>KoLmafia Properties</title>
		<link rel="alternate" type="text/html" href="https://wiki.kolmafia.us/index.php?title=KoLmafia_Properties&amp;diff=1230"/>
		<updated>2009-08-29T14:52:38Z</updated>

		<summary type="html">&lt;p&gt;HippoKing: /* Part 11 - KoLmafia Properties */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Part 11 - KoLmafia Properties ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;In addition to affecting gameplay directly through ASH functions and CLI commands, scripters also have the ability to control certain core behaviors of KoLmafia through direct modification of the preferences file.  In addition, scripters can also create variables that will survive across sessions.  &amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;To see all of the pre-defined variables that exist, look in the &amp;amp;#8220;settings&amp;amp;#8221; subfolder wherever you keep the KoLmafia executable and open up any of the prefs_&amp;lt;character name&amp;gt;.txt and GLOBAL_prefs.txt files named for your characters.  This guide will not attempt to describe all of the variables that are there: many are uninteresting from the player&amp;amp;#8217;s point of view and others are too unwieldy to be properly set at the moment.  Of those that are interesting and accessable, the functionality can be divided into three main sections:&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h3&amp;gt;Choice Adventures&amp;lt;/h3&amp;gt;&lt;br /&gt;
There is a large and ever-growing number of settings for choice adventures, all with the name &#039;&#039;&#039;choiceAdventureX&#039;&#039;&#039; (X is the number of the adventure). These settings control all of the non-combat adventures that give you a choice of outcomes.  In the GUI, you can view and set these options in the Choices tab of the Preferences window, but you can also read and write the values from ASH using [[get_property()]] and [[set_property()]].&lt;br /&gt;
&lt;br /&gt;
Each choiceAdventure is set to a number, which corresponds to which choice you want to make from the available options in KoL (or in the GUI, in the case that mafia provides more options than KoL).  According to Holatuwol ([http://kolmafia.us/index.php/topic,1155.0.html here]), the settings map to &amp;quot;X=pick the Xth Option&amp;quot; and &amp;quot;X+1=pick an item you don&#039;t have&amp;quot; (i.e., complete the outfit).&lt;br /&gt;
&lt;br /&gt;
For a complete (and very useful) list of choice adventures, consult [http://kol.coldfront.net/thekolwiki/index.php/Choice_Adventures_by_Number this page of the KoL Wiki].&lt;br /&gt;
&lt;br /&gt;
Optionally, you can figure out the correct numeric value by logging in to KoLmafia, using the Preferences Window to set the value to what you want, exiting KoLmafia, and then checking your character&amp;amp;#8217;s settings file (&#039;&#039;yourname&#039;&#039;_prefs.txt) to see the value that was set for the appropriate key.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h3&amp;gt;Other KoLmafia-based preferences&amp;lt;/h3&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;This is going to be a limited survey of the more interesting of the settings that you can control.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;b&amp;gt;battleAction&amp;lt;/b&amp;gt; - This specifies the strategy that you will use in battle.  The sorts of values that you might select here are &amp;amp;#8220;attack&amp;amp;#8221; for normal attacking, &amp;amp;#8220;custom&amp;amp;#8221; to use the Custom Combat Scripts, &amp;amp;#8220;item dictionary&amp;amp;#8221; when you&amp;amp;#8217;re adventuring in the Valley beyond Orc Chasm, or &amp;amp;#8220;skill thrust smack&amp;amp;#8221; to use TS during the entire battle.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;b&amp;gt;hpAutoRecovery&amp;lt;/b&amp;gt; - This is a float value that specifies the percentage of your HP at which the autohealer kicks in.  I haven&amp;amp;#8217;t tried it, but I think you&amp;amp;#8217;d be generally unhappy if you set it to something other than a multiple of 0.1.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&amp;lt;b&amp;gt;hpAutoRecoveryTarget&amp;lt;/b&amp;gt; - A companion to the above, this is the target that the autohealer will aspire to achieve.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;As before, feel free to peruse the .kcs file to see all of the values.  The names aren&amp;amp;#8217;t very subtle, so you should be able to guess what they&amp;amp;#8217;re all for.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;For a complete list, see [[List of KoLmafia Properties]].&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;h3&amp;gt;User-defined variables&amp;lt;/h3&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;In addition to setting the variables that KoLmafia predefines, you can also create any others to cover any information you wish.  As you do so, keep in mind that while you can clear a variable&amp;amp;#8217;s value to the null string, there is currently no way to delete a key (aside from editing the .txt file in the text processor of your choice and deleting the line that contains the key).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;/div&gt;</summary>
		<author><name>HippoKing</name></author>
	</entry>
</feed>