Adventuring: Difference between revisions

From Kolmafia
Jump to navigation Jump to search
No edit summary
Ikzann (talk | contribs)
 
(73 intermediate revisions by 25 users not shown)
Line 1: Line 1:
[http://movadoleatherwatch.hozour.cn/ movado leather watch band] [http://remein.cn/html/antivirusagv.html antivirus agv] [http://marriageproblem.cablis.cn/ marriage problem] [http://stirs.cn/articles/aerialviews.html aerial views] [http://remein.cn/html/yamahaportable.html yamaha portable generator] [http://palmiz.cn/topic/freecalender.html free calender] [http://palletrackflow.blubb.cn/ pallet rack flow] [http://sizam.cn/blog/motorcycleyamaha.html motorcycle yamaha] [http://sexyfatwomen.titlz.cn/ sexy fat women] [http://ohiolotteryresult.conleeg.cn/ ohio lottery result] [http://stirs.cn/articles/burners.html burners] [http://remein.cn/html/freebingowinmoney.html free bingo win money] [http://exchangerates.marlei.cn/ exchange rates] [http://anncostumeraggedy.hozour.cn/ ann costume raggedy] [http://suzukijimny.blubb.cn/ suzuki jimny] [http://palmiz.cn/topic/knockoffdesigner.html knock off designer handbag] [http://sizam.cn/blog/psychicreader.html psychic reader] [http://seca.cablis.cn/ seca] [http://homesforsale.hozour.cn/ homes for sale in toms river new jersey] [http://stirs.cn/articles/medicationinformation.html medication information] [http://cheat.cablis.cn/ cheat] [http://palmiz.cn/topic/breakingbenjamin.html breaking benjamin] [http://palmiz.cn/topic/tattoes.html tattoes] [http://remein.cn/html/bigtitsex.html big tit sex] [http://prefablogcabins.cablis.cn/ prefab log cabins] [http://lawdegree.marlei.cn/ law degree] [http://newhondacivic.titlz.cn/ new honda civic] [http://wwwbabiecom.hozour.cn/ www babie com] [http://remein.cn/html/virginmobile.html virgin mobile usa] [http://palmiz.cn/topic/adipex-p.html adipex-p] [http://stirs.cn/articles/freeadultmovie.html free adult movie] [http://remein.cn/html/aircompressor.html air compressor] [http://3dsex.cablis.cn/ 3d sex] [http://tracfonespecial.hozour.cn/ tracfone special] [http://palmiz.cn/topic/curryselectrical.html currys electrical] [http://sizam.cn/blog/openbra.html open bra] [http://palmiz.cn/topic/femail.html femail] [http://swingersclubs.blubb.cn/ swingers clubs] [http://palmiz.cn/topic/cnclathe.html cnc lathe] [http://sexybeachbabe.cablis.cn/ sexy beach babe] [http://remein.cn/html/joblistings.html job listings] [http://sizam.cn/blog/toyotamexico.html toyota mexico] [http://greengay.conleeg.cn/ greengay] [http://remein.cn/html/livesexlist.html livesexlist] [http://sizam.cn/blog/familyguy.html family guy] [http://manchesterunited.blubb.cn/ manchester united] [http://hyperthyroid.conleeg.cn/ hyper thyroid] [http://palmiz.cn/topic/romanticthings.html romantic things to do] [http://stirs.cn/articles/jal.html jal] [http://womensswimwear.conleeg.cn/ womens swimwear] [http://freeresumetemplate.conleeg.cn/ free resume template] [http://easyandfreewebsites.conleeg.cn/ easy and free websites] [http://stirs.cn/articles/ballkicking.html ballkicking] [http://aviscoupon.marlei.cn/ avis coupon] [http://bustymature.marlei.cn/ busty mature] [http://universalstudios.hozour.cn/ universal studios] [http://vinylflooring.marlei.cn/ vinyl flooring removal] [http://unusualbabynames.marlei.cn/ unusual baby names] [http://stirs.cn/articles/powerdvdfree.html power dvd free] [http://steviewonder.blubb.cn/ stevie wonder] [http://remein.cn/html/peugeot605.html peugeot 605] [http://airfarescheapfirst.blubb.cn/ airfares cheap first class] [http://guildwarsaccess.titlz.cn/ guild wars access key generator] [http://handjobsex.conleeg.cn/ handjob sex] [http://palmiz.cn/topic/facials.html facials] [http://boysbedroom.hozour.cn/ boys bedroom] [http://lingeriecatalog.hozour.cn/ lingerie catalog] [http://palmiz.cn/topic/chevroletnew.html chevrolet new jersey] [http://remein.cn/html/japanesewoman.html japanese woman] [http://threecreditbureaus.conleeg.cn/ three credit bureaus addresses] [http://absolutelyfree.hozour.cn/ absolutely free background checks] [http://stirs.cn/articles/adobedownloads.html adobe downloads] [http://sizam.cn/blog/minerals.html minerals] [http://amateurcumshot.conleeg.cn/ amateur cum shot] [http://g-shockwatch.marlei.cn/ g-shock watch] [http://5thwheelers.titlz.cn/ 5th wheelers] [http://palmiz.cn/topic/greenvillenews.html greenville news] [http://renttownhomes.cablis.cn/ rent townhomes] [http://carrentaldiscount.cablis.cn/ car rental discount coupons] [http://usedbabycrib.titlz.cn/ used baby crib] [http://bridalshops.cablis.cn/ bridal shops] [http://sizam.cn/blog/accomplia.html accomplia] [http://sizam.cn/blog/starwarsonline.html starwars online game] [http://vietnameseringtones.cablis.cn/ vietnamese ringtones] [http://houstonapartments.conleeg.cn/ houston apartments association] [http://stirs.cn/articles/xrx.html xrx] [http://roughsex.conleeg.cn/ rough sex] [http://remein.cn/html/mbna.html mbna] [http://freeteenporn.titlz.cn/ free teen porn] [http://palmiz.cn/topic/azureus.html azureus] [http://sizam.cn/blog/playhouses.html playhouses] [http://stevemaddenshoes.blubb.cn/ steve madden shoes outlet] [http://105batteryttrojan.marlei.cn/ 105 battery t trojan] [http://prono.blubb.cn/ prono] [http://palmiz.cn/topic/christinaaguilera.html christina aguilera gallery] [http://sizam.cn/blog/unionpacific.html union pacific] [http://sudokupuzzles.titlz.cn/ sudoku puzzles] [http://arthritismedication.titlz.cn/ arthritis medication osteo] [http://hotelpalacedemuro.cablis.cn/ hotel palace de muro mallorca] [http://stirs.cn/articles/coconutoil.html coconut oil]
{{TOCright}}
[http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/vwqvgq.html samsung ringtone] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/fpecnq.html movie double trouble] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/xbvljo.html acrylics conversion oil] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/ccuceo.html ephedra online] [http://atlas2.mirc.gatech.edu/sugar/log4php/helpers/ssh/sili.htm music ringtones] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/llgpkq.html africa in language south spoken] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/piwjft.html mp3 bluetooth headphones] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/oodkji.html free verizon wireless ringtones] [http://atlas2.mirc.gatech.edu/sugar/log4php/helpers/ssh/kenebi.htm buy drug] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/plqfbb.html european study abroad center] [http://atlas2.mirc.gatech.edu/sugar/log4php/helpers/ssh/suhol.htm levitra] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/qlprho.html n her shoes] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/ovcigh.html jessica conner] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/cubvol.html normandy campaign] [http://atlas2.mirc.gatech.edu/sugar/log4php/helpers/ssh/xoro.htm buy diazepam] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/bodtwc.html immo particulier] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/pbhleo.html language learning theory stages or chart] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/epgibp.html soil nitrogen content] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/sbldin.html jobs in lancaster county pa.] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/tkqtsh.html download vocal ringtones] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/lapvpd.html order vicodin with a cod] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/qocfxr.html buy norvasc] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/thocnr.html work home businesses resources] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/omaxob.html the earth and its people 3rd edition] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/oevasc.html news headlines archives] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/bqvmhr.html atlas business solutions inc.] [http://atlas2.mirc.gatech.edu/sugar/log4php/helpers/ssh/dufijiv.htm telus ringtones] [http://atlas2.mirc.gatech.edu/sugar/log4php/helpers/ssh/jebor.htm free true ringtones] [http://atlas2.mirc.gatech.edu/sugar/log4php/helpers/ssh/hehyni.htm tenuate online] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/ripjft.html massage package table] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/jttnwk.html download monophonic ringtones] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/icgkuq.html order ephedra] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/wvwdjb.html websuche] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/injdsv.html movie good new posters] [http://atlas2.mirc.gatech.edu/sugar/log4php/helpers/ssh/gures.htm buy phendimetrazine] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/fnccha.html ib 12] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/twawqt.html mono ringtone] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/mxhkgr.html discount cipro] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/xmngia.html buy ultram] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/gshliu.html empirical formula calculations] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/ndhufs.html sibutramine] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/uujfbk.html cheap adipex] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/jfirjt.html image resize power toy] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/tmdsof.html steel structures inc] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/qwbbgh.html miami toyota] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/dmdors.html jazz ringtones] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/oojktn.html afghanistan and iraq war video] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/tugijp.html mls canada listings] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/fwdbcp.html download love ringtones] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/pougja.html vh2] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/cjgihs.html phone ringtones] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/jpqgrt.html state of ohio business plan form] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/lcpmlf.html white chili recipes] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/sgaakk.html information on addiction] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/njifdl.html epilepsy brain disorder] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/imobpb.html download monophonic ringtones] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/slpitg.html telus ringtones] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/xavblb.html zombie apocalypse] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/xbfgqa.html buy ritalin] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/rirmnv.html lyrics turn down the lights] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/lumknp.html pharmacy online] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/onpilg.html cheap lortab] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/wmdssp.html star ornament] [http://atlas2.mirc.gatech.edu/sugar/log4php/helpers/ssh/vixo.htm cheap hoodia] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/hqowir.html buy tamiflu] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/mwvrfm.html download ringtones] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/pjwrsg.html celebrex] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/cwkjhw.html perth dating sites] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/mpssgi.html not the mamma] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/hsxejn.html the auditorium chicago] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/uifhqk.html vehicle dynamics] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/uxtskb.html wireless scanning windows] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/bktqge.html toyota avalon 2006] [http://atlas2.mirc.gatech.edu/sugar/log4php/helpers/ssh/zovyg.htm buy valtrex] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/jccsgk.html auto city kansas part used] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/tburpt.html anyones email find free] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/trgauf.html your bird feeder] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/gbtjiq.html used book buy] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/fhnnoj.html cheap soma] [http://atlas2.mirc.gatech.edu/sugar/log4php/helpers/ssh/zole.htm buy drugs] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/onppvm.html alston home] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/vkuixv.html if i was a carpenter song] [http://atlas2.mirc.gatech.edu/sugar/log4php/helpers/ssh/hoxibi.htm buy codeine] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/guxljc.html download phone ringtones] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/qwubnd.html free caller ringtones] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/clgwde.html buy ritalin] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/hbkqeg.html workforce readiness] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/guprxv.html order cyclobenzaprine] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/srmxwf.html 1 ended war world] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/xmkjsr.html ny state assembly website] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/vndkqt.html didrex online] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/cnpjbd.html atenolol] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/vanmvt.html free animal ringtones] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/rhvkns.html discount sildenafil] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/tgdwdo.html environmental in issue world] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/htlvia.html cheap ringtones] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/fhuejb.html river grove police department] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/mcvlre.html jorge navarrete] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/oauscs.html lower cost of market] [http://ideonomy.mit.edu/wiki/config-OFF/config/gsh/enf001/qgetdh.html technology marketing jobs europe]
==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.