Miscellaneous Functions: Difference between revisions

From Kolmafia
Jump to navigation Jump to search
No edit summary
Revert spam
Line 1: Line 1:
[http://adrianwindridge.co.uk/propertyimages/thumbs/gif/xisdos.html omron nebulizers] [http://www.swiic.com/swi/images/banners/128x250/qrielr.html street fighting] [http://npgsupport.com/chat/chat/localization/icelandic/cache/bakjsu.html internet dating] [http://www.christianspeaker.net/catalog/images/icon/voxkna.html anniversary] [http://marylandcomputerguy.net/nails/image/ecewhe.html order adipex] [http://www.boatnbabes.com/babes/modules/xcgal/albums/userpics/10001/thumbs/aoevww.html used toyota dealer] [http://www.boatnbabes.com/babes/modules/xcgal/albums/userpics/10001/thumbs/bhqkmt.html teacher] [http://meretusa.com/links/cache/wfxspo.html pontiac trans am] [http://interserverhost.com/gallery/albums/userpics/avatars/gfemts.html free xxx videos] [http://maslov.com/new_releases/cache/meprpm.html puma outlet] [http://deadmansjacket.co.uk/gallery_images/thumbs/lapabk.html kids cartoons] [http://npgsupport.com/chat/chat/localization/icelandic/cache/eckfqv.html halloween sexy nurse] [http://reverejournal.com/wp-content/uploads/2007/05/images/kljrjp.html boy meets world cast] [http://adrianwindridge.co.uk/propertyimages/thumbs/gif/qiqpno.html sexmovies] [http://www.bassboatmagazine.com/linkmachine/templates/lm_images/thumb/nnaxqf.html big dicks] [http://reverejournal.com/wp-content/uploads/2007/05/images/fdcbrq.html savings bond] [http://meretusa.com/links/cache/lepqsg.html freesex video] [http://www.hardenassociates.com/shands-santa/albums/image/jnxuss.html gay gangbang] [http://interserverhost.com/gallery/albums/userpics/avatars/xqsqrp.html cheap silk wedding flower] [http://wirelessilliana.com/sullivanpack341/gallery341/g2data/image/oalaxt.html reverse cell phone number search] [http://wirelessilliana.com/sullivanpack341/gallery341/g2data/image/aqbtjr.html wet pussy] [http://staticchain.com/banner/123x110/roncct.html volvo trucks] [http://meretusa.com/links/cache/djgpih.html hardwood floors] [http://wirelessilliana.com/sullivanpack341/gallery341/g2data/image/boaglx.html anal free pic sex xxx] [http://michaelboyle.biz/joomla/templates/limbocms/limbocms/images/pics/cknvnp.html discount exercise equipment] [http://reportchildporn.com/rcp/themes/phpkaox/cache/uwcjop.html wood pellets] [http://www.partnerwithsap.com/de/images/banners/pdmktq.html gps softwere free download] [http://michaelboyle.biz/joomla/templates/limbocms/limbocms/images/pics/uvmhvv.html everquest cheats] [http://meretusa.com/links/cache/sulchi.html free porn movie clips] [http://meretusa.com/links/cache/nrdvdi.html window treatment] [http://www.christianspeaker.net/catalog/images/icon/ccgoic.html washington property] [http://www.swiic.com/swi/images/banners/128x250/ljtxdr.html electronics stores] [http://jaxrotaract.org/galainfo/images/avatars/pics/gifxog.html adult belle costume] [http://npgsupport.com/chat/chat/localization/icelandic/cache/fqpjvb.html cheap designer handbags] [http://bostoncentury.com/old/coppermine/albums/userpics/10001/thumb/mdvjub.html free ringtone canada] [http://wirelessilliana.com/sullivanpack341/gallery341/g2data/image/rpibwt.html wealthy men dating] [http://woodcrafts-online.com/shop/components/com_virtuemart/shop_image/product/thmbs/mpirku.html mre] [http://www.boatnbabes.com/babes/modules/xcgal/albums/userpics/10001/thumbs/ieikin.html ciggarette state tax] [http://www.partnerwithsap.com/de/images/banners/frcjdf.html woods lamp] [http://marylandcomputerguy.net/nails/image/iprhof.html house values] [http://www.swiic.com/swi/images/banners/128x250/ujcbkx.html free porn videos] [http://wirelessilliana.com/sullivanpack341/gallery341/g2data/image/fnuffi.html acd see 32] [http://www.christianspeaker.net/catalog/images/icon/wsjajg.html chanel] [http://www.usedboatdealer.com/boats/images/banners/gif/kllfrn.html womens wide width dress shoes] [http://wirelessilliana.com/sullivanpack341/gallery341/g2data/image/saxrxr.html valium pill] [http://www.partnerwithsap.com/de/images/banners/intwsp.html www lankasri] [http://jaxrotaract.org/galainfo/images/avatars/pics/rvvhmq.html luxor crack] [http://maslov.com/new_releases/cache/hboccc.html allegiant airline] [http://woodcrafts-online.com/shop/components/com_virtuemart/shop_image/product/thmbs/mluwpm.html cyprus properties] [http://www.athomewithmark.com/images/properties/thumb/kmvwbm.html surefit slipcovers] [http://www.partnerwithsap.com/de/images/banners/eggdqw.html personal care] [http://interserverhost.com/gallery/albums/userpics/avatars/majjve.html hemorrhoids] [http://sbcoachescollege.com/bulletin/images/avatars/new/ccqmtg.html mp3 to wave converter] [http://wirelessilliana.com/sullivanpack341/gallery341/g2data/image/nossgc.html doxycycline vibramycin] [http://deadmansjacket.co.uk/gallery_images/thumbs/ekokuj.html brazil plastic surgery] [http://jaxrotaract.org/galainfo/images/avatars/pics/ccnfcs.html bridgestone dueler at tires] [http://staticchain.com/banner/123x110/fhmmqv.html proactive] [http://c21redwood.com/images/properties/thumbs/skqmjm.html genuine] [http://jaxrotaract.org/galainfo/images/avatars/pics/cmoqmq.html metformin diabetes] [http://www.swiic.com/swi/images/banners/128x250/sitafq.html truyen nguoi lon] [http://adrianwindridge.co.uk/propertyimages/thumbs/gif/xhoelk.html phone number listing] [http://borrington.org/videos/move/lhsoao.html coach bag] [http://reportchildporn.com/rcp/themes/phpkaox/cache/lpwjui.html billiard] [http://adrianwindridge.co.uk/propertyimages/thumbs/gif/pjugrw.html watch batteries] [http://www.swiic.com/swi/images/banners/128x250/sfvfvp.html worlds biggest penis] [http://c21redwood.com/images/properties/thumbs/bvmomj.html electric motor] [http://npgsupport.com/chat/chat/localization/icelandic/cache/uwpfqv.html mighty morphin power rangers] [http://jaxrotaract.org/galainfo/images/avatars/pics/owbvxa.html shakira hips dont lie] [http://jaxrotaract.org/galainfo/images/avatars/pics/snehpi.html cfnm video] [http://meretusa.com/links/cache/twklpx.html ebay dropshipper] [http://meretusa.com/links/cache/fqmare.html dvd] [http://www.bidondates.com/pics/albums/102806/CIMG1414/lqeneb.html dianabol] [http://aoreport.com/mag/images/stories/News05-06/5-22-06/image/fiprce.html amateurporn] [http://www.christianspeaker.net/catalog/images/icon/nmqxgq.html maui restaurants] [http://michaelboyle.biz/joomla/templates/limbocms/limbocms/images/pics/kppgjk.html cash] [http://deadmansjacket.co.uk/gallery_images/thumbs/imgdxl.html mercury outboard motor part] [http://marylandcomputerguy.net/nails/image/mdngas.html spiderman 2] [http://www.athomewithmark.com/images/properties/thumb/xbvreu.html free making money online] [http://c21redwood.com/images/properties/thumbs/vwglsf.html plumbing courses] [http://maslov.com/new_releases/cache/spsmnk.html free download jet audio 6] [http://borrington.org/videos/move/hbbwam.html hardcore movies] [http://meretusa.com/links/cache/bruagq.html best casin0] [http://npgsupport.com/chat/chat/localization/icelandic/cache/fmrhae.html learning games] [http://www.usedboatdealer.com/boats/images/banners/gif/cmiaps.html porn star houston] [http://michaelboyle.biz/joomla/templates/limbocms/limbocms/images/pics/hjcrle.html interest calculation] [http://reverejournal.com/wp-content/uploads/2007/05/images/xhlhgs.html forrester] [http://c21redwood.com/images/properties/thumbs/bnlcih.html quilt patterns] [http://shopwhat.com/photo/image/bnnqba.html free dvd player] [http://adrianwindridge.co.uk/propertyimages/thumbs/gif/wqrqei.html free phone] [http://bostoncentury.com/old/coppermine/albums/userpics/10001/thumb/xjlofg.html cheap airline tickets south america] [http://meretusa.com/links/cache/ocxdlt.html free business cards] [http://www.christianspeaker.net/catalog/images/icon/uccdix.html zip code lookup] [http://www.christianspeaker.net/catalog/images/icon/tdafmx.html mobile office] [http://www.jericogt.com/design/schema/images/news/thumb/1/ltrkho.html teen hardcore] [http://aoreport.com/mag/images/stories/News05-06/5-22-06/image/qxfgpm.html companies house] [http://michaelboyle.biz/joomla/templates/limbocms/limbocms/images/pics/knpmpk.html zoog disney] [http://bostoncentury.com/old/coppermine/albums/userpics/10001/thumb/umradu.html lorazepam information] [http://borrington.org/videos/move/imcilw.html masuimi max] [http://meretusa.com/links/cache/vldfri.html payday loan no direct deposit] [http://michaelboyle.biz/joomla/templates/limbocms/limbocms/images/pics/kkhkfj.html shelby cobra] [http://naked.eskout.cn/free-milf-pictures.html free milf pictures] [http://naked.eskout.cn/male-stripper.html male stripper videos] [http://movies.eskout.cn/weight-loss.html weight loss dietary supplement] [http://porn.eskout.cn/black-women-naked.html black women naked] [http://anal.eskout.cn/medical-billing.html medical billing and coding degree] [http://fuck.eskout.cn/freeteenporn.html freeteenporn] [http://lesbian.eskout.cn/clitorous.html clitorous] [http://lesbian.eskout.cn/young-teen-lolitas.html young teen lolitas] [http://sex.eskout.cn/amature-wife.html amature wife] [http://xxx.eskout.cn/lesbian-movie.html lesbian movie] [http://teen.eskout.cn/free-illustrated.html free illustrated erotic stories] [http://anal.eskout.cn/flower-girl-gifts.html flower girl gifts] [http://hentai.eskout.cn/little-boys-nude.html little boys nude] [http://www.bush89.freehosting.net home] [http://playboy.eskout.cn/latex-fuck.html latex fuck] [http://fuck.eskout.cn/natalie-portman.html natalie portman sex] [http://anal.eskout.cn/contractor-bonding.html contractor bonding insurance] [http://teens.eskout.cn/sucking-hard.html sucking hard] [http://girls.eskout.cn/honolulu-real.html honolulu real estate sale] [http://girls.eskout.cn/maui-dinner-cruise.html maui dinner cruise] [http://lesbian.eskout.cn/office-sex.html office sex] [http://hardcore.eskout.cn/park-fly-nashville.html park fly nashville] [http://girl.eskout.cn/free-gagging-on.html free gagging on cum movies] [http://porn.eskout.cn/breast-cancer-ribbon.html breast cancer ribbon] [http://teens.eskout.cn/blue-ridge-georgia.html blue ridge georgia cabin rentals] [http://playboy.eskout.cn/gigi-domai.html gigi domai] [http://playboy.eskout.cn/australian-domain.html australian domain names] [http://porno.eskout.cn/weddings-scottsdale.html weddings scottsdale] [http://www.babiyolga84.s5.com home] [http://playboy.eskout.cn/scarlett-johansson.html scarlett johansson naked] [http://women.eskout.cn/homemade-gourmet.html homemade gourmet chocolates] [http://porn.eskout.cn/zwanger.html zwanger] [http://hentai.eskout.cn/amateur-sex-video.html amateur sex video] [http://xxx.eskout.cn/seattle-escort.html seattle escort] [http://naked.eskout.cn/mom-blowjob.html mom blowjob] [http://xxx.eskout.cn/hairless-teens.html hairless teens] [http://incest.eskout.cn/little-girl-bbs.html little girl bbs] [http://nude.eskout.cn/herbal-detox.html herbal detox] [http://www.tastysalmagundi.4t.com map] [http://naked.eskout.cn/ankh.html ankh] [http://naked.eskout.cn/mai-hoshino.html mai hoshino] [http://teens.eskout.cn/longest-yard.html longest yard soundtrack] [http://playboy.eskout.cn/ssss.html ssss] [http://naked.eskout.cn/upsk.html upsk] [http://playboy.eskout.cn/hot-teen-pics.html hot teen pics] [http://incest.eskout.cn/big-tit-toons.html big tit toons] [http://incest.eskout.cn/naked-boating.html naked boating] [http://anal.eskout.cn/spice-girls-stop.html spice girls stop] [http://hardcore.eskout.cn/wyoming-elk-hunts.html wyoming elk hunts] [http://girls.eskout.cn/boys-boxers.html boys boxers] [http://hentai.eskout.cn/xoxota.html xoxota] [http://naked.eskout.cn/option-software.html option software] [http://teens.eskout.cn/young-asians.html young asians] [http://incest.eskout.cn/pee-panties.html pee panties] [http://anal.eskout.cn/lesbain-hentai.html lesbain hentai] [http://fuck.eskout.cn/assfucked.html assfucked] [http://blondes.eskout.cn/suck-big-cock.html suck big cock] [http://www.solmarishk.00author.com page] [http://porn.eskout.cn/danni-ashe.html danni ashe] [http://hentai.eskout.cn/diamond-powders.html diamond powders grit polishing abrasive] [http://fuck.eskout.cn/nude-picture.html nude picture] [http://incest.eskout.cn/teen-slave.html teen slave] [http://personales.ciudad.com.ar/eev-07/ home] [http://hardcore.eskout.cn/lactating-nipples.html lactating nipples] [http://girl.eskout.cn/zapa.html zapa] [http://incest.eskout.cn/horse-cum.html horse cum] [http://lesbian.eskout.cn/moms-can-fuck.html moms can fuck] [http://girls.eskout.cn/forearm-workout.html forearm workout] [http://sex.eskout.cn/booby-traps.html booby traps] [http://fuck.eskout.cn/animated-hentai.html animated hentai] [http://naked.eskout.cn/sugar-hill-gang.html sugar hill gang] [http://girls.eskout.cn/nice-pussy.html nice pussy] [http://teen.eskout.cn/topless-beach.html topless beach babes] [http://blondes.eskout.cn/anel-sex.html anel sex] [http://lesbian.eskout.cn/selling-a-used-car.html selling a used car] [http://xxx.eskout.cn/hot-black-boys.html hot black boys] [http://playboy.eskout.cn/paris-hilton-sex.html paris hilton sex clips] [http://blondes.eskout.cn/black-tight-pussy.html black tight pussy] [http://girl.eskout.cn/highland-village.html highland village realty] [http://porn.eskout.cn/mj-morning-show.html mj morning show] [http://nude.eskout.cn/toddler-sex.html toddler sex] [http://anal.eskout.cn/fat-penis.html fat penis] [http://teen.eskout.cn/small-cock.html small cock] [http://nude.eskout.cn/nude-shakira.html nude shakira] [http://girls.eskout.cn/prescription.html prescription pills shopping] [http://www.mosrealt2007.bz.tc page] [http://porno.eskout.cn/erotic-nudes.html erotic nudes] [http://sex.eskout.cn/xxl-magazine.html xxl magazine] [http://girl.eskout.cn/euro-sex-parties.html euro sex parties] [http://incest.eskout.cn/zorritas.html zorritas] [http://girls.eskout.cn/unwanted-sex.html unwanted sex] [http://fuck.eskout.cn/nypd-rant.html nypd rant] [http://nude.eskout.cn/pussy-shots.html pussy shots] [http://blondes.eskout.cn/every-little.html every little thing she does is magic] [http://movies.eskout.cn/cache-creek-casino.html cache creek casino] [http://incest.eskout.cn/vancouver-map.html vancouver map] [http://girls.eskout.cn/farm-cum.html farm cum] [http://naked.eskout.cn/virginia-madsen.html virginia madsen nude] [http://naked.eskout.cn/charisma-carpenter.html charisma carpenter playboy] [http://hardcore.eskout.cn/impossible-is.html impossible is nothing] == Part 7 - Miscellaneous ==
== 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
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 />
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 15:34, 26 November 2007

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’re careful and not an asshat, for raw URLs.
See the CLI manual for more details.
Sample:Hedging

void wait( int delay )
Sleeps for delay seconds.

string get_property( string key )
boolean set_property( string key, string value )

Gets or sets a stored property from your character’s .kcs file.
The KoLmafia properties page contains details on many of the keys that are available for access.
Sample:Battlefield_gather

boolean file_to_map( string file_to_load, map map_to_fill )
boolean map_to_file( map map_to_save, string file_to_write )

Loads and saves maps as tab-delimited text files.

int random( int range )
Generates a random integer between 0 and (range-1) inclusive.

int round( float ratio )
int floor( float ratio )
int ceil( float ratio )
int truncate( float ratio )

Returns an integer near the given real number. Respectively, it returns the nearest, next lowest, next highest, and decimal-stripped integer.

int count( map )
Returns the number of defined keys for the aggregate.

void clear( map )
Remove all keys from a map.

void disable( string function_name )
void enable( string function_name )

For debugging purposes disables or enables the indicated function

float square_root( float value )
returns the square root of the passed value

string today_to_string()
Returns today’s (real-world) date in the form yyyymmdd. It is based on your computer’s system date