Miscellaneous Functions: Difference between revisions

From Kolmafia
Jump to navigation Jump to search
No edit summary
spam revert
Line 1: Line 1:
[http://ronald180.idilis.ro/library/medical-transcription/ medical transcription contractor jobs] [http://shurrikk.idilis.ro/web/welfare-offices.html welfare offices] [http://shurrikk.idilis.ro/web/poker-dollars.html poker dollars] [http://ronald180.idilis.ro/library/where-to/ where to buy phentermine] [http://ann-eva.idilis.ro/web/lime-wirecom.html lime wirecom] [http://lisonka-91.idilis.ro/art-bone/ art bone clip dog dog] [http://shurrikk.idilis.ro/web/telephone-numbers.html telephone numbers] [http://ann-eva.idilis.ro/web/freelance-writing.html freelance writing] [http://shurrikk.idilis.ro/web/the-zone.html the zone diet reviews] [http://irina5009189.idilis.ro/wills-trusts/ wills trusts and estates] [http://irina5009189.idilis.ro/presidential-debates/ presidential debates bush kerry] [http://ronald180.idilis.ro/library/landscaping-programs/ landscaping programs] [http://lisonka-91.idilis.ro/uh-oh/ uh oh butt] [http://lisonka-91.idilis.ro/pakistani-brides/ pakistani brides] [http://irina5009189.idilis.ro/philly-chiro/ philly chiro] [http://shurrikk.idilis.ro/web/red-morning.html red morning glory] [http://shurrikk.idilis.ro/web/illinois-special.html illinois special education scholarship] [http://irina5009189.idilis.ro/sears-credit/ sears credit card] [http://ronald180.idilis.ro/library/roto-virus/ roto virus] [http://ann-eva.idilis.ro/web/wedding-flower.html wedding flower girl dress] [http://ann-eva.idilis.ro/web/nicole-kidman.html nicole kidman] [http://irina5009189.idilis.ro/glipizide/ glipizide] [http://lisonka-91.idilis.ro/order-hydrocodone/ order hydrocodone] [http://ann-eva.idilis.ro/web/dvr.html dvr] [http://ann-eva.idilis.ro/web/rich-man.html rich man poor man novelist] [http://shurrikk.idilis.ro/web/chihuahua-puppies.html chihuahua puppies for sale] [http://lisonka-91.idilis.ro/travelocitycom-hotel/ travelocitycom hotel] [http://lisonka-91.idilis.ro/find-peoples/ find peoples cell phone numbers] [http://irina5009189.idilis.ro/stewart-patterson/ stewart patterson] [http://ann-eva.idilis.ro/web/nothing-could.html nothing could come] [http://ann-eva.idilis.ro/web/tattoo-covering.html tattoo covering makeup] [http://shurrikk.idilis.ro/web/ocean-crust.html ocean crust] [http://irina5009189.idilis.ro/free-porn/ free porn pics] [http://irina5009189.idilis.ro/generic-bontril/ generic bontril] [http://lisonka-91.idilis.ro/anti-depressants/ anti depressants] [http://shurrikk.idilis.ro/web/lorazepam.html lorazepam] [http://ronald180.idilis.ro/library/king-james/ king james bible 1611] [http://shurrikk.idilis.ro/web/short-journey.html short journey retreat center] [http://lisonka-91.idilis.ro/educational-video/ educational video games online] [http://irina5009189.idilis.ro/coach-designer/ coach designer shoes] [http://irina5009189.idilis.ro/mario-brothers/ mario brothers 3 level 8] [http://ann-eva.idilis.ro/web/girls-gone.html girls gone wild video] [http://shurrikk.idilis.ro/web/music-from.html music from camp the movie] [http://irina5009189.idilis.ro/suzuki-motorcycles/ suzuki motorcycles] [http://irina5009189.idilis.ro/d-animated/ 3d animated animal] [http://lisonka-91.idilis.ro/ironman-movies/ ironman movies] [http://ronald180.idilis.ro/library/generic-tadalafil/ generic tadalafil] [http://lisonka-91.idilis.ro/wedding-gift/ wedding gift] [http://ronald180.idilis.ro/library/professional-computer/ professional computer ethics] [http://shurrikk.idilis.ro/web/geodon.html geodon] [http://irina5009189.idilis.ro/estate-morgan/ estate morgan real william] [http://irina5009189.idilis.ro/abc-home/ abc home kid schooling] [http://irina5009189.idilis.ro/silk-wedding/ silk wedding flowers] [http://ann-eva.idilis.ro/web/autocad-.html autocad 2004 free download] [http://irina5009189.idilis.ro/virtual-servers/ virtual servers] [http://shurrikk.idilis.ro/web/roosevelts-new.html roosevelts new deals] [http://shurrikk.idilis.ro/web/femdom-porn.html femdom porn] [http://lisonka-91.idilis.ro/diet-nv/ diet nv pill] [http://lisonka-91.idilis.ro/pet-smart/ pet smart] [http://lisonka-91.idilis.ro/sweet-blue/ sweet blue days mp3] [http://shurrikk.idilis.ro/web/news-panama.html news panama city] [http://ann-eva.idilis.ro/web/anal-movie.html anal movie] [http://shurrikk.idilis.ro/web/verizon-wireless.html verizon wireless] [http://irina5009189.idilis.ro/pictures-of/ pictures of tattoos on top of feet] [http://shurrikk.idilis.ro/web/mtv-ringtone.html mtv ringtone] [http://shurrikk.idilis.ro/web/video-paris.html video paris hilton] [http://ronald180.idilis.ro/library/kidney-beans/ kidney beans nutrition info] [http://irina5009189.idilis.ro/penn-station/ penn station in ny] [http://shurrikk.idilis.ro/web/vytorin.html vytorin] [http://lisonka-91.idilis.ro/video-codec/ video codec download] [http://irina5009189.idilis.ro/intercontinental-grand/ intercontinental grand] [http://ronald180.idilis.ro/library/porn-gallery/ porn gallery] [http://shurrikk.idilis.ro/web/nuclear-energy.html nuclear energy time line] [http://ronald180.idilis.ro/library/student-select/ student select insurance] [http://ronald180.idilis.ro/library/business-insurance/ business insurance] [http://ann-eva.idilis.ro/web/angeles-california.html angeles california county los park southern] [http://ronald180.idilis.ro/library/grill-parts/ grill parts] [http://shurrikk.idilis.ro/web/medrol.html medrol] [http://ronald180.idilis.ro/library/add-link/ add link regimens treatment] [http://shurrikk.idilis.ro/web/scion-toyota.html scion toyota] [http://ann-eva.idilis.ro/web/schumacher-fabric.html schumacher fabric] [http://lisonka-91.idilis.ro/virtual-make/ virtual make over sites] [http://shurrikk.idilis.ro/web/the-christies.html the christies] [http://shurrikk.idilis.ro/web/missouri-construction.html missouri construction jobs] [http://irina5009189.idilis.ro/magic-the/ magic the gathering card image] [http://irina5009189.idilis.ro/quit-smoking/ quit smoking laser therapy] [http://ann-eva.idilis.ro/web/trojan-remover.html trojan remover] [http://irina5009189.idilis.ro/vivica-fox/ vivica fox] [http://irina5009189.idilis.ro/toon-porn/ toon porn] [http://ann-eva.idilis.ro/web/earn-money.html earn money] [http://ann-eva.idilis.ro/web/jacob-co.html jacob co replica watch] [http://irina5009189.idilis.ro/manga-girls/ manga girls] [http://lisonka-91.idilis.ro/teen-fucking/ teen fucking] [http://irina5009189.idilis.ro/microsoft-project/ microsoft project viewer downloads] [http://ronald180.idilis.ro/library/ebaums-world/ ebaums world] [http://irina5009189.idilis.ro/miguel-campos/ miguel campos] [http://lisonka-91.idilis.ro/porn-cartoons/ porn cartoons] [http://ronald180.idilis.ro/library/within-temptation/ within temptation music videos] [http://irina5009189.idilis.ro/sweet-asian/ sweet asian girls] [http://shurrikk.idilis.ro/web/recreational.html recreational] [http://ronald180.idilis.ro/library/jeep-wrangler/ jeep wrangler rubicon] [http://lisonka-91.idilis.ro/adderall-side/ adderall side effects] [http://shurrikk.idilis.ro/web/minimum-tax.html minimum tax] [http://ronald180.idilis.ro/library/hard-rock/ hard rock] [http://lisonka-91.idilis.ro/ethnography-conference/ ethnography conference] [http://lisonka-91.idilis.ro/morning-after/ morning after pill washington] [http://shurrikk.idilis.ro/web/royal-shakespeare.html royal shakespeare company] [http://shurrikk.idilis.ro/web/prescription-drugs.html prescription drugs dictionary] [http://ronald180.idilis.ro/library/penile-augmentation/ penile augmentation] [http://irina5009189.idilis.ro/arkansas-fall/ arkansas fall colors] [http://shurrikk.idilis.ro/web/arcade-games.html arcade games] [http://ann-eva.idilis.ro/web/industrial-inmobiliario.html industrial inmobiliario portal] [http://irina5009189.idilis.ro/learn-forex/ learn forex trading best currency exchange rate] [http://ronald180.idilis.ro/library/alternative-treatment/ alternative treatment to knee replacement] [http://irina5009189.idilis.ro/orgy-parties/ orgy parties] [http://irina5009189.idilis.ro/jigsaw-puzzles/ jigsaw puzzles] [http://lisonka-91.idilis.ro/lawyers-title/ lawyers title ins] [http://irina5009189.idilis.ro/shay-sweet/ shay sweet sex] [http://shurrikk.idilis.ro/web/kid-snow.html kid snow] [http://ann-eva.idilis.ro/web/boost-mobile.html boost mobile prepaid cell phone] [http://lisonka-91.idilis.ro/saint-david/ saint david of wales] [http://irina5009189.idilis.ro/kitchen-unit/ kitchen unit dimensions] [http://ronald180.idilis.ro/library/goji-juice/ goji juice] [http://shurrikk.idilis.ro/web/tegretol.html tegretol] [http://ann-eva.idilis.ro/web/steel-building.html steel building florida] [http://irina5009189.idilis.ro/male-breast/ male breast reduction photos] [http://lisonka-91.idilis.ro/chevy-truck/ chevy truck parts] [http://irina5009189.idilis.ro/sampling-bias/ sampling bias] [http://lisonka-91.idilis.ro/she-wants/ she wants to move mp3] [http://ann-eva.idilis.ro/web/cabinet.html cabinet] [http://irina5009189.idilis.ro/riverside-ca/ riverside ca realtors] [http://lisonka-91.idilis.ro/kosmetik-video/ kosmetik video] [http://lisonka-91.idilis.ro/students-pearsoned/ students pearsoned] [http://lisonka-91.idilis.ro/copeland-compressor/ copeland compressor] [http://ronald180.idilis.ro/library/free-bearshare/ free bearshare download] [http://lisonka-91.idilis.ro/inflamatory-bowel/ inflamatory bowel diseases] [http://lisonka-91.idilis.ro/invention-new/ invention new technological] [http://ann-eva.idilis.ro/web/-michigan.html 1997 michigan football] [http://lisonka-91.idilis.ro/fta-receivers/ fta receivers] [http://ronald180.idilis.ro/library/bigbreast-lovers/ bigbreast lovers] [http://irina5009189.idilis.ro/apex/ apex 32] [http://ann-eva.idilis.ro/web/illinois-outstanding.html illinois outstanding warrants] [http://ann-eva.idilis.ro/web/old-porno.html old porno] [http://shurrikk.idilis.ro/web/size-.html size 10 is fat] [http://ronald180.idilis.ro/library/light-fantastic/ light fantastic let there be light] [http://ronald180.idilis.ro/library/long-celebrity/ long celebrity hair style picture] [http://shurrikk.idilis.ro/web/ramstein-soundtrack.html ramstein soundtrack] [http://ann-eva.idilis.ro/web/us-president.html us president day] [http://ann-eva.idilis.ro/web/hot-cartoons.html hot cartoons] [http://ann-eva.idilis.ro/web/citibank-credit.html citibank credit card] [http://ann-eva.idilis.ro/web/in-between.html in between dreams leaked] [http://lisonka-91.idilis.ro/united-arab/ united arab emirates airline] [http://ann-eva.idilis.ro/web/entrar-en.html entrar en el] [http://ann-eva.idilis.ro/web/driving-map.html driving map] [http://shurrikk.idilis.ro/web/porns.html porns] [http://ann-eva.idilis.ro/web/hair-dryer.html hair dryer] [http://shurrikk.idilis.ro/web/black-woman.html black woman sex] [http://ronald180.idilis.ro/library/leader-health/ leader health and fitness york pa] [http://shurrikk.idilis.ro/web/navia.html navia] [http://ronald180.idilis.ro/library/pontoon-boats/ pontoon boats] [http://irina5009189.idilis.ro/imperial-services/ imperial services collection agency] [http://shurrikk.idilis.ro/web/christian-ringtones.html christian ringtones] [http://irina5009189.idilis.ro/installation-instructions/ installation instructions tile] [http://irina5009189.idilis.ro/mineral-supplements/ mineral supplements zinc] [http://ann-eva.idilis.ro/web/retro-hair.html retro hair products] [http://shurrikk.idilis.ro/web/msnbc-home.html msnbc home page] [http://ann-eva.idilis.ro/web/mplayer-debian.html mplayer debian apt source] [http://lisonka-91.idilis.ro/gibson-sg/ gibson sg guitars] [http://shurrikk.idilis.ro/web/tyra-banks.html tyra banks model show] [http://shurrikk.idilis.ro/web/video-porn.html video porn] [http://ronald180.idilis.ro/library/martinez-california/ martinez california real estate] [http://lisonka-91.idilis.ro/continental-airways/ continental airways] [http://lisonka-91.idilis.ro/live-dj/ live dj sets mp3] [http://irina5009189.idilis.ro/cdkey-powerdvd/ cdkey powerdvd 7] [http://ronald180.idilis.ro/library/blouse/ blouse] [http://irina5009189.idilis.ro/employee-recruitment/ employee recruitment video] [http://lisonka-91.idilis.ro/ac-drive/ ac drive europe in market report research] [http://shurrikk.idilis.ro/web/quick-fix.html quick fix loan paycheck advance] [http://shurrikk.idilis.ro/web/express-payday.html express payday loan] [http://lisonka-91.idilis.ro/diapers/ diapers] [http://ronald180.idilis.ro/library/medical-terminology/ medical terminology] [http://ann-eva.idilis.ro/web/chronoswiss-watch.html chronoswiss watch] [http://irina5009189.idilis.ro/away-message/ away message quotes] [http://shurrikk.idilis.ro/web/trim-kid.html trim kid] [http://ronald180.idilis.ro/library/asian-babes/ asian babes] [http://irina5009189.idilis.ro/wholesale-floating/ wholesale floating candle] [http://ronald180.idilis.ro/library/years-of/ years of college down the drain] [http://shurrikk.idilis.ro/web/california-colleges.html california colleges] [http://irina5009189.idilis.ro/audit-program/ audit program for employee benefit] [http://ronald180.idilis.ro/library/wheels-and/ wheels and tires] [http://irina5009189.idilis.ro/janitorial-supplies/ janitorial supplies cherry almond] [http://irina5009189.idilis.ro/credit-counselors/ credit counselors] [http://lisonka-91.idilis.ro/airport-logan/ airport logan map] [http://ann-eva.idilis.ro/web/free-forex.html free forex online training video] [http://shurrikk.idilis.ro/web/ken-mar.html ken mar] [http://ronald180.idilis.ro/library/mini-choppers/ mini choppers] [http://ann-eva.idilis.ro/web/i-heard.html i heard em say lyrics] [http://shurrikk.idilis.ro/web/simpson.html simpson] [http://shurrikk.idilis.ro/web/international-calling.html international calling card] [http://ann-eva.idilis.ro/web/lay-down.html lay down with me tell me no lies lyrics] == 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 05:14, 7 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