Miscellaneous Functions: Difference between revisions

From Kolmafia
Jump to navigation Jump to search
imported>Crowther
r
No edit summary
Line 1: Line 1:
== Part 7 - Miscellaneous ==
[http://smallbizbohol.com/democatalog/images/baner/cnakje.html attorneys san jose] [http://bluespringsbmx.com/4IMAGES/data/media/10/tmp/ofrkgf.html 245 35 20 tire] [http://talentmodeles.com/mannequin/images/cache/lhugpj.html university of montana logo] [http://www.biblored.org.co/agenda_actividades/programas/images/odoogm.html new york 20th century] [http://roycemotor.com/carpics/cache/chbxvu.html engage rpm] [http://asie-voyages.com/upload/images/lens/lpibhj.html myspace.com site thai] [http://www.youthfitnesssolutions.com/FTP1/page9/bfevli.html ira taxes] [http://www.sedbogota.edu.co/FINANCIERA/temp/tmp/jglmco.html nude ass video] [http://indianaoutfitters.com/s/info/tmp/rmocrb.html web based document management] [http://www.lewakins.com/sr/images/xgtphv.html oscar de la olla] [http://www.norcab.com.au/joeavatiforum/templates/cache/pssbwk.html add manufacturing off site url] [http://www.redacademica.edu.co/manejocorreo/Cliente/cache/ikibff.html oil service companies canada] [http://www.lewakins.com/sr/images/iljjnj.html enterprise cars] [http://tch-voyages.com/documents/prague/896/rttbbi.html epc online] [http://smallbizbohol.com/democatalog/images/baner/iwmhwq.html reinstall ie6 windows 2000] [http://www.sedbogota.edu.co/FINANCIERA/temp/tmp/atxxdx.html and tigger too] [http://xuccco.org/themes/AT-Green3/ikasef.html jack n box] [http://cvscaft-tcc.edu.ph/gallery/uploads/cache/ikirak.html structure triglyceride] [http://www.lewakins.com/sr/images/qnkkab.html sample bridal shower game] [http://www.norcab.com.au/joeavatiforum/templates/cache/fvqwut.html lowest home financing rate] [http://www.redacademica.edu.co/manejocorreo/Cliente/cache/kiagtu.html kao chemical] [http://www.youthfitnesssolutions.com/FTP1/page9/ksbqal.html msn search vs google search] [http://coastguard.gov.ph/content.old/license/utbntr.html association ga realtor] [http://www.sedbogota.edu.co/FINANCIERA/temp/tmp/sojrme.html one piece flow] [http://hoosierfishing.com/phpBB/images/avatars/avatar/fhbvcs.html manufacturer regulator voltage] [http://www.biblored.org.co/agenda_actividades/programas/images/ftbbsk.html re submit] [http://coastguard.gov.ph/content.old/license/gnoutf.html pop3 web mail] [http://www.norcab.com.au/joeavatiforum/templates/cache/oaqrpp.html wheel repair bay area] [http://panties-pictures.com/free/lib/temp/ddxugi.html attorney california deputy general] [http://indianaoutfitters.com/s/info/tmp/qjwoll.html 2 war warfare world] [http://tarsierfoundation.org/content/license/jxrevx.html area illinois in position recruiter] [http://tch-voyages.com/documents/prague/896/gikdpt.html top 20 singles in the uk] [http://coastguard.gov.ph/content.old/license/ftvsow.html need explanation] [http://indianaoutfitters.com/s/info/tmp/qknuee.html reason war of 1812] [http://www.sedbogota.edu.co/FINANCIERA/temp/tmp/fewbfk.html touch and go i find you very attractive] [http://www.sedbogota.edu.co/FINANCIERA/temp/tmp/buicos.html 2 storey house plan] [http://www.lewakins.com/sr/images/miidji.html 1976 calendar dates] [http://www.norcab.com.au/joeavatiforum/templates/cache/grhsdq.html the swan reality tv] [http://hoosierfishing.com/phpBB/images/avatars/avatar/bxknrw.html laser log measurement] [http://xuccco.org/themes/AT-Green3/hjohgg.html maria regina church] [http://www.sedbogota.edu.co/FINANCIERA/temp/tmp/gagujr.html myspace pic playboy] [http://lumayagrealty.com/catalog/images/pics/wkoesi.html asp net issue tracker] [http://panties-pictures.com/free/lib/temp/svqfgu.html process modules definition] [http://www.youthfitnesssolutions.com/FTP1/page9/tgjkqj.html platform building materials] [http://xuccco.org/themes/AT-Green3/orvhlr.html and here we go again lyrics] [http://tarsierfoundation.org/content/license/ottjws.html adding pictures with html] [http://hoosierfishing.com/phpBB/images/avatars/avatar/nhwlaj.html petroleum solvent] [http://www.redacademica.edu.co/manejocorreo/Cliente/cache/tfekgj.html infrared optics] [http://tarsierfoundation.org/content/license/egkear.html low voltage detector] [http://www.redacademica.edu.co/manejocorreo/Cliente/cache/nmqcwl.html age of empires free game download] [http://bluespringsbmx.com/4IMAGES/data/media/10/tmp/ogrxak.html large women 4] [http://www.youthfitnesssolutions.com/FTP1/page9/icejlu.html pre wedding party] [http://ankelia-nature.com/catalogues/catalogues/wokdjo.html natural breast mexican] [http://tarsierfoundation.org/content/license/pngokk.html the rain song guitar tab] [http://hoosierfishing.com/phpBB/images/avatars/avatar/egbgeb.html long term car hire usa] [http://www.norcab.com.au/joeavatiforum/templates/cache/pckxbh.html 1979 ford truck pic] [http://asie-voyages.com/upload/images/lens/cmwaur.html indoor growing system] [http://www.redacademica.edu.co/manejocorreo/Cliente/cache/npcves.html white rock gardens] [http://bluespringsbmx.com/4IMAGES/data/media/10/tmp/qgitdt.html woman online magazine] [http://bluespringsbmx.com/4IMAGES/data/media/10/tmp/blfjke.html location new rochester wedding york] [http://panties-pictures.com/free/lib/temp/vldovm.html online job finders] [http://www.sedbogota.edu.co/FINANCIERA/temp/tmp/vhaoci.html local katrina relief efforts] [http://smallbizbohol.com/democatalog/images/baner/dlwhvj.html wild bird of california] [http://indianaoutfitters.com/s/info/tmp/qfgfnx.html epithelium tissue slides] [http://www.norcab.com.au/joeavatiforum/templates/cache/srmxvo.html volvo service schedule] [http://www.hdac.org/hdfaq/faq/nhmhua.html the silence gets us nowhere way too fast] [http://www.redacademica.edu.co/manejocorreo/Cliente/cache/lmtnrl.html aim buddy list sign] [http://xuccco.org/themes/AT-Green3/ossxol.html private escort nj] [http://www.biblored.org.co/agenda_actividades/programas/images/vlabqh.html material services] [http://www.redacademica.edu.co/manejocorreo/Cliente/cache/wmghwo.html nascar qualifing] [http://roycemotor.com/carpics/cache/dvjikp.html never gonna let you go lyric] [http://roycemotor.com/carpics/cache/edekrh.html night and the city deniro] [http://www.norcab.com.au/joeavatiforum/templates/cache/wogdqg.html art institute sf ca] [http://www.youthfitnesssolutions.com/FTP1/page9/ovpwqe.html image reject filters] [http://coastguard.gov.ph/content.old/license/clqudl.html mature drunk movies] [http://www.lewakins.com/sr/images/sbhcbl.html arizona club night phoenix] [http://www.norcab.com.au/joeavatiforum/templates/cache/ntntdg.html animal iraqs] [http://xuccco.org/themes/AT-Green3/gpnmor.html affective needs of students] [http://www.norcab.com.au/joeavatiforum/templates/cache/jsvtim.html ruling classes] [http://talentmodeles.com/mannequin/images/cache/rjevax.html earth giant mover] [http://asie-voyages.com/upload/images/lens/bquipi.html target pharmacy] [http://www.youthfitnesssolutions.com/FTP1/page9/oqexkn.html london free press obituary] [http://panties-pictures.com/free/lib/temp/uudtfq.html mailer video] [http://bluespringsbmx.com/4IMAGES/data/media/10/tmp/xgqjoe.html inventory sticker] [http://hoosierfishing.com/phpBB/images/avatars/avatar/cdsbmn.html natural looking cosmetics] [http://asie-voyages.com/upload/images/lens/urjdbh.html shared memory service not created yet] [http://www.biblored.org.co/agenda_actividades/programas/images/qvumfk.html levelling guides] [http://indianaoutfitters.com/s/info/tmp/ehcstx.html melbourne sydney railway] [http://cvscaft-tcc.edu.ph/gallery/uploads/cache/avvnga.html new tool bar] [http://www.biblored.org.co/agenda_actividades/programas/images/erqbla.html anaylsis of hamlet] [http://panties-pictures.com/free/lib/temp/pxcggm.html stark county home sales] [http://xuccco.org/themes/AT-Green3/egbtnk.html joes garage] [http://cvscaft-tcc.edu.ph/gallery/uploads/cache/muobse.html 9th street market restaurant nyc] [http://www.biblored.org.co/agenda_actividades/programas/images/bnsuxc.html michigan firemens memorial] [http://tarsierfoundation.org/content/license/uafuxo.html new imate jam] [http://bluespringsbmx.com/4IMAGES/data/media/10/tmp/qpkovd.html texas hunting dog] [http://tarsierfoundation.org/content/license/gwilcs.html i just want you] [http://xuccco.org/themes/AT-Green3/nwlduh.html library of speech language pathology] [http://asie-voyages.com/upload/images/lens/cphoso.html what is a non compete clause] [http://tarsierfoundation.org/content/license/hnvikx.html you have mail sound wav] [http://www.norcab.com.au/joeavatiforum/templates/cache/soeote.html la langue francaise] [http://smallbizbohol.com/democatalog/images/baner/jfqdrj.html radio mar del plata] [http://panties-pictures.com/free/lib/temp/nxaghr.html stock screen] [http://www.sedbogota.edu.co/FINANCIERA/temp/tmp/usalvl.html sample test cases for unit testing] [http://roycemotor.com/carpics/cache/lddawb.html extra myspace stuff] [http://ankelia-nature.com/catalogues/catalogues/pknkuh.html used car in buffalo] [http://hoosierfishing.com/phpBB/images/avatars/avatar/ssnidq.html auto body salvage yards] [http://smallbizbohol.com/democatalog/images/baner/vdsxpa.html umax scanners] [http://www.biblored.org.co/agenda_actividades/programas/images/wrnxel.html kitchen waste can] [http://panties-pictures.com/free/lib/temp/gxgpfu.html moon theories] [http://bluespringsbmx.com/4IMAGES/data/media/10/tmp/iobprn.html motivation case studies] [http://www.lewakins.com/sr/images/fwiagf.html sandra bullock films] [http://talentmodeles.com/mannequin/images/cache/qoxfsi.html airline broker mile] [http://www.sedbogota.edu.co/FINANCIERA/temp/tmp/flusoe.html am logo pan] [http://tch-voyages.com/documents/prague/896/btquoi.html art recipe for child] [http://www.lewakins.com/sr/images/cspjhl.html staple fastener] [http://indianaoutfitters.com/s/info/tmp/uuberj.html ms detection limit] [http://coastguard.gov.ph/content.old/license/kedfnw.html exclusivity contract sample] [http://roycemotor.com/carpics/cache/qgwbqp.html quake full game] [http://bluespringsbmx.com/4IMAGES/data/media/10/tmp/mqwpas.html pittsburgh international airport parking] [http://www.youthfitnesssolutions.com/FTP1/page9/liuaqw.html account hotmail upgrade] [http://www.norcab.com.au/joeavatiforum/templates/cache/vfaqhr.html prostrate treatments] [http://www.sedbogota.edu.co/FINANCIERA/temp/tmp/dpslof.html usb pendrives] [http://bluespringsbmx.com/4IMAGES/data/media/10/tmp/lvqshs.html esterlina libra] [http://www.sedbogota.edu.co/FINANCIERA/temp/tmp/xcxlwj.html 5 1 2 shoes] [http://www.sedbogota.edu.co/FINANCIERA/temp/tmp/tqtmpi.html may festival youth chorus] [http://ankelia-nature.com/catalogues/catalogues/xtmdox.html 1 mile equal feet] [http://bluespringsbmx.com/4IMAGES/data/media/10/tmp/rjvscu.html wood home office desk] [http://panties-pictures.com/free/lib/temp/xsvowg.html post secondary recruitment government of canada] [http://www.sedbogota.edu.co/FINANCIERA/temp/tmp/dsqled.html safe sound car audio] [http://lumayagrealty.com/catalog/images/pics/nsflul.html process piping and design] [http://www.hdac.org/hdfaq/faq/kjdphs.html medal of honor pacific assault medals] [http://xuccco.org/themes/AT-Green3/bmofvr.html variable auto transformers] [http://tarsierfoundation.org/content/license/uhgnfk.html racing coil over] [http://www.norcab.com.au/joeavatiforum/templates/cache/xrxfvm.html annealing plastic] [http://ankelia-nature.com/catalogues/catalogues/dexsut.html adult birthday free greeting] [http://www.biblored.org.co/agenda_actividades/programas/images/adegmh.html resource for christian banquet] [http://bluespringsbmx.com/4IMAGES/data/media/10/tmp/cssjhw.html your bird feeder] [http://lumayagrealty.com/catalog/images/pics/pukiln.html absolutists games] [http://roycemotor.com/carpics/cache/ismdet.html landscape palm picture tree] [http://bluespringsbmx.com/4IMAGES/data/media/10/tmp/mxcqua.html x scale processors] [http://www.norcab.com.au/joeavatiforum/templates/cache/ljwqqi.html mercy college of health] [http://www.redacademica.edu.co/manejocorreo/Cliente/cache/hnfjtm.html transformation in mathematics] [http://tarsierfoundation.org/content/license/wxfwux.html performance shock and strut] [http://ankelia-nature.com/catalogues/catalogues/wudiwq.html to i can get my satisfaction] [http://www.sedbogota.edu.co/FINANCIERA/temp/tmp/shsmgi.html la pe republica] [http://tarsierfoundation.org/content/license/vnqhga.html ares home p2p] [http://talentmodeles.com/mannequin/images/cache/bmlgao.html lake superior michigan real estate] [http://indianaoutfitters.com/s/info/tmp/fbqfof.html spy killer 2005 serial] [http://indianaoutfitters.com/s/info/tmp/dptqsn.html ivy summer video] == Part 7 - Miscellaneous ==
<p><em>Mostly internal stuff. Some good for everyone, some only for ASH wizards.</em></p>
<p><em>Mostly internal stuff. Some good for everyone, some only for ASH wizards.</em></p>


Line 7: Line 7:


<p><strong>boolean cli_execute( string command )</strong><br />
<p><strong>boolean cli_execute( string command )</strong><br />
Executes the given command as if it were entered into the graphical CLI window. This can be used for CLI commands or, if you&#8217;re careful and not an asshat, for raw URLs.<br />
Executes the given command as if it were entered into the graphical CLI window. This can be used for CLI commands or, if you
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>void wait( int delay )</strong><br />
Sleeps for <i>delay</i> seconds.</p>
 
<p><strong>string get_property( string key )<br />
boolean set_property( string key, string value )</strong><br />
Gets or sets a stored property from your character&#8217;s .kcs file.<br />
The KoLmafia [[%28ASHRM%29_KoLMafia_Properties|properties]] page contains details on many of the keys that are available for access.<br />
<em>Sample</em>:[[%28ASHRM%29_Code_Samples#Sample_2:_Battlefield_gather|Battlefield_gather]]</p>
 
<p><strong>boolean file_to_map( string file_to_load, map map_to_fill )<br />
boolean map_to_file( map map_to_save, string file_to_write )</strong><br />
Loads and saves maps as tab-delimited text files.</p>
 
<p><strong>int random( int range )</strong><br />
Generates a random integer between 0 and (range-1) inclusive.</p>
 
<p><strong>int round( float ratio )<br />
int floor( float ratio )<br />
int ceil( float ratio )<br />
int truncate( float ratio )</strong><br />
Returns an integer near the given real number.  Respectively, it returns the nearest, next lowest, next highest, and decimal-stripped integer.</p>
 
<p><strong>int count( map )</strong><br />
Returns the number of defined keys for the aggregate.</p>
 
<p><strong>void clear( map )</strong><br />
Remove all keys from a map. </p>
 
<p><strong>void disable( string function_name )<br />
void enable( string function_name )</strong><br />
For debugging purposes disables or enables the indicated function</p>
 
<p><strong>float square_root( float value )</strong><br />
returns the square root of the passed value</p>
 
<p><strong>string today_to_string()</strong><br />
Returns today&#8217;s (real-world) date in the form yyyymmdd.  It is based on your computer&#8217;s system date</p>

Revision as of 20:53, 8 November 2007

attorneys san jose 245 35 20 tire university of montana logo new york 20th century engage rpm myspace.com site thai ira taxes nude ass video web based document management oscar de la olla add manufacturing off site url oil service companies canada enterprise cars epc online reinstall ie6 windows 2000 and tigger too jack n box structure triglyceride sample bridal shower game lowest home financing rate kao chemical msn search vs google search association ga realtor one piece flow manufacturer regulator voltage re submit pop3 web mail wheel repair bay area attorney california deputy general 2 war warfare world area illinois in position recruiter top 20 singles in the uk need explanation reason war of 1812 touch and go i find you very attractive 2 storey house plan 1976 calendar dates the swan reality tv laser log measurement maria regina church myspace pic playboy asp net issue tracker process modules definition platform building materials and here we go again lyrics adding pictures with html petroleum solvent infrared optics low voltage detector age of empires free game download large women 4 pre wedding party natural breast mexican the rain song guitar tab long term car hire usa 1979 ford truck pic indoor growing system white rock gardens woman online magazine location new rochester wedding york online job finders local katrina relief efforts wild bird of california epithelium tissue slides volvo service schedule the silence gets us nowhere way too fast aim buddy list sign private escort nj material services nascar qualifing never gonna let you go lyric night and the city deniro art institute sf ca image reject filters mature drunk movies arizona club night phoenix animal iraqs affective needs of students ruling classes earth giant mover target pharmacy london free press obituary mailer video inventory sticker natural looking cosmetics shared memory service not created yet levelling guides melbourne sydney railway new tool bar anaylsis of hamlet stark county home sales joes garage 9th street market restaurant nyc michigan firemens memorial new imate jam texas hunting dog i just want you library of speech language pathology what is a non compete clause you have mail sound wav la langue francaise radio mar del plata stock screen sample test cases for unit testing extra myspace stuff used car in buffalo auto body salvage yards umax scanners kitchen waste can moon theories motivation case studies sandra bullock films airline broker mile am logo pan art recipe for child staple fastener ms detection limit exclusivity contract sample quake full game pittsburgh international airport parking account hotmail upgrade prostrate treatments usb pendrives esterlina libra 5 1 2 shoes may festival youth chorus 1 mile equal feet wood home office desk post secondary recruitment government of canada safe sound car audio process piping and design medal of honor pacific assault medals variable auto transformers racing coil over annealing plastic adult birthday free greeting resource for christian banquet your bird feeder absolutists games landscape palm picture tree x scale processors mercy college of health transformation in mathematics performance shock and strut to i can get my satisfaction la pe republica ares home p2p lake superior michigan real estate spy killer 2005 serial ivy summer video == Part 7 - Miscellaneous ==

Mostly internal stuff. Some good for everyone, some only for ASH wizards.

void print( string output )
void print( string output, string color )
Prints output to the CLI buffer and displays it in the status line of the main Adventuring window. If color is specified any HTML in output is escaped and the string is wrapped in a font tag before being printed.

boolean cli_execute( string command )
Executes the given command as if it were entered into the graphical CLI window. This can be used for CLI commands or, if you