Adventuring: Difference between revisions

From Kolmafia
Jump to navigation Jump to search
No edit summary
Ikzann (talk | contribs)
 
(68 intermediate revisions by 23 users not shown)
Line 1: Line 1:
[http://www.easypayinfo.com/subscribe/tmp/bnjckb.html woman wearing sock] [http://kom-pas.de/3xcms/config/hkatuploads/images/hknijo.html auction japan cars] [http://www.stillwaterhomes.com/listings/images/pic/coksfw.html eu delegation china] [http://kristinlyseggen.com/gallery/1documentaries/7travel/mounka.html los angeles department of water and power credit union] [http://www.plurpage.com/classifieds/cache/kldgie.html rc network delay] [http://www.salona-yachts.eu/misc/lenxlc.html police issue gun] [http://ndr.hu/rhodes/ccpbrv.html violent crime rate by state] [http://www.stillwaterhomes.com/listings/images/pic/nlmnhp.html peace on earth cartoon] [http://2001.c3.hu/mas/eafrlg.html swedish babes pictures] [http://www.easypayinfo.com/subscribe/tmp/hivdvk.html insane games. com] [http://mkatzenbach.de/Website_MK_alt/content/cache/dir/end001/asilia.html utah home foreclosures] [http://activeimage.c3.hu/css/btcjxn.html paper piece patterns] [http://www.olemissfans.com/chatpro/image/tawepu.html suicide machine lyric] [http://kom-pas.de/3xcms/config/hkatuploads/images/uvjqtd.html lock of love foundation] [http://troniny.ovh.org/gallery/layout/esuxbk.html mother angelica] [http://troniny.ovh.org/gallery/layout/xrxgmh.html nude female butt] [http://mkatzenbach.de/Website_MK_alt/content/cache/dir/end001/sjiejg.html wits end org] [http://www.lowell.edu/styles/old_style/css/alkxkw.html low carb vegetables] [http://www.systemsupport.und.edu/cache/avatars/emo/etrsbe.html northwestern university in evanston il] [http://2001.c3.hu/mas/hchxfl.html ring tree] [http://informer.siam.edu/themes/hm/cjbcow.html free hindi ringtones] [http://www.systemsupport.und.edu/cache/avatars/emo/eglttl.html ohio department of corrections] [http://www.housing.und.edu/reshalls/blog/wp-content/uploads/2007/04/img/achkcd.html free alltel ringtones] [http://www.plurpage.com/classifieds/cache/wfltcj.html touch me feel me] [http://aura.c3.hu/thumb/nlgcgu.html pelagic environment] [http://maps.my2gig.com/cache/hxsnxl.html soldier boys book notes] [http://kristinlyseggen.com/gallery/1documentaries/7travel/fhjlcf.html association of licensed practical nurses] [http://informer.siam.edu/themes/hm/bufnmt.html buy wellbutrin] [http://www.easypayinfo.com/subscribe/tmp/nxjfbq.html intrusion prevention appliance] [http://www.olemissfans.com/chatpro/image/bqhqca.html airline nationwide] [http://kom-pas.de/3xcms/config/hkatuploads/images/cksgjm.html motion to set aside dismissal] [http://2001.c3.hu/mas/xjmfmf.html asian room designs] [http://mkatzenbach.de/Website_MK_alt/content/cache/dir/end001/sqonbl.html national household survey on drug abuse] [http://troniny.ovh.org/gallery/layout/xsslsa.html safety officer courses] [http://www.olemissfans.com/chatpro/image/vkxcbq.html examples of compare and contrast essays] [http://www.easypayinfo.com/subscribe/tmp/gfbdjs.html online forums free] [http://www.olemissfans.com/chatpro/image/gofhpd.html american pyramid] [http://mkatzenbach.de/Website_MK_alt/content/cache/dir/end001/teirnl.html lysate buffer] [http://2001.c3.hu/mas/mpvbpc.html lodging in granada spain] [http://activeimage.c3.hu/css/bnusja.html root certificate authority installation] [http://troniny.ovh.org/gallery/layout/kdengh.html antique city furniture kansas] [http://www.stillwaterhomes.com/listings/images/pic/hbnxxc.html twenty years placebo video] [http://ndr.hu/rhodes/rjunsg.html usb pc lock] [http://www.housing.und.edu/reshalls/blog/wp-content/uploads/2007/04/img/dtbgla.html alltel ringtone] [http://2001.c3.hu/mas/ivpnru.html old chests lyrics] [http://2001.c3.hu/mas/odklql.html theatre jobs in ireland] [http://activeimage.c3.hu/css/ldvswl.html saute vegetables] [http://www.plurpage.com/classifieds/cache/snurwg.html richmond spa vancouver] [http://activeimage.c3.hu/css/urccxk.html moon right now] [http://www.farmelco.hu/test/css/cjejvv.html tp 2 lyrics] [http://www.systemsupport.und.edu/cache/avatars/emo/tkaugb.html nickelodian hotel in orlando] [http://aura.c3.hu/thumb/psnmre.html alice bruce cooper group michael] [http://kom-pas.de/3xcms/config/hkatuploads/images/qftvjo.html magic jumps] [http://www.olemissfans.com/chatpro/image/winbjj.html process piping and design] [http://www.salona-yachts.eu/misc/kfmfpw.html 5.1 sound card] [http://kom-pas.de/3xcms/config/hkatuploads/images/kxlknq.html os x fax software] [http://www.farmelco.hu/test/css/jsiesr.html origin of dollar sign] [http://www.easypayinfo.com/subscribe/tmp/lduoqd.html a physical exam] [http://www.plurpage.com/classifieds/cache/hsxaxj.html search havana] [http://www.stillwaterhomes.com/listings/images/pic/oxddoh.html manga read online] [http://2001.c3.hu/mas/nivrgh.html ping command line] [http://www.stillwaterhomes.com/listings/images/pic/xtcbqv.html investment banking courses india] [http://www.stillwaterhomes.com/listings/images/pic/cjturb.html 60 minutes stories] [http://www.housing.und.edu/reshalls/blog/wp-content/uploads/2007/04/img/xjtsme.html lorazepam] [http://troniny.ovh.org/gallery/layout/brcppp.html james bond girls images] [http://www.systemsupport.und.edu/cache/avatars/emo/cbjgob.html polyphonic ringtones] [http://www.plurpage.com/classifieds/cache/gtoull.html school girl uniform costume] [http://www.olemissfans.com/chatpro/image/tfkdei.html state governments india] [http://aura.c3.hu/thumb/fbnghu.html theguardian newspaper uk] [http://www.easypayinfo.com/subscribe/tmp/cvqclp.html preschool christmas party] [http://kristinlyseggen.com/gallery/1documentaries/7travel/asbjxl.html solos de guitarra] [http://kom-pas.de/3xcms/config/hkatuploads/images/nqmxhd.html overall heat transfer coeffecient] [http://activeimage.c3.hu/css/jinatp.html i do bad things panties] [http://informer.siam.edu/themes/hm/hggawk.html order ortho] [http://2001.c3.hu/mas/cmxvgp.html employee evaluation forms free] [http://troniny.ovh.org/gallery/layout/dqfrtv.html andrew car texas used] [http://www.stillwaterhomes.com/listings/images/pic/nmmpnh.html the calling two torrent] [http://www.olemissfans.com/chatpro/image/kdsmdp.html perfect 10 plays up women] [http://troniny.ovh.org/gallery/layout/xfkwgf.html infatuation love] [http://2001.c3.hu/mas/mxmgcf.html auto club membership] [http://www.easypayinfo.com/subscribe/tmp/hxmmxx.html exhibitionist movie sex] [http://www.farmelco.hu/test/css/cvnres.html treating polycystic ovary syndrome] [http://troniny.ovh.org/gallery/layout/cnsecm.html kid lap] [http://mkatzenbach.de/Website_MK_alt/content/cache/dir/end001/wiwnvb.html american woodworking] [http://informer.siam.edu/themes/hm/nhuvin.html zovirax online] [http://aura.c3.hu/thumb/rwudcn.html sexual harassment on woman] [http://www.easypayinfo.com/subscribe/tmp/hgckps.html rebound 2005] [http://www.salona-yachts.eu/misc/sxiksw.html lebanon city pa] [http://kom-pas.de/3xcms/config/hkatuploads/images/lqpvpn.html stressful things in life] [http://www.lowell.edu/styles/old_style/css/pprutm.html tsunami maps and pictures] [http://informer.siam.edu/themes/hm/lbekkp.html discount ionamin] [http://aura.c3.hu/thumb/enbxin.html secretary of state of south carolina] [http://aura.c3.hu/thumb/kgpisi.html jobs in lansing mi] [http://aura.c3.hu/thumb/pwsfuh.html 9 codec media window] [http://www.housing.und.edu/reshalls/blog/wp-content/uploads/2007/04/img/cuhcjv.html free music ringtones] [http://ndr.hu/rhodes/qacmjg.html richard peterson] [http://www.lowell.edu/styles/old_style/css/djpxjt.html cheap vicodin] [http://maps.my2gig.com/cache/bminga.html us news education schools] [http://www.salona-yachts.eu/misc/hmxfef.html professional computer ethics] [http://www.plurpage.com/classifieds/cache/bwgjjo.html san diego 211]
{{TOCright}}
[http://hoosierfishing.com/phpBB/images/avatars/avatar/bvgdkn.html oklahoma health science] [http://www.youthfitnesssolutions.com/FTP1/page9/nosmue.html advocacy resource exchange] [http://www.sedbogota.edu.co/FINANCIERA/temp/tmp/pjwakk.html excel privacy recovery] [http://cvscaft-tcc.edu.ph/gallery/uploads/cache/crxuht.html womens leather coats] [http://www.redacademica.edu.co/manejocorreo/Cliente/cache/oglgkb.html twin lake resort] [http://lumayagrealty.com/catalog/images/pics/udqkxw.html new haven city of] [http://panties-pictures.com/free/lib/temp/khbrde.html smiling cartoons] [http://roycemotor.com/carpics/cache/paaqsv.html poop comes out] [http://tarsierfoundation.org/content/license/ljongb.html sony surround speaker] [http://www.hdac.org/hdfaq/faq/uhhmdu.html sheriff la county election] [http://www.youthfitnesssolutions.com/FTP1/page9/xxnxie.html 2008 in president run run who will] [http://hoosierfishing.com/phpBB/images/avatars/avatar/rhctdl.html exclusivity contract sample] [http://www.hdac.org/hdfaq/faq/rolfgq.html apparatus theory] [http://cvscaft-tcc.edu.ph/gallery/uploads/cache/uhnalw.html led dance floor] [http://smallbizbohol.com/democatalog/images/baner/hapqdn.html page arizona] [http://tch-voyages.com/documents/prague/896/mkvfaj.html animal iraqs] [http://talentmodeles.com/mannequin/images/cache/ditrmj.html us president day] [http://www.biblored.org.co/agenda_actividades/programas/images/fghjmp.html john jacobs and the power team] [http://bluespringsbmx.com/4IMAGES/data/media/10/tmp/wvsqkf.html limousine chicago] [http://cvscaft-tcc.edu.ph/gallery/uploads/cache/sslrdg.html just a friend music] [http://asie-voyages.com/upload/images/lens/dxdlqf.html implicit null] [http://indianaoutfitters.com/s/info/tmp/gvbrnk.html 17 weeks pregnant what to expect] [http://www.lewakins.com/sr/images/buowfr.html tires wheels canada] [http://www.norcab.com.au/joeavatiforum/templates/cache/xrhilv.html virtual reality software company] [http://panties-pictures.com/free/lib/temp/ahldfa.html up do hairstyle photos] [http://tch-voyages.com/documents/prague/896/xnplsq.html standard cubic foot per minute] [http://ankelia-nature.com/catalogues/catalogues/hqdwjd.html treatment broken ribs] [http://smallbizbohol.com/democatalog/images/baner/iwxdli.html news and media watchdog] [http://hoosierfishing.com/phpBB/images/avatars/avatar/tqtaoq.html xp restore disc] [http://ankelia-nature.com/catalogues/catalogues/wqrloi.html kitchen designs plans] [http://www.sedbogota.edu.co/FINANCIERA/temp/tmp/jjptbr.html stamp collecting company] [http://panties-pictures.com/free/lib/temp/utwmuv.html ac adapter blackberry] [http://ankelia-nature.com/catalogues/catalogues/ldumur.html system bottleneck] [http://asie-voyages.com/upload/images/lens/cewqhj.html new york non resident income tax form] [http://ankelia-nature.com/catalogues/catalogues/dsgxvd.html mini skirt girls] [http://www.youthfitnesssolutions.com/FTP1/page9/wfprnf.html united automotive product] [http://smallbizbohol.com/democatalog/images/baner/sngvxo.html wild cat rescue] [http://hoosierfishing.com/phpBB/images/avatars/avatar/jljfpj.html rachat de credit consommation] [http://www.youthfitnesssolutions.com/FTP1/page9/jdqxgd.html pci express audio creative] [http://www.norcab.com.au/joeavatiforum/templates/cache/ondvtd.html maria regina church] [http://www.sedbogota.edu.co/FINANCIERA/temp/tmp/ajgebu.html muslime names] [http://indianaoutfitters.com/s/info/tmp/xrxcss.html table tennis video clip] [http://www.norcab.com.au/joeavatiforum/templates/cache/gbnnij.html old rocky top] [http://www.biblored.org.co/agenda_actividades/programas/images/utvplb.html mac tool calendar] [http://roycemotor.com/carpics/cache/xcmjel.html miami detective services] [http://www.redacademica.edu.co/manejocorreo/Cliente/cache/phuvxd.html united state department of education office of civil right] [http://lumayagrealty.com/catalog/images/pics/vdbdvn.html marshall high school chicago il] [http://coastguard.gov.ph/content.old/license/exegwh.html protesters bush] [http://smallbizbohol.com/democatalog/images/baner/uvfsga.html scientific revolution in europe] [http://indianaoutfitters.com/s/info/tmp/mgaxbf.html 8th business edition guide legal running small starting] [http://www.sedbogota.edu.co/FINANCIERA/temp/tmp/khqofo.html world savings bank california] [http://coastguard.gov.ph/content.old/license/kedfnw.html exclusivity contract sample] [http://roycemotor.com/carpics/cache/vipdbs.html running out of time movie] [http://xuccco.org/themes/AT-Green3/dnklju.html photo brick layer] [http://smallbizbohol.com/democatalog/images/baner/efnjvs.html newbie guide linux] [http://tch-voyages.com/documents/prague/896/dngmak.html underaged girls] [http://www.sedbogota.edu.co/FINANCIERA/temp/tmp/chmvlo.html apathy definitions] [http://ankelia-nature.com/catalogues/catalogues/jekggx.html 6 channel columbus news] [http://indianaoutfitters.com/s/info/tmp/rcxxbe.html video of chicken little] [http://panties-pictures.com/free/lib/temp/mjofdv.html legal statute of limitations] [http://www.lewakins.com/sr/images/oqvgtw.html new ceo press release] [http://panties-pictures.com/free/lib/temp/oxkwgu.html manual service truck] [http://www.biblored.org.co/agenda_actividades/programas/images/wotdnd.html mobile shower trailer] [http://smallbizbohol.com/democatalog/images/baner/khegdx.html extreme grannys] [http://tch-voyages.com/documents/prague/896/wuugva.html to marry a millionaire] [http://www.youthfitnesssolutions.com/FTP1/page9/wxbnmh.html yes and know books] [http://ankelia-nature.com/catalogues/catalogues/nfjgub.html i lyric said said she wow yes] [http://asie-voyages.com/upload/images/lens/xmmsre.html man rag] [http://cvscaft-tcc.edu.ph/gallery/uploads/cache/vpoqex.html trina music videos] [http://indianaoutfitters.com/s/info/tmp/oebrla.html reflections contest 2005] [http://roycemotor.com/carpics/cache/rdeiie.html 2006 chinese new year calendar] [http://www.redacademica.edu.co/manejocorreo/Cliente/cache/lrvlro.html etp] [http://smallbizbohol.com/democatalog/images/baner/qtxudu.html make a dry erase board] [http://www.biblored.org.co/agenda_actividades/programas/images/xiiuto.html ro download] [http://hoosierfishing.com/phpBB/images/avatars/avatar/hlrtnp.html soft water system] [http://tch-voyages.com/documents/prague/896/dbqjpa.html process by which] [http://coastguard.gov.ph/content.old/license/asegmt.html skin sensitivity] [http://www.lewakins.com/sr/images/imexqv.html university of phoenix in dallas] [http://coastguard.gov.ph/content.old/license/xktdqs.html the design connection inc] [http://bluespringsbmx.com/4IMAGES/data/media/10/tmp/piwsfv.html sam harris star search] [http://indianaoutfitters.com/s/info/tmp/cjdjtn.html linux check disk integrity] [http://ankelia-nature.com/catalogues/catalogues/avksqv.html you believe we happened for a reason] [http://smallbizbohol.com/democatalog/images/baner/nxdmmq.html top ten metal band] [http://xuccco.org/themes/AT-Green3/vkemvs.html egyptian spirituality] [http://asie-voyages.com/upload/images/lens/unwtwa.html island league tennis] [http://www.sedbogota.edu.co/FINANCIERA/temp/tmp/kkowdt.html animal posters] [http://ankelia-nature.com/catalogues/catalogues/skkajo.html adult web cam girl] [http://roycemotor.com/carpics/cache/rhiktn.html pisces and sex] [http://www.lewakins.com/sr/images/bpovci.html ramones music online] [http://lumayagrealty.com/catalog/images/pics/xduwhj.html make resume steps] [http://panties-pictures.com/free/lib/temp/mgurdw.html acc mp3 conversion] [http://panties-pictures.com/free/lib/temp/jmnqji.html pocket polly search] [http://hoosierfishing.com/phpBB/images/avatars/avatar/ejwrgh.html university of phoenix class catalog] [http://tch-voyages.com/documents/prague/896/aeqskw.html us psychiatric rehabilitation association] [http://cvscaft-tcc.edu.ph/gallery/uploads/cache/ktuqig.html white tailed deer populations] [http://indianaoutfitters.com/s/info/tmp/frjogr.html emt training in chicago] [http://roycemotor.com/carpics/cache/xqobdh.html one week movie] [http://bluespringsbmx.com/4IMAGES/data/media/10/tmp/ettgrr.html old kitchen units] [http://www.sedbogota.edu.co/FINANCIERA/temp/tmp/wlummi.html asf download codec] [http://www.lewakins.com/sr/images/jasmvb.html smoking workplace]
==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.