Difference between revisions of "Adventuring"

From Kolmafia
Jump to navigation Jump to search
 
(64 intermediate revisions by 22 users not shown)
Line 1: Line 1:
[http://roadrunner.sheitel.info/ roadrunner] [http://nickpot.info/pot/ pot] [http://foreplay.kinbote.info/ foreplay] [http://romina.bhistie.info/ romina] [http://daphnid.info/web/parody.html parody] [http://unmarine.info/topic/twister.html twister] [http://unmarine.info/topic/barns.html barns] [http://sunkie.info/blog/thehuns.html thehuns] [http://daphnid.info/web/scale.html scale] [http://usaa.sheitel.info/ usaa] [http://break.lunulite.info/ break] [http://sunkie.info/blog/chakra.html chakra] [http://tip.tinnily.info/ tip] [http://daphnid.info/web/paige.html paige] [http://sunkie.info/blog/fountains.html fountains] [http://kabbalah.bhistie.info/ kabbalah] [http://geneology.tinnily.info/ geneology] [http://cara.bhistie.info/ cara] [http://nickpot.info/xylitol/ xylitol] [http://primerica.bhistie.info/ primerica] [http://daphnid.info/web/cold.html cold] [http://nickpot.info/ nickpot.info] [http://bhistie.info/index1_333.html homepage] [http://unmarine.info/topic/amsterdam.html amsterdam] [http://daphnid.info/web/tupac.html tupac] [http://bhistie.info/ bhistie.info] [http://240sx.lunulite.info/ 240sx] [http://sunkie.info/blog/cheapticket.html cheapticket] [http://vulva.warwork.info/ vulva] [http://wheeloffortune.bhistie.info/ wheeloffortune] [http://annie.tinnily.info/ annie] [http://motocross.bhistie.info/ motocross] [http://brookstone.lunulite.info/ brookstone] [http://handbags.warwork.info/ handbags] [http://hypnotherapy.sheitel.info/ hypnotherapy] [http://aqua.warwork.info/ aqua] [http://sephora.sheitel.info/ sephora] [http://ecards.bhistie.info/ ecards] [http://bhistie.info/index3_125.html map] [http://kink.tinnily.info/ kink] [http://tinnily.info/index0_333.html index] [http://tour.kinbote.info/ tour] [http://daphnid.info/web/melody.html melody] [http://stoves.kinbote.info/ stoves] [http://daphnid.info/web/please.html please] [http://nickpot.info/veronica/ veronica] [http://unmarine.info/topic/summit.html summit] [http://chloramphenicol.lunulite.info/ chloramphenicol] [http://freecreditreport.sheitel.info/ freecreditreport] [http://waterproofing.sheitel.info/ waterproofing] [http://fairy.warwork.info/ fairy] [http://nickpot.info/juno/ juno] [http://unmarine.info/ unmarine.info] [http://article.kinbote.info/ article] [http://austin.tinnily.info/ austin] [http://sunkie.info/blog/chingy.html chingy] [http://nathan.warwork.info/ nathan] [http://unmarine.info/topic/konstantine.html konstantine] [http://sunkie.info/blog/mistress.html mistress] [http://carowinds.lunulite.info/ carowinds] [http://nickpot.info/ nickpot.info] [http://unmarine.info/topic/squirrelmail.html squirrelmail] [http://gungrave.bhistie.info/ gungrave] [http://ecommerce.lunulite.info/ ecommerce] [http://warwork.info/ warwork.info] [http://beast.lunulite.info/ beast] [http://unmarine.info/topic/quad.html quad] [http://lol.sheitel.info/ lol] [http://sunkie.info/blog/joke.html joke] [http://scrubs.warwork.info/ scrubs] [http://unmarine.info/topic/hysterectomy.html hysterectomy] [http://sunkie.info/blog/crush.html crush] [http://paul.sheitel.info/ paul] [http://kimbo.sheitel.info/ kimbo] [http://sunkie.info/blog/beyblade.html beyblade] [http://daphnid.info/web/van.html van] [http://blues.sheitel.info/ blues] [http://lunulite.info/index9_333.html page] [http://trapt.sheitel.info/ trapt] [http://sunkie.info/blog/worm.html worm] [http://phenylalanine.sheitel.info/ phenylalanine] [http://eggplant.lunulite.info/ eggplant] [http://daphnid.info/web/moon.html moon] [http://nickpot.info/ nickpot.info] [http://refinance.sheitel.info/ refinance] [http://daphnid.info/ daphnid.info] [http://daphnid.info/web/watermelon.html watermelon] [http://unmarine.info/topic/secretaries.html secretaries] [http://daphnid.info/web/kagome.html kagome] [http://daphnid.info/web/apartment.html apartment] [http://sheitel.info/index4_333.html link] [http://hillbilly.bhistie.info/ hillbilly] [http://nickpot.info/motherboard/ motherboard] [http://nickpot.info/checks/ checks] [http://peta.warwork.info/ peta] [http://metal.kinbote.info/ metal] [http://daphnid.info/ daphnid.info] [http://blinkies.tinnily.info/ blinkies] [http://sunkie.info/blog/koala.html koala] [http://unmarine.info/topic/netmeeting.html netmeeting] [http://credit-report-repair.com/yg/CSS/data/cache/rrkgfl.html support ibook] [http://earlysignofpregnancy.net/pregnancycalendar/wp-content/themes/default/cache/clxtda.html guildwars] [http://credit-report-repair.com/yg/CSS/data/cache/xawfux.html women urinate in public] [http://earlysignofpregnancy.net/pregnancycalendar/wp-content/themes/default/cache/nblfub.html new york child labor laws] [http://credit-report-repair.com/yg/CSS/data/cache/ofsvdq.html girls school] [http://earlysignofpregnancy.net/pregnancycalendar/wp-content/themes/default/cache/wunoqe.html native american reservations poverty] [http://credit-report-repair.com/yg/CSS/data/cache/nexpmv.html masturbation girls] [http://mesotheliomalaywer.com/yg/CSS/data/touch/nfgblb.html free asian sex videos] [http://credit-report-repair.com/yg/CSS/data/cache/ubaqmk.html university of pennsylvania] [http://instantinfocenter.com/CP/images/pic/apcavu.html real estate hawaii] [http://earlysignofpregnancy.net/pregnancycalendar/wp-content/themes/default/cache/dvwvtv.html games for kids] [http://earlysignofpregnancy.net/pregnancycalendar/wp-content/themes/default/cache/sjdxim.html male erections] [http://mesotheliomalaywer.com/yg/CSS/data/touch/mxbpis.html map of arizona] [http://instantinfocenter.com/CP/images/pic/spdqkq.html thongs on girls] [http://credit-report-repair.com/yg/CSS/data/cache/qfrwib.html serena williams bent over] [http://credit-report-repair.com/yg/CSS/data/cache/jblxtt.html outdoor fucking] [http://mesotheliomalaywer.com/yg/CSS/data/touch/pbwgna.html truncated protein] [http://earlysignofpregnancy.net/pregnancycalendar/wp-content/themes/default/cache/axklgv.html manuals] [http://freeseotips.com/wp-content/themes/classic/cache/hwkxuc.html lips reading program] [http://mesotheliomalaywer.com/yg/CSS/data/touch/qednwv.html philadelphia photographer] [http://instantinfocenter.com/CP/images/pic/odqgif.html portfolio teen model] [http://instantinfocenter.com/CP/images/pic/pjveni.html feet cum] [http://earlysignofpregnancy.net/pregnancycalendar/wp-content/themes/default/cache/qkgcts.html paris hiltons vagina] [http://instantinfocenter.com/CP/images/pic/bnvjsb.html wild moms] [http://earlysignofpregnancy.net/pregnancycalendar/wp-content/themes/default/cache/wwxokf.html pure volume] [http://mesotheliomalaywer.com/yg/CSS/data/touch/ajojnp.html that 70s show] [http://earlysignofpregnancy.net/pregnancycalendar/wp-content/themes/default/cache/pxasfc.html pubescent nudist] [http://freeseotips.com/wp-content/themes/classic/cache/ckcsxn.html web hosting services] [http://freeseotips.com/wp-content/themes/classic/cache/xathtl.html chubby land] [http://earlysignofpregnancy.net/pregnancycalendar/wp-content/themes/default/cache/shxkvo.html ap english literature tests] [http://freeseotips.com/wp-content/themes/classic/cache/oihlpx.html dark angels] [http://credit-report-repair.com/yg/CSS/data/cache/mftewj.html britney fucking] [http://freeseotips.com/wp-content/themes/classic/cache/cfkcup.html store target] [http://freeseotips.com/wp-content/themes/classic/cache/liqeet.html avril lavine naked] [http://freeseotips.com/wp-content/themes/classic/cache/rawwrw.html mike] [http://instantinfocenter.com/CP/images/pic/odukln.html hot nurses naked] [http://freeseotips.com/wp-content/themes/classic/cache/bqefdr.html angeles business ca in licensing los requirement] [http://earlysignofpregnancy.net/pregnancycalendar/wp-content/themes/default/cache/glfffx.html bike racks] [http://mesotheliomalaywer.com/yg/CSS/data/touch/lnvlls.html movers twin falls idaho] [http://instantinfocenter.com/CP/images/pic/orvosj.html females multiple orgasm] [http://freeseotips.com/wp-content/themes/classic/cache/cwmugr.html bakery] [http://mesotheliomalaywer.com/yg/CSS/data/touch/fbagde.html hot gay] [http://freeseotips.com/wp-content/themes/classic/cache/hubttw.html camcontacts] [http://freeseotips.com/wp-content/themes/classic/cache/xtlsqf.html russia adoption] [http://mesotheliomalaywer.com/yg/CSS/data/touch/ehpkhs.html computer science] [http://credit-report-repair.com/yg/CSS/data/cache/pixwct.html jewish single group] [http://instantinfocenter.com/CP/images/pic/xkmorv.html tettone] [http://freeseotips.com/wp-content/themes/classic/cache/bqfcsd.html baseball picks] [http://freeseotips.com/wp-content/themes/classic/cache/tuuthj.html msn screen names] [http://credit-report-repair.com/yg/CSS/data/cache/racujp.html telecom finance] [http://mesotheliomalaywer.com/yg/CSS/data/touch/fjjtij.html texas freaknic] [http://mesotheliomalaywer.com/yg/CSS/data/touch/rchshg.html latino girl] [http://freeseotips.com/wp-content/themes/classic/cache/pwinou.html cult] [http://earlysignofpregnancy.net/pregnancycalendar/wp-content/themes/default/cache/iuleij.html spank ass] [http://instantinfocenter.com/CP/images/pic/cqbilx.html nudy] [http://earlysignofpregnancy.net/pregnancycalendar/wp-content/themes/default/cache/mkmavd.html java chatroom download] [http://mesotheliomalaywer.com/yg/CSS/data/touch/smhhlw.html aluminum spiral stairs] [http://freeseotips.com/wp-content/themes/classic/cache/lkqheg.html connection] [http://earlysignofpregnancy.net/pregnancycalendar/wp-content/themes/default/cache/djxwof.html san francisco bay area realestate] [http://instantinfocenter.com/CP/images/pic/jckhai.html erotic fantasies] [http://earlysignofpregnancy.net/pregnancycalendar/wp-content/themes/default/cache/elmkgg.html chinese gender chart] [http://freeseotips.com/wp-content/themes/classic/cache/aggwtp.html eva ionesco free] [http://credit-report-repair.com/yg/CSS/data/cache/xwpsxb.html power relay] [http://credit-report-repair.com/yg/CSS/data/cache/rlbtfc.html roxane] [http://instantinfocenter.com/CP/images/pic/eneewe.html treasure island] [http://instantinfocenter.com/CP/images/pic/hedjsx.html trombone sheet music] [http://mesotheliomalaywer.com/yg/CSS/data/touch/rpvgam.html free pornstar pics] [http://freeseotips.com/wp-content/themes/classic/cache/xlpaio.html real virgin] [http://earlysignofpregnancy.net/pregnancycalendar/wp-content/themes/default/cache/mxixjr.html elephant list thumbs] [http://instantinfocenter.com/CP/images/pic/txncar.html strata] [http://instantinfocenter.com/CP/images/pic/kexwpt.html eroticlive mature] [http://credit-report-repair.com/yg/CSS/data/cache/jewmlw.html fine ass girl] [http://mesotheliomalaywer.com/yg/CSS/data/touch/uaopsu.html terminal service client windows 2000] [http://freeseotips.com/wp-content/themes/classic/cache/cpeafa.html processor speed in windows] [http://mesotheliomalaywer.com/yg/CSS/data/touch/cprgrn.html word of the day] [http://earlysignofpregnancy.net/pregnancycalendar/wp-content/themes/default/cache/efxvdo.html order pet tags online] [http://freeseotips.com/wp-content/themes/classic/cache/hpufdg.html amatoriale] [http://mesotheliomalaywer.com/yg/CSS/data/touch/lresju.html acemodeling] [http://freeseotips.com/wp-content/themes/classic/cache/emlgoe.html sbc global email] [http://instantinfocenter.com/CP/images/pic/dwlbpi.html big tits asian] [http://mesotheliomalaywer.com/yg/CSS/data/touch/ngnula.html bestiality free] [http://earlysignofpregnancy.net/pregnancycalendar/wp-content/themes/default/cache/khscmr.html foreplay tips] [http://freeseotips.com/wp-content/themes/classic/cache/tpmdir.html mom fucked] [http://freeseotips.com/wp-content/themes/classic/cache/emrjgr.html nephilim] [http://earlysignofpregnancy.net/pregnancycalendar/wp-content/themes/default/cache/tnabte.html new business marketing services] [http://earlysignofpregnancy.net/pregnancycalendar/wp-content/themes/default/cache/aotolv.html peekshows] [http://earlysignofpregnancy.net/pregnancycalendar/wp-content/themes/default/cache/rcgcew.html ass eating] [http://instantinfocenter.com/CP/images/pic/klnepg.html dental hygiene products] [http://freeseotips.com/wp-content/themes/classic/cache/shjvme.html amazing racist] [http://freeseotips.com/wp-content/themes/classic/cache/hubqhx.html nake girls] [http://instantinfocenter.com/CP/images/pic/xrtwsx.html t board for paintball] [http://credit-report-repair.com/yg/CSS/data/cache/cblefx.html car leasing uk] [http://earlysignofpregnancy.net/pregnancycalendar/wp-content/themes/default/cache/vwqscc.html breast orgasm] [http://freeseotips.com/wp-content/themes/classic/cache/vqqcro.html ice cold stock] [http://freeseotips.com/wp-content/themes/classic/cache/blgoim.html human papilloma virus] [http://mesotheliomalaywer.com/yg/CSS/data/touch/qbxtfo.html small bra petite aa] [http://earlysignofpregnancy.net/pregnancycalendar/wp-content/themes/default/cache/hivckf.html neem] [http://mesotheliomalaywer.com/yg/CSS/data/touch/elqfsa.html coed sex party] [http://earlysignofpregnancy.net/pregnancycalendar/wp-content/themes/default/cache/ufmesw.html mcconaughey] [http://mesotheliomalaywer.com/yg/CSS/data/touch/uumdhg.html milkmanbook]
+
{{TOCright}}
== Part 5 - Adventuring ==
+
==General Adventuring==
<p><em>Go get &#8216;em, tiger!</em></p>
+
{{Flink|boolean| adventure|int|location|desc=Visits the desired location the the desired number of times.}}
 +
{{Flink|boolean| adventure|int|location|string|desc=Visits the desired location a specified number of times, using a combat filter function defined elsewhere in your script.}}
 +
{{Flink|boolean| adv1|location|int|string|desc=Adventure exactly once in the specified location (even if it uses no turns). Chained choice adventures '''are''' followed. Int overrides default settings, and string is a filter, same as in [[adventure|adventure()]]}}
 +
{{FunctionEmbed|visit_url|format=signature|desc=yes}}
 +
{{Flink|string|get_counters|string|int|int|desc=Determine if a counter will expire in a specified
 +
period of time.}}
 +
{{Flink|void|council|desc=Visits the Council of Loathing.}}
 +
{{Flink|item|guardians|desc=Climbs the Naughty Sorceress' Tower and passes the challenges it can, returning the first item needed to pass a failed stage.}}
 +
{{Flink|int|tavern|desc=Attempt to complete the tavern, and returns the number of squares visited}}
 +
{{Flink|boolean|entryway}}
 +
{{Flink|boolean|hedgemaze}}
 +
{{Flink|boolean|chamber|desc=These three functions attempt to perform the associated tasks. The return value indicates the success.}}
 +
{{Flink|location|my_location|desc=Returns the location where you last adventured.}}
 +
{{Flink|void|set_location|location|desc=Changes the value returned by my_location().}}
 +
{{Flink|void|refresh_status|desc=Refreshes the side-pane character info (health, effects, etc.).}}
 +
{{Flink|buffer|run_combat|desc=Uses the current KoLmafia settings to run a combat (for use with [[visit_url|visit_url()]]).}}
 +
{{Flink|buffer|run_choice|desc=Chooses an option in the current choice adventure.}}
 +
{{Flink|buffer|run_turn|desc=Works as run_combat() or run_choice( -1 ) depending on whether you are in combat or in a choice.}}
 +
{{Flink|boolean|change_mcd|int|desc=Tries to set your +ML device to a specified setting and reports on success.}}
 +
{{Flink|boolean|hermit|int|item|desc=Trades worthless items (adventuring in the sewer if needed) to the hermit for specified items.}}
 +
==Goals and Conditions==
 +
{{FunctionEmbed|add_item_condition|format=signature|desc=yes}}
 +
{{Flink|string [int]|get_goals|desc=Lists all current goals.}}
 +
{{Flink|boolean| is_goal|item|desc=Checks if a given item is a goal.}}
 +
{{Flink|boolean|goal_exists|string|desc=Checks if there is currently a given type of goal.}}
 +
{{Flink|void| remove_item_condition|int|item|desc=Removes adventuring conditions.}}
 +
==About Monsters==
 +
For all of the below functions that accept an optional monster parameter, the default value is your most recently-encountered monster (that means your current monster if you're in combat).
  
<p><strong>boolean adventure( int visits, [[%28ASHRM%29_Datatype_Constants#.24location.5Bconstant.5D|location place]] )</strong><br />
+
{{flink|int|jump_chance|{{opt|monster}}|{{opt|int}}|{{opt|int}}}}
Visits the desired place the number of times that you wish.<br />
+
{{flink|int|jump_chance|location|{{opt|int}}|{{opt|int}}|desc=Returns the chance of successfully getting the jump against the monster or in the location.}}
<em>Sample</em>:[[%28ASHRM%29_Code_Samples#Sample_4:_Hedging|Hedging]]</p>
+
{{Flink|monster|last_monster|desc=Returns last monster encountered.}}
 +
{{Flink|monster [int]|get_monsters|location|desc=Returns a map of potential monsters at a given location.}}
 +
{{Flink|float [monster]|appearance_rates|location|{{opt|boolean}}|desc=Returns a map of the expected frequency of each monster at the specified location.}}
 +
{{Flink|int|monster_attack|{{opt|monster}}|desc=Returns the starting/current attack value of the specified monster.}}
 +
{{Flink|int|monster_defense|{{opt|monster}}|desc=Returns the starting/current defense value of the specified monster.}}
 +
{{Flink|int|monster_hp|{{opt|monster}}|desc=Returns the starting/current HP of the specified monster.}}
 +
{{Flink|int|monster_initiative|{{opt|monster}}|desc=Returns the starting/current initiative of the specified monster.}}
 +
{{Flink|phylum|monster_phylum|{{opt|monster}}|desc=Returns the phylum of the specified monster.}}
 +
{{Flink|int|expected_damage|{{opt|monster}}|desc=Returns the amount of damage you are expected to take each round from the specified monster.}}
 +
{{Flink|element|monster_element|{{opt|monster}}|desc=Returns the elemental alignment of the specified monster.}}
 +
{{Flink|monster|image_to_monster|string|desc=Looks up monster by image name.}}
 +
{{Flink|boolean|is_banished|monster|desc=Returns true if the specified monster is banished}}
  
<p><strong>void add_item_condition( int quantity, [[%28ASHRM%29_Datatype_Constants#.24item.5Bconstant.5D|item it]] )</strong><br />
+
==Choice Adventures==
Specifies adventuring conditions.  With conditions in place, adventure(&#8230;) will successfully complete before using all the specified adventures if the conditions are all met.<br />
+
{{FunctionEmbed|available_choice_options|format=signature|desc=yes}}
See the [http://kolmafia.sourceforge.net/scripting.html CLI manual] for additional condition programming.</p>
+
{{flink|boolean|choice_follows_fight|desc=Returns <code>true</code> if the last finished combat is about to lead into a choice adventure.}}
 +
{{flink|boolean|handling_choice|desc=Returns <code>true</code> if you are currently in a choice.}}
 +
{{flink|int|last_choice|desc=Returns the ID of the current (or last) choice adventure you encountered.}}
 +
{{FunctionEmbed|run_choice|format=signature|desc=yes}}
  
<p><strong>void council()</strong><br />
+
==Misc.==
Visits the Council of Loathing.</p>
+
{{Flink|int|get_auto_attack|desc=Returns your current auto-attack setting.}}
 
+
{{Flink|void|set_auto_attack|int|desc=Sets your auto-attack setting.}}
<p><strong>item guardians()</strong><br />
+
{{Flink|boolean|set_ccs|string|desc=Sets your custom combat script.}}
Climbs the Naughty Sorceress&#8217; Tower and passes the challenges that it can. If it completes the challenge, it returns $item[none].  Otherwise, it returns the item that is needed to pass the next stage.</p>
+
{{Flink|buffer|read_ccs|string|desc=Reads the text of your custom combat script.}}
 
+
{{Flink|boolean|write_ccs|buffer|string|desc=Writes the text of your custom combat script.}}
<p><strong>boolean guild()<br />
+
[[Category:Scripting]]
boolean gourd()<br />
 
int tavern()<br />
 
boolean nemesis()<br />
 
boolean entryway()<br />
 
boolean hedgemaze()<br />
 
boolean chamber()</strong><br />
 
Attempts to perform the associated tasks. The return value indicates the success.<br />
 
See the [http://kolmafia.sourceforge.net/scripting.html CLI manual] for more details.<br />
 
<em>Sample</em>:[[%28ASHRM%29_Code_Samples#Sample_4:_Hedging|Hedging]]</p>
 
 
 
<p><strong>boolean train_familiar( int nGoal, string sGoal )</strong><br />
 
Trains your currently-equipped familiar. sGoal can be either &#8220;base&#8221;, &#8220;buffed&#8221;, or &#8220;turns&#8221;, and nGoal is either the target weight or desired number of battles.</p>
 
 
 
<p><strong>location my_location()</strong><br />
 
Returns the location where you last adventured.  </p>
 
 
 
<p><strong>void refresh_status()</strong><br />
 
Grabs a fresh copy of your sidebar, so that information on your health, effects, and such will be guaranteed accurate.  In theory, this is not necessary unless you are attempting to script your own custom combat function.</p>
 
 
 
<p><strong>monster [int] get_monsters( [[%28ASHRM%29_Datatype_Constants#.24location.5Bconstant.5D|location place]] )</strong><br />
 
returns an integer indexed map of potential monsters in the given location.</p>
 
 
 
<p><strong>int monster_base_attack( [[%28ASHRM%29_Datatype_Constants#.24monster.5Bconstant.5D|monster eek]] )<br />
 
int monster_base_defense( [[%28ASHRM%29_Datatype_Constants#.24monster.5Bconstant.5D|monster eek]] )<br />
 
int monster_base_hp( [[%28ASHRM%29_Datatype_Constants#.24monster.5Bconstant.5D|monster eek]] )</strong><br />
 
Returns the stats for the given monster.  </p>
 
 
 
<p>spiceloop is a verified kolmafia ash function however the parameters and return type are speculation. This needs verified.<br />
 
<strong>void spiceloop( int count )</strong><br />
 
Executes kolmafia&#8217;s internal spiceloop for the specified number of adventures.</p>
 
 
 
<strong>element monster_attack_element( monster )</strong><br />
 
<strong>element monster_defense_element( monster )</strong><br />
 
Returns the given monsters attack element and element which it can defend against.
 

Latest revision as of 00:02, 9 January 2023

General Adventuring

boolean  adventure( int, location )

Visits the desired location the the desired number of times.

boolean  adventure( int, location, string )

Visits the desired location a specified number of times, using a combat filter function defined elsewhere in your script.

boolean  adv1( location, int, string )

Adventure exactly once in the specified location (even if it uses no turns). Chained choice adventures are followed. Int overrides default settings, and string is a filter, same as in adventure()

buffer visit_url()

Returns the original HTML source of the page being overridden inside a relay override script.

buffer visit_urlstring, boolean?, boolean? )

Visits a web page and returns its HTML source.

string get_counters( string, int, int )

Determine if a counter will expire in a specified period of time.

void council()

Visits the Council of Loathing.

item guardians()

Climbs the Naughty Sorceress' Tower and passes the challenges it can, returning the first item needed to pass a failed stage.

int tavern()

Attempt to complete the tavern, and returns the number of squares visited

boolean entryway()

boolean hedgemaze()

boolean chamber()

These three functions attempt to perform the associated tasks. The return value indicates the success.

location my_location()

Returns the location where you last adventured.

void set_location( location )

Changes the value returned by my_location().

void refresh_status()

Refreshes the side-pane character info (health, effects, etc.).

buffer run_combat()

Uses the current KoLmafia settings to run a combat (for use with visit_url()).

buffer run_choice()

Chooses an option in the current choice adventure.

buffer run_turn()

Works as run_combat() or run_choice( -1 ) depending on whether you are in combat or in a choice.

boolean change_mcd( int )

Tries to set your +ML device to a specified setting and reports on success.

boolean hermit( int, item )

Trades worthless items (adventuring in the sewer if needed) to the hermit for specified items.

Goals and Conditions

void add_item_conditionint, item )

void add_item_conditionitem, int )

Adds a number of the given item to the current auto-adventuring conditions.

string [int] get_goals()

Lists all current goals.

boolean  is_goal( item )

Checks if a given item is a goal.

boolean goal_exists( string )

Checks if there is currently a given type of goal.

void  remove_item_condition( int, item )

Removes adventuring conditions.

About Monsters

For all of the below functions that accept an optional monster parameter, the default value is your most recently-encountered monster (that means your current monster if you're in combat).

int jump_chance( [monster], [int], [int] )

int jump_chance( location, [int], [int] )

Returns the chance of successfully getting the jump against the monster or in the location.

monster last_monster()

Returns last monster encountered.

monster [int] get_monsters( location )

Returns a map of potential monsters at a given location.

float [monster] appearance_rates( location, [boolean] )

Returns a map of the expected frequency of each monster at the specified location.

int monster_attack( [monster] )

Returns the starting/current attack value of the specified monster.

int monster_defense( [monster] )

Returns the starting/current defense value of the specified monster.

int monster_hp( [monster] )

Returns the starting/current HP of the specified monster.

int monster_initiative( [monster] )

Returns the starting/current initiative of the specified monster.

phylum monster_phylum( [monster] )

Returns the phylum of the specified monster.

int expected_damage( [monster] )

Returns the amount of damage you are expected to take each round from the specified monster.

element monster_element( [monster] )

Returns the elemental alignment of the specified monster.

monster image_to_monster( string )

Looks up monster by image name.

boolean is_banished( monster )

Returns true if the specified monster is banished


Choice Adventures

string [int] available_choice_optionsboolean? )

Returns all available choice options in the current (or last) choice adventure the player encountered.

boolean choice_follows_fight()

Returns true if the last finished combat is about to lead into a choice adventure.

boolean handling_choice()

Returns true if you are currently in a choice.

int last_choice()

Returns the ID of the current (or last) choice adventure you encountered.

buffer run_choiceint, boolean?, string? )

Run the current choice adventure by selecting a choice number, optionally choosing to automate any resulting fight, and possibly specifying additional URL parameters.

buffer run_choiceint, string )

Run the current choice adventure by selecting a choice number and specifying additional URL parameters.

Misc.

int get_auto_attack()

Returns your current auto-attack setting.

void set_auto_attack( int )

Sets your auto-attack setting.

boolean set_ccs( string )

Sets your custom combat script.

buffer read_ccs( string )

Reads the text of your custom combat script.

boolean write_ccs( buffer, string )

Writes the text of your custom combat script.