Miscellaneous Functions: Difference between revisions

From Kolmafia
Jump to navigation Jump to search
No edit summary
imported>EEPiccolo
No edit summary
Line 1: Line 1:
[http://aipir-ine.ifrance.com/hotel-cesena/ hotel cesena] [http://away-warf.ifrance.com/new/itinerari-irlanda/ itinerari irlanda] [http://luzerna-reviver.ifrance.com/text/ariston-incasso.htm ariston incasso lavastoviglie] [http://roma-uid.ifrance.com/lib/temi-svolti27.htm temi svolti] [http://away-warf.ifrance.com/new/martin-sheen/ martin sheen] [http://vlut-enya.ifrance.com/text/acer-42/ acer 19 lcd al1912] [http://corvisn-rnum.ifrance.com/lib/stampante-portatile1/ stampante portatile canon] [http://vlut-enya.ifrance.com/text/canzone-carmina/ canzone carmina] [http://lezew0our.ifrance.com/description/sea-lion.htm sea lion sas] [http://mise-efaith.ifrance.com/balme.htm balme] [http://rjste-boat.ifrance.com/articles/strategia-formativa/ strategia formativa libri] [http://rut-hete.ifrance.com/directory/registratore-video2.htm registratore video audio] [http://luzerna-reviver.ifrance.com/text/camera-innsbruck.htm camera innsbruck] [http://vlut-enya.ifrance.com/text/codacons-roma/ codacons roma benzina] [http://kzer-ncer.ifrance.com/library/televisori-al31.htm televisori al plasma 37 pollici] [http://mise-efaith.ifrance.com/shirer-william.htm shirer william lawrence] [http://lezew0our.ifrance.com/description/ferrari-immagini.htm ferrari immagini] [http://away-warf.ifrance.com/new/la-notte26/ la notte dei demoni] [http://mani-ndon.ifrance.com/new/testi-di37/ testi di grease in italiano] [http://tanya-abramova.ifrance.com/html/ragazze-perizoma/ ragazze perizoma] [http://mise-efaith.ifrance.com/vasilis-karras.htm vasilis karras] [http://luzerna-reviver.ifrance.com/text/tv-lcd114.htm tv lcd 17 hyundai] [http://dtyc-seti.ifrance.com/new/bomboniera-milano.htm bomboniera milano] [http://lezew0our.ifrance.com/description/prestito-capri.htm prestito capri] [http://mani-ndon.ifrance.com/new/ete-indien/ ete indien] [http://away-warf.ifrance.com/new/usumacinta/ usumacinta] [http://chri-ari.ifrance.com/directory/kyd.htm kyd] [http://pho-enixt.ifrance.com/styles/discorsi-hitler/ discorsi hitler] [http://luzerna-reviver.ifrance.com/text/lupo-2.htm lupo 1 4 tdi] [http://rjste-boat.ifrance.com/articles/ospedale-gradenigo/ ospedale gradenigo torino] [http://corvisn-rnum.ifrance.com/lib/e-sia/ e sia cosi] [http://luzerna-reviver.ifrance.com/text/vinovo.htm vinovo] [http://citize-snips.ifrance.com/blog/danger-zone1/ danger zone top gun] [http://kzer-ncer.ifrance.com/library/skinhead.htm skinhead] [http://tanya-abramova.ifrance.com/html/i-cavalieri13/ i cavalieri dello zodiaco  la leggenda] [http://lezew0our.ifrance.com/description/zuma-bear.htm zuma bear and cat] [http://corvisn-rnum.ifrance.com/lib/brocure/ brocure] [http://carolli-nne.ifrance.com/text/configurazione-computer/ configurazione computer] [http://lezew0our.ifrance.com/description/smell-like3.htm smell like teen spirits] [http://luzerna-reviver.ifrance.com/text/lago-di8.htm lago di como] [http://rjste-boat.ifrance.com/articles/la-notte28/ la notte del grande assalto] [http://rjste-boat.ifrance.com/articles/tarantola-origini/ tarantola origini] [http://mise-efaith.ifrance.com/modulo-memoria.htm modulo memoria 512 mb] [http://vlut-enya.ifrance.com/text/ketchup/ ketchup] [http://rut-hete.ifrance.com/directory/porno-annunci1.htm porno annunci] [http://citize-snips.ifrance.com/blog/cinquemiglia/ cinquemiglia] [http://rjste-boat.ifrance.com/articles/profumo-valentino/ profumo valentino classic] [http://rut-hete.ifrance.com/directory/i-banditi1.htm i banditi] [http://roma-uid.ifrance.com/lib/kit-piscina.htm kit piscina] [http://chri-ari.ifrance.com/directory/www-highschool.htm www highschool com] [http://mani-ndon.ifrance.com/new/supporto-auto12/ supporto auto accessori palmari 9090] [http://dtyc-seti.ifrance.com/new/massa-di.htm massa di somma] [http://aipir-ine.ifrance.com/rcm/ rcm] [http://aipir-ine.ifrance.com/nidi-aziendali/ nidi aziendali a verona] [http://pho-enixt.ifrance.com/styles/nazional-italiana/ nazional italiana] [http://corvisn-rnum.ifrance.com/lib/www-cartoon12/ www cartoon network com ar] [http://away-warf.ifrance.com/new/mac-donald1/ mac donald] [http://citize-snips.ifrance.com/blog/www-the13/ www the darkness] [http://carolli-nne.ifrance.com/text/kiko/ kiko] [http://lezew0our.ifrance.com/description/tv-usb4.htm tv usb digitale analogico] [http://tanya-abramova.ifrance.com/html/autocad-6/ autocad 2004 ita] [http://carolli-nne.ifrance.com/text/gambe-collant/ gambe collant] [http://rut-hete.ifrance.com/directory/lumix-dmc5.htm lumix dmc fz2] [http://mani-ndon.ifrance.com/new/cool-shen/ cool shen] [http://citize-snips.ifrance.com/blog/concorsi-per10/ concorsi per call center] [http://citize-snips.ifrance.com/blog/azione-immediata/ azione immediata] [http://vlut-enya.ifrance.com/text/anthoscopus/ anthoscopus] [http://carolli-nne.ifrance.com/text/lavorazioni-meccaniche2/ lavorazioni meccaniche] [http://carolli-nne.ifrance.com/text/launeddas/ launeddas] [http://vlut-enya.ifrance.com/text/canzone-juve/ canzone juve storia di un grande amore] [http://kzer-ncer.ifrance.com/library/defend-castel.htm defend castel] [http://leg-erasin.ifrance.com/description/enercom.htm enercom] [http://away-warf.ifrance.com/new/cassa-integrazione1/ cassa integrazione regolamento] [http://vlut-enya.ifrance.com/text/accessori-per36/ accessori per palmari m500] [http://corvisn-rnum.ifrance.com/lib/www-gruesom/ www gruesom videos com] [http://leg-erasin.ifrance.com/description/dvd-di1.htm dvd di pulizia] [http://rut-hete.ifrance.com/directory/www-il16.htm www il fiume po it] [http://aipir-ine.ifrance.com/tell-me5/ tell me why did fly away] [http://rut-hete.ifrance.com/directory/designers.htm designers] [http://mani-ndon.ifrance.com/new/mar-menor/ mar menor] [http://dtyc-seti.ifrance.com/new/fisio-cellulari.htm fisio cellulari philips] [http://rjste-boat.ifrance.com/articles/uso-capione/ uso capione] [http://leg-erin.ifrance.com/new/chat-singoli/ chat singoli] [http://vlut-enya.ifrance.com/text/floyd-cramer/ floyd cramer] [http://rut-hete.ifrance.com/directory/www-djtommyvee.htm www djtommyvee com] [http://kzer-ncer.ifrance.com/library/furto-contro.htm furto contro furto] [http://away-warf.ifrance.com/new/black-jack/ black jack off] [http://citize-snips.ifrance.com/blog/robbie-willians2/ robbie willians] [http://citize-snips.ifrance.com/blog/movimento-cantautori/ movimento cantautori] [http://corvisn-rnum.ifrance.com/lib/video-soldato/ video soldato americano] [http://roma-uid.ifrance.com/lib/samsung32.htm samsung 19] [http://mani-ndon.ifrance.com/new/radeon-x20/ radeon x850 xt platinum] [http://mani-ndon.ifrance.com/new/trekking-casio/ trekking casio orologi] [http://away-warf.ifrance.com/new/giochi-psp1/ giochi psp sony] [http://leg-erin.ifrance.com/new/bubbles-trouble/ bubbles trouble 2] [http://chri-ari.ifrance.com/directory/video-hard28.htm video hard con laura andresan] [http://mise-efaith.ifrance.com/sapphicerotica.htm sapphicerotica] [http://aipir-ine.ifrance.com/hobbies/ hobbies] [http://carolli-nne.ifrance.com/text/mp-prendimi/ mp3 prendimi renato zero] [http://carolli-nne.ifrance.com/text/celler/ celler 55] [http://tanya-abramova.ifrance.com/html/inquinamento-a/ inquinamento a kabul] [http://kzer-ncer.ifrance.com/library/laszlo.htm laszlo] [http://rjste-boat.ifrance.com/articles/una-patch7/ una patch anche per world war ii frontline command] [http://lezew0our.ifrance.com/description/stivali-paciotti1.htm stivali paciotti] [http://mani-ndon.ifrance.com/new/di-capri/ di capri] [http://corvisn-rnum.ifrance.com/lib/il-cavallo/ il cavallo dacciaio] [http://mani-ndon.ifrance.com/new/ups-i/ ups i did it again] [http://away-warf.ifrance.com/new/donald-ragazzo/ donald ragazzo] [http://corvisn-rnum.ifrance.com/lib/casio-qv1/ casio qv r62] [http://corvisn-rnum.ifrance.com/lib/ris-delitti/ ris delitti imperfetti] [http://pho-enixt.ifrance.com/styles/hp-93/ hp 6110 nx] [http://leg-erasin.ifrance.com/description/de-grenet2.htm de grenet topless] [http://corvisn-rnum.ifrance.com/lib/ati-controller/ ati controller] [http://leg-erin.ifrance.com/new/all-star12/ all star converse nero] [http://leg-erasin.ifrance.com/description/la-macchina7.htm la macchina nera] [http://dtyc-seti.ifrance.com/new/microsoft-xp2.htm microsoft xp pro ita oem] [http://kzer-ncer.ifrance.com/library/ingrassata.htm ingrassata] [http://chri-ari.ifrance.com/directory/wiv1.htm wiv] [http://away-warf.ifrance.com/new/chun-hsing/ chun hsing] [http://carolli-nne.ifrance.com/text/beretta-armi/ beretta armi] [http://citize-snips.ifrance.com/blog/idee-sui/ idee sui regali di natale] [http://vlut-enya.ifrance.com/text/foame/ foame] [http://vlut-enya.ifrance.com/text/fotocamera-amstrad/ fotocamera amstrad] [http://lezew0our.ifrance.com/description/televisore-portatile4.htm televisore portatile 6] [http://dtyc-seti.ifrance.com/new/nike-parfum.htm nike parfum] [http://rjste-boat.ifrance.com/articles/gina-lee1/ gina lee nolin] [http://carolli-nne.ifrance.com/text/fred-buscaglione/ fred buscaglione] [http://lezew0our.ifrance.com/description/dupree.htm dupree] [http://away-warf.ifrance.com/new/a-story/ a story of britain] [http://lezew0our.ifrance.com/description/finanziamento-rimini.htm finanziamento rimini] [http://away-warf.ifrance.com/new/osanna-he/ osanna he] [http://vlut-enya.ifrance.com/text/club-pive/ club pive veneto] [http://carolli-nne.ifrance.com/text/www-team/ www team cristo] [http://dtyc-seti.ifrance.com/new/piedi-video1.htm piedi video gratis] [http://roma-uid.ifrance.com/lib/mid-nait.htm mid nait clab] [http://rjste-boat.ifrance.com/articles/footprint/ footprint] [http://lezew0our.ifrance.com/description/enya-mp.htm enya mp3] [http://rut-hete.ifrance.com/directory/dissipatori-per8.htm dissipatori per p4 775] [http://leg-erasin.ifrance.com/description/telefonico.htm telefonico] [http://luzerna-reviver.ifrance.com/text/hsw-nokia.htm hs11w nokia] [http://pho-enixt.ifrance.com/styles/giacobbe/ giacobbe] [http://dtyc-seti.ifrance.com/new/piccole-anime.htm piccole anime] [http://citize-snips.ifrance.com/blog/la-donna57/ la donna ombra] [http://luzerna-reviver.ifrance.com/text/video-di90.htm video di britney spears] [http://chri-ari.ifrance.com/directory/la-canzone34.htm la canzone i giovani di jovanotti] [http://chri-ari.ifrance.com/directory/california-dreaming9.htm california dreaming royal] [http://chri-ari.ifrance.com/directory/negri.htm negri] [http://leg-erasin.ifrance.com/description/elenco-abbonati11.htm elenco abbonati nome anna] [http://aipir-ine.ifrance.com/recensioni-film1/ recensioni film] [http://leg-erin.ifrance.com/new/scacchiere/ scacchiere] [http://mise-efaith.ifrance.com/dolce-.htm dolce 6 gabbana] [http://vlut-enya.ifrance.com/text/poesie-sul1/ poesie sul natale] [http://dtyc-seti.ifrance.com/new/delta-airlines.htm delta airlines] [http://lezew0our.ifrance.com/description/pizzica-minore.htm pizzica minore] [http://lezew0our.ifrance.com/description/il-comandante.htm il comandante johnny] [http://luzerna-reviver.ifrance.com/text/www-truongton.htm www truongton net] [http://vlut-enya.ifrance.com/text/dragostei-din3/ dragostei din tei dj ross] [http://away-warf.ifrance.com/new/www-dj1/ www dj ralf it] [http://tanya-abramova.ifrance.com/html/eos-d15/ eos 20d corpo] [http://carolli-nne.ifrance.com/text/commento-e/ commento e parafrasi de lo giglio quand] [http://pho-enixt.ifrance.com/styles/volim-te/ volim te mrzim te] [http://corvisn-rnum.ifrance.com/lib/memory-di/ memory di barbara streisand] [http://leg-erasin.ifrance.com/description/parole-pigro.htm parole pigro pino daniele] [http://vlut-enya.ifrance.com/text/pottery-ancient/ pottery ancient roman] [http://roma-uid.ifrance.com/lib/un-paradiso.htm un paradiso senza biliardo] [http://chri-ari.ifrance.com/directory/jacksonville-hotel.htm jacksonville hotel] [http://chri-ari.ifrance.com/directory/philips-telecomando.htm philips telecomando universale] [http://rjste-boat.ifrance.com/articles/weekend-cowboy/ weekend cowboy] [http://aipir-ine.ifrance.com/maxtor-23/ maxtor 160 gb ata] [http://away-warf.ifrance.com/new/peppino-di5/ peppino di capri midi gratis] [http://away-warf.ifrance.com/new/bagno-turco2/ bagno turco milano] [http://mise-efaith.ifrance.com/panasonic-nvgsegs3.htm panasonic nvgs150egs] [http://corvisn-rnum.ifrance.com/lib/la-figlia19/ la figlia di dartagnan] [http://lezew0our.ifrance.com/description/truchi-counter.htm truchi counter strike] [http://tanya-abramova.ifrance.com/html/inni-e4/ inni e canti fascisti] [http://vlut-enya.ifrance.com/text/fanatica/ fanatica] [http://pho-enixt.ifrance.com/styles/drivers-webcam/ drivers webcam] [http://tanya-abramova.ifrance.com/html/www-lunapop/ www lunapop com] [http://roma-uid.ifrance.com/lib/soluzioni-chase.htm soluzioni chase the express] [http://mani-ndon.ifrance.com/new/jambo-bwana/ jambo bwana] [http://leg-erasin.ifrance.com/description/fare-qualcosa.htm fare qualcosa] [http://pho-enixt.ifrance.com/styles/sexercise/ sexercise] [http://away-warf.ifrance.com/new/www-clafoutis/ www clafoutis it] [http://carolli-nne.ifrance.com/text/gemini-cd/ gemini cd] [http://leg-erasin.ifrance.com/description/fiat-punto107.htm fiat punto sporting] [http://mise-efaith.ifrance.com/occasioni.htm occasioni] [http://vlut-enya.ifrance.com/text/calamo/ calamo] [http://corvisn-rnum.ifrance.com/lib/nina-sky4/ nina sky jabba] [http://away-warf.ifrance.com/new/cruciverba-sull/ cruciverba sull economia] [http://leg-erasin.ifrance.com/description/sussudio.htm sussudio] [http://kzer-ncer.ifrance.com/library/estee-lauder13.htm estee lauder daywear plus] [http://carolli-nne.ifrance.com/text/hair-styles/ hair styles] [http://roma-uid.ifrance.com/lib/wrestling-wwe1.htm wrestling wwe survivor series] [http://tanya-abramova.ifrance.com/html/ramla/ ramla] [http://citize-snips.ifrance.com/blog/dlink-dfw/ dlink dfw500] [http://rjste-boat.ifrance.com/articles/chaquira/ chaquira] [http://mise-efaith.ifrance.com/kit-casse1.htm kit casse sony] [http://vlut-enya.ifrance.com/text/la-giacca1/ la giacca rossa] [http://leg-erasin.ifrance.com/description/dvd-rip.htm dvd rip] [http://away-warf.ifrance.com/new/plotter-hp7/ plotter hp a0] == 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 6: Line 6:


<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 />
Does nothing for the desired number of 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 14:54, 24 September 2007

Part 7 - Miscellaneous

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

void print( string helloworld )
Prints the given string to the graphical CLI window and to the status line of the main Adventuring window

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 )
Does nothing for the desired number of 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