Difference between revisions of "Adventuring"

From Kolmafia
Jump to navigation Jump to search
 
(59 intermediate revisions by 17 users not shown)
Line 1: Line 1:
[http://chopt.servemp3.com/scarlett-johansson.htm scarlett johansson sex] [http://perfum.servemp3.com/view/birthday-present.html birthday present] [http://amamon.servemp3.com/articles/karups.html karups] [http://marked.servemp3.com/web/ann-and-hope-store.html ann and hope store] [http://mortar.servemp3.com/content/teva.html teva] [http://seeds.servemp3.com/web/sea-animals.html sea animals] [http://safely.servemp3.com/articles/tan-thru-swimsuits.html tan thru swimsuits] [http://diaper.servemp3.com/night-sweats.htm night sweats] [http://seeds.servemp3.com/web/sisterhood-of.html sisterhood of the traveling pants] [http://mortar.servemp3.com/content/armed-forces.html armed forces vacation club] [http://marked.servemp3.com/web/hardcore-gangbang.html hardcore gangbang] [http://mortar.servemp3.com/content/phonemic-awareness.html phonemic awareness] [http://toledo.servemp3.com/articles/nikki-hilton.html nikki hilton] [http://seeds.servemp3.com/web/gay-photographers.html gay photographers] [http://seeds.servemp3.com/web/playmates-nude-gallery.html playmates nude gallery] [http://marked.servemp3.com/web/goku.html goku] [http://chopt.servemp3.com/map-of-louisiana.htm map of louisiana] [http://mortar.servemp3.com/content/hidden-camera.html hidden camera gallery] [http://mortar.servemp3.com/content/dealerships.html dealerships] [http://toledo.servemp3.com/articles/war-clan-names.html war clan names] [http://marked.servemp3.com/web/hiccups.html hiccups] [http://toledo.servemp3.com/articles/thong-upskirt.html thong upskirt] [http://seeds.servemp3.com/web/brittany-murphy.html brittany murphy galleries] [http://mortar.servemp3.com/content/rotton.html rotton] [http://prozak.servemp3.com/text/faux-finish-techniques.htm faux finish techniques] [http://amamon.servemp3.com/articles/chronicles-of-riddick.html chronicles of riddick] [http://seeds.servemp3.com/web/country-boy-can.html country boy can survive] [http://marked.servemp3.com/web/sports-books.html sports books] [http://perfum.servemp3.com/view/alternative.html alternative breast cancer therapy] [http://perfum.servemp3.com/view/at-t-cell-phone.html at t cell phone directory] [http://amamon.servemp3.com/articles/fairy-clipart.html fairy clipart] [http://expuls.servemp3.com/web/bolle.html bolle] [http://toledo.servemp3.com/articles/penis-sex.html penis sex] [http://toledo.servemp3.com/articles/chinese-girl.html chinese girl sex] [http://amamon.servemp3.com/articles/john-coltrane.html john coltrane] [http://safely.servemp3.com/articles/hentei.html hentei] [http://amamon.servemp3.com/articles/business-franchise.html business franchise] [http://toledo.servemp3.com/articles/foot-worship.html foot worship] [http://expuls.servemp3.com/web/cfnm-party.html cfnm party] [http://amamon.servemp3.com/articles/taki-hentai.html taki hentai] [http://chopt.servemp3.com/sodomy-laws.htm sodomy laws] [http://safely.servemp3.com/articles/drugged-girls.html drugged girls] [http://safely.servemp3.com/articles/retaking-a-levels.html retaking a levels] [http://perfum.servemp3.com/view/camping-food.html camping food] [http://mortar.servemp3.com/content/teaching-bible-facts.html teaching bible facts publications] [http://whiff.servemp3.com/library/boob-jobs.html boob jobs] [http://perfum.servemp3.com/view/natural-angels.html natural angels] [http://whiff.servemp3.com/library/medical-claim-processing.html medical claim processing software] [http://expuls.servemp3.com/web/fetish-pic-post.html fetish pic post] [http://amamon.servemp3.com/articles/free-mp3-downloads.html free mp3 downloads] [http://mortar.servemp3.com/content/our-lady-peace.html our lady peace] [http://expuls.servemp3.com/web/blonde-bombshell.html blonde bombshell] [http://mortar.servemp3.com/content/trek-bike.html trek bike] [http://marked.servemp3.com/web/namco-games-online.html namco games online] [http://whiff.servemp3.com/library/handballing.html handballing] [http://perfum.servemp3.com/view/ftvgirls.html ftvgirls] [http://seeds.servemp3.com/web/linzi-dawn-mckenzie.html linzi dawn mckenzie] [http://chopt.servemp3.com/ciara-goodies.htm ciara goodies] [http://whiff.servemp3.com/library/hyundai-elantra.html hyundai elantra] [http://diaper.servemp3.com/what-is-a-good.htm what is a good credit score] [http://safely.servemp3.com/articles/furnace-brazing.html furnace brazing] [http://safely.servemp3.com/articles/aloe-vera-skin-care.html aloe vera skin care] [http://marked.servemp3.com/web/motorola-blue.html motorola blue tooth headset manual] [http://safely.servemp3.com/articles/japanese-beetles.html japanese beetles] [http://toledo.servemp3.com/articles/anglo-american.html anglo american mining company] [http://whiff.servemp3.com/library/nude-preteen.html nude preteen model] [http://amamon.servemp3.com/articles/ambien-cheap.html ambien cheap] [http://marked.servemp3.com/web/flights-to-tenerife.html flights to tenerife] [http://expuls.servemp3.com/web/free-blogs.html free blogs] [http://toledo.servemp3.com/articles/cartoon-nudity.html cartoon nudity] [http://perfum.servemp3.com/view/lap-dancers.html lap dancers] [http://diaper.servemp3.com/brazilian-bikini.htm brazilian bikini] [http://mortar.servemp3.com/content/topless-volleyball.html topless volleyball] [http://chopt.servemp3.com/art-deco-decor.htm art deco decor home shopping] [http://seeds.servemp3.com/web/outdoor-summercamp.html outdoor summercamp] [http://whiff.servemp3.com/library/tattoo-galleries.html tattoo galleries] [http://toledo.servemp3.com/articles/loudspeaker-cabinets.html loudspeaker cabinets] [http://amamon.servemp3.com/articles/fucking-shemale.html fucking shemale] [http://marked.servemp3.com/web/booty-models.html booty models] [http://diaper.servemp3.com/amy-lee-galleries.htm amy lee galleries] [http://expuls.servemp3.com/web/garden-bridges.html garden bridges] [http://marked.servemp3.com/web/naked-woman.html naked woman] [http://seeds.servemp3.com/web/ricky.html ricky] [http://marked.servemp3.com/web/famous-penis.html famous penis] [http://mortar.servemp3.com/content/johnny-carson.html johnny carson] [http://amamon.servemp3.com/articles/unicorn.html unicorn] [http://diaper.servemp3.com/catalina-island.htm catalina island] [http://prozak.servemp3.com/text/unemployment-office.htm unemployment office in miami florida] [http://amamon.servemp3.com/articles/en-en-los-los.html en en los los montes valles] [http://mortar.servemp3.com/content/micro-bikinis.html micro bikinis model galleries] [http://marked.servemp3.com/web/boy-and-girl.html boy and girl] [http://mortar.servemp3.com/content/ask-the-doctor.html ask the doctor] [http://perfum.servemp3.com/view/muscle-girls-pump.html muscle girls pump] [http://whiff.servemp3.com/library/gay-male-sample.html gay male sample video clips] [http://toledo.servemp3.com/articles/pentium-4.html pentium 4] [http://toledo.servemp3.com/articles/girl-kissing.html girl kissing another girl] [http://prozak.servemp3.com/text/blaine-larsen.htm blaine larsen] [http://whiff.servemp3.com/library/growth-chart.html growth chart] [http://chopt.servemp3.com/cool-pictures.htm cool pictures] [http://prozak.servemp3.com/text/punk.htm punk]
+
{{TOCright}}
[http://notpurfect.com/guest/tmp/cache/owdpfi.html casino online] [http://www.terauto.com/phpmychat/chat/localization/czech/tmp/ibokrj.html mini cooper] [http://rsinfocon.com/forum/chat/localization/spanish/cache/eaiahj.html handbag louis vuitton] [http://nmhswh.com/bugzilla/temp/bxfpvh.html christineyoung] [http://www.webmeester.com/hhgchat/chat/localization/argentinian_spanish/cache/awhlae.html indian sex movie] [http://geekphilosopher.com/catalog/images/thumbs/tcrenx.html best cell phone prepaid service] [http://www.webmeester.com/hhgchat/chat/localization/argentinian_spanish/cache/khnfcx.html cellphone ringtones] [http://www.ashtraypunks.com/forum/templates/subSilver/images/lang_english/gif/waptbs.html att wireless] [http://iagsdc.net/test/main/tempimage/imaes/rwthlk.html godzilla monster] [http://baselkriterleri.com/sitebcx/_files/photogallery/photo/gtljdk.html cheap motorcycles] [http://baselkriterleri.com/sitebcx/_files/photogallery/photo/jqlaxl.html exterior doors] [http://www.ashtraypunks.com/forum/templates/subSilver/images/lang_english/gif/cftuus.html homemade porn video] [http://www.ashtraypunks.com/forum/templates/subSilver/images/lang_english/gif/usnoru.html rottweiler photos] [http://saskindekorasyon.com/sitebcx/_files/newspublish/tmp/ *3uuirek.html spotnail parts] [http://blazing.ws/catalog/images/gif/mioeju.html old pussy hairy] [http://mistressenya.com/ikonboard/ib311/Tools/HELP/cache/rkpbqu.html satellite tv] [http://mitcomputers.ca/bbs/templates/subSilver/images/lang_english/icons/ttssrc.html asian] [http://geekphilosopher.com/catalog/images/thumbs/xojfdk.html criminal records] [http://mitcomputers.ca/bbs/templates/subSilver/images/lang_english/icons/jspsdl.html vytorin] [http://notpurfect.com/guest/tmp/cache/aohpmt.html golf apparel] [http://www.webmeester.com/hhgchat/chat/localization/argentinian_spanish/cache/ergrqs.html motorhomes] [http://iagsdc.net/test/main/tempimage/imaes/nvhddx.html order ambien] [http://rsinfocon.com/forum/chat/localization/spanish/cache/wudasa.html red jumpsuit apparatus] [http://madisonfd.com/images/pics/small/wxqjgu.html espresso machine rating] [http://engelmania.com/ploggerb3/images/pics/bngieb.html buy alprazolam] [http://www.webmeester.com/hhgchat/chat/localization/argentinian_spanish/cache/uxtqus.html cute backgrounds] [http://baselkriterleri.com/sitebcx/_files/photogallery/photo/fwsefx.html us passports] [http://joshuapettigrew.com/Blog/wp-content/backup-4be0e/cache/qaptke.html hunting ontario] [http://rsinfocon.com/forum/chat/localization/spanish/cache/frlhih.html cheap fares] [http://www.ashtraypunks.com/forum/templates/subSilver/images/lang_english/gif/wjdwon.html free cartoon porn] [http://geekphilosopher.com/catalog/images/thumbs/icgftj.html for sale by owner] [http://www.webmeester.com/hhgchat/chat/localization/argentinian_spanish/cache/vpqfbc.html food for thyroid] [http://saskindekorasyon.com/sitebcx/_files/newspublish/tmp/ *3wxdfil.html poclain hydraulics] [http://www.ashtraypunks.com/forum/templates/subSilver/images/lang_english/gif/mxihht.html arbitrage] [http://saskindekorasyon.com/sitebcx/_files/newspublish/tmp/ *3lrgkoe.html wheel adapters] [http://rsinfocon.com/forum/chat/localization/spanish/cache/bxmida.html free phone number search] [http://iagsdc.net/test/main/tempimage/imaes/pphbeh.html mens watches] [http://derzulya.com/gizli/Themes/default/images/brazilian/baners/lpdibo.html apple] [http://geekphilosopher.com/catalog/images/thumbs/jqewil.html celebrex] [http://mitcomputers.ca/bbs/templates/subSilver/images/lang_english/icons/hqeqwa.html free adult pornography] [http://geekphilosopher.com/catalog/images/thumbs/ovtlku.html conveyors] [http://www.webmeester.com/hhgchat/chat/localization/argentinian_spanish/cache/rtmmvg.html kaspersky key] [http://substantiel.net/forum/tmp/cache/elgqwx.html home money making business opportunity] [http://www.terauto.com/phpmychat/chat/localization/czech/tmp/whnisq.html animation] [http://baselkriterleri.com/sitebcx/_files/photogallery/photo/oxtcap.html trampoline] [http://dubaisail.com/dm/downloads/fs47280760/cache/tsadft.html military mypay website] [http://www.terauto.com/phpmychat/chat/localization/czech/tmp/jvloit.html caljobs] [http://baselkriterleri.com/sitebcx/_files/photogallery/photo/sjwhuk.html my space background] [http://dubaisail.com/dm/downloads/fs47280760/cache/pmxohd.html invest] [http://iagsdc.net/test/main/tempimage/imaes/xaseco.html download winrar free] [http://www.ashtraypunks.com/forum/templates/subSilver/images/lang_english/gif/pufuxx.html lithium medication] [http://dubaisail.com/dm/downloads/fs47280760/cache/gnsgru.html globetrotter inn edinburgh] [http://dubaisail.com/dm/downloads/fs47280760/cache/hkdmnk.html monster cock] [http://notpurfect.com/guest/tmp/cache/xvvsug.html www witch com] [http://nmhswh.com/bugzilla/temp/uckxme.html washington mutual bank mortgage] [http://rsinfocon.com/forum/chat/localization/spanish/cache/vbrawf.html kershaw knives] [http://saskindekorasyon.com/sitebcx/_files/newspublish/tmp/ *3cdqoih.html free laptops] [http://geekphilosopher.com/catalog/images/thumbs/gsjkgg.html wheeloffortune com] [http://rsinfocon.com/forum/chat/localization/spanish/cache/cosfxb.html wood furniture] [http://mitcomputers.ca/bbs/templates/subSilver/images/lang_english/icons/kpxeil.html vasectomy reversal] [http://rsinfocon.com/forum/chat/localization/spanish/cache/dpqabk.html skateboarding videos] [http://www.webmeester.com/hhgchat/chat/localization/argentinian_spanish/cache/sboswg.html hair shampoo] [http://www.webmeester.com/hhgchat/chat/localization/argentinian_spanish/cache/xehjpj.html buick lucerne] [http://baselkriterleri.com/sitebcx/_files/photogallery/photo/pphrxw.html dorm room decorations] [http://madisonfd.com/images/pics/small/ppwtoe.html online texas holdem] [http://baselkriterleri.com/sitebcx/_files/photogallery/photo/kblmav.html typing tutor] [http://mistressenya.com/ikonboard/ib311/Tools/HELP/cache/jhsrwo.html college] [http://madisonfd.com/images/pics/small/ktpgpm.html weapon] [http://www.ashtraypunks.com/forum/templates/subSilver/images/lang_english/gif/gjjfto.html diverticulitis symptoms] [http://joshuapettigrew.com/Blog/wp-content/backup-4be0e/cache/skubau.html free interracial] [http://iagsdc.net/test/main/tempimage/imaes/efpkhd.html nissan motors] [http://baselkriterleri.com/sitebcx/_files/photogallery/photo/jubmsp.html maduras] [http://blazing.ws/catalog/images/gif/heppmc.html nicorette] [http://dubaisail.com/dm/downloads/fs47280760/cache/xxdbbn.html orgys] [http://mistressenya.com/ikonboard/ib311/Tools/HELP/cache/xllgjt.html xxx free passwords] [http://mistressenya.com/ikonboard/ib311/Tools/HELP/cache/jspmja.html academy sports] [http://baselkriterleri.com/sitebcx/_files/photogallery/photo/clvfps.html cingular ringtone] [http://dubaisail.com/dm/downloads/fs47280760/cache/gwpkoa.html cheap scrubs] [http://geekphilosopher.com/catalog/images/thumbs/jjkeeh.html used car] [http://www.zoemargo.com/phpbb2/images/smiles/icon/movdtk.html gardening] [http://geekphilosopher.com/catalog/images/thumbs/mfqbtp.html gastrointestinal tract] [http://engelmania.com/ploggerb3/images/pics/dthrhk.html job interview questions] [http://mistressenya.com/ikonboard/ib311/Tools/HELP/cache/tnghmk.html what is flexeril] [http://saskindekorasyon.com/sitebcx/_files/newspublish/tmp/ *3thkcag.html freesex video] [http://www.terauto.com/phpmychat/chat/localization/czech/tmp/grcqgs.html pioneer electronics] [http://geekphilosopher.com/catalog/images/thumbs/qruvln.html dress up girls] [http://www.zoemargo.com/phpbb2/images/smiles/icon/iofjar.html imesh] [http://engelmania.com/ploggerb3/images/pics/mdfbmd.html air canada ticket] [http://blazing.ws/catalog/images/gif/unekip.html hotel reservations] [http://blazing.ws/catalog/images/gif/calkrk.html sex toons] [http://geekphilosopher.com/catalog/images/thumbs/vxmchu.html consumer credit counseling service] [http://iagsdc.net/test/main/tempimage/imaes/cxggnc.html nebraska real estate agents] [http://engelmania.com/ploggerb3/images/pics/wwkkqm.html motorolla 730i] [http://madisonfd.com/images/pics/small/llnwuq.html communication problem in relationship] [http://joshuapettigrew.com/Blog/wp-content/backup-4be0e/cache/oxtgso.html actresses] [http://joshuapettigrew.com/Blog/wp-content/backup-4be0e/cache/rajhfe.html south park] [http://madisonfd.com/images/pics/small/txlorr.html adipex online] [http://iagsdc.net/test/main/tempimage/imaes/rpujqs.html kitchen knob] [http://joshuapettigrew.com/Blog/wp-content/backup-4be0e/cache/vkvmle.html cymbalta withdrawal] [http://mistressenya.com/ikonboard/ib311/Tools/HELP/cache/vxxjda.html apartments rental]
+
==General Adventuring==
== Part 5 - Adventuring ==
+
{{Flink|boolean| adventure|int|location|desc=Visits the desired location the the desired number of times.}}
<p><em>Go get &#8216;em, tiger!</em></p>
+
{{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.