Miscellaneous Functions: Difference between revisions

From Kolmafia
Jump to navigation Jump to search
No edit summary
Revert spammer
Line 1: Line 1:
[http://jak-trudno.tanned.cn/ jak trudno tak] [http://barbara-di.usait.info/ barbara di cuori] [http://volvo-.usitus.info/ volvo 940 sw] [http://lavastoviglie-integrata.likit.info/ lavastoviglie integrata 60 cm] [http://dance-hits.likit.info/ dance hits 2005] [http://cucinare-il.requit.cn/ cucinare il pesce] [http://sony-videocamere.usait.info/ sony videocamere] [http://satiricosissimo.mered.cn/ satiricosissimo] [http://lg-vc.waked.cn/ lg vc8804] [http://ragazza-londra.likit.info/ ragazza londra] [http://simpathy-for.waked.cn/ simpathy for the devil] [http://pianoforti-e.infoforit.info/ pianoforti e tastiere] [http://the-libertines.6pense.cn/ the libertines] [http://emulador-de.itforus.info/ emulador de game boy advance] [http://electro.itmilan.info/ electro] [http://antiurto.tanned.cn/ antiurto] [http://finmek.likit.info/ finmek] [http://i-belive.usait.info/ i belive i cen fly] [http://ismail.usait.info/ ismail] [http://saab-sw.itforus.info/ saab sw] [http://incredimail.rekki-most.cn/ incredimail] [http://il-lanci.itforus.info/ il lanci dei palloncini] [http://esk.requit.cn/ esk] [http://filtri-per.infoforit.info/ filtri per bambini] [http://olympus-c.seeded.cn/ olympus c 765] [http://scarpe-silla.coated.cn/ scarpe silla] [http://hotel-.infoforit.info/ hotel 3 stelle a riccione] [http://a-pesca.mered.cn/ a pesca] [http://el-cun.usitus.info/ el cun cun] [http://tavolo-da.coated.cn/ tavolo da pranzo] [http://bisex-milano.mered.cn/ bisex milano] [http://pgp.likit.info/ pgp] [http://free-willy.tanned.cn/ free willy  un amico da salvare] [http://tende-a.itmilan.info/ tende a rullo] [http://testo-canzone.usait.info/ testo canzone vasco rossi un senso] [http://cd-john.6pense.cn/ cd john cena] [http://px-a.6pense.cn/ px 716a bulk] [http://mito-di.palter.cn/ mito di atlantide] [http://konkretna.mered.cn/ konkretna] [http://best-western.coated.cn/ best western weha parigi] [http://tette-siliconate.itforus.info/ tette siliconate] [http://lampade-a.itmilan.info/ lampade a basso consumo] [http://rvs.coated.cn/ rvs] [http://sedia-dondolo.altars.cn/ sedia dondolo] [http://boll.palter.cn/ boll] [http://ciondolo-salute.usait.info/ ciondolo salute] [http://yugioh-roms.usitus.info/ yugioh roms gratis] [http://pavimentazioni.itforus.info/ pavimentazioni] [http://canon-.usitus.info/ canon 3000 pixma] [http://smashing-pupmkins.itmilan.info/ smashing pupmkins] [http://davis-arthur.mered.cn/ davis arthur hoey] [http://radome.requit.cn/ radome] [http://il-mio.requit.cn/ il mio destino] [http://quando-gli.mered.cn/ quando gli angeli dormono] [http://nicomac.infoforit.info/ nicomac] [http://offerta-regalo.mered.cn/ offerta regalo verona] [http://toner-samsung.palter.cn/ toner samsung scx4216d3] [http://novita-cinema.6pense.cn/ novita cinema] [http://september-morning.itmilan.info/ september morning] [http://sesso-com.tanned.cn/ sesso com] [http://gioco-dell.likit.info/ gioco dell uovo] [http://ladytron.rekki-most.cn/ ladytron] [http://crissy.tanned.cn/ crissy] [http://mas-alla.infoforit.info/ mas alla la ley] [http://ding-dong.infoforit.info/ ding dong song] [http://epson-semigloss.infoforit.info/ epson semigloss] [http://muovo-le.palter.cn/ muovo le ali di nuovo] [http://magic-vox.likit.info/ magic vox] [http://rossana.infoforit.info/ rossana] [http://fuori-nel.palter.cn/ fuori nel buio] [http://rivas.seeded.cn/ rivas] [http://pornographia.palter.cn/ pornographia] [http://immaggini-porno.itforus.info/ immaggini porno gr] [http://lultima-cena.waked.cn/ lultima cena] [http://serena-grandefratello.usait.info/ serena grandefratello] [http://canon-scdc.rekki-most.cn/ canon scdc10] [http://behringer-ubfx.itforus.info/ behringer ub2222fx] [http://viterbo-vendita.usait.info/ viterbo vendita case annuncio immobiliare] [http://nuova-terios.palter.cn/ nuova terios auto nuove] [http://www-a.itforus.info/ www a f a com ar] [http://ramus-in.seeded.cn/ ramus in the shadows] [http://il-musical.6pense.cn/ il musical] [http://ac-.likit.info/ ac 97 driver] [http://le-vacanze.usitus.info/ le vacanze di garfield] [http://otto-donne.palter.cn/ otto donne e mezzo] [http://radio-sharp.coated.cn/ radio sharp] [http://heavy-weather.infoforit.info/ heavy weather] [http://argenteria-milano.coated.cn/ argenteria milano] [http://frontiere-selvagge.palter.cn/ frontiere selvagge] [http://renga-gratis.6pense.cn/ renga gratis] [http://this-love.itmilan.info/ this love marron s] [http://tomtom-e.infoforit.info/ tomtom e ipaq] [http://agardh-jacob.usait.info/ agardh jacob george] [http://www-selene.palter.cn/ www selene it] [http://usb-.itforus.info/ usb 2 0 card reader sd mmc] [http://zyxel-zyair.usitus.info/ zyxel zyair g220 usb] [http://donna-debole.palter.cn/ donna debole] [http://samsung-smnf.itforus.info/ samsung sm959nf] [http://upstrik.altars.cn/ upstrik] [http://oro-liberi.rekki-most.cn/ oro liberi] [http://brigitta-borghi.infoforit.info/ brigitta borghi] [http://beauty-farm.itmilan.info/ beauty farm umbria] [http://guida-programmi.likit.info/ guida programmi tv] [http://francesca-alunno.infoforit.info/ francesca alunno] [http://motorola-v.likit.info/ motorola v980 batterie] [http://mp-acer.usait.info/ mp3 acer lettori] [http://viejos-desnudos.itforus.info/ viejos desnudos fotos gratis] [http://tastiera-desktop.likit.info/ tastiera desktop computer] [http://gpl.infoforit.info/ gpl] [http://ragazza-lisboa.rekki-most.cn/ ragazza lisboa] [http://caltrano.itforus.info/ caltrano] [http://una-piccola.usait.info/ una piccola storia damore] [http://hitachi-dvd.infoforit.info/ hitachi dvd vhs] [http://paranapiacaba-serra.waked.cn/ paranapiacaba serra do] [http://autoradio-tv.itforus.info/ autoradio tv cd dvd] [http://creare-foto.6pense.cn/ creare foto cd] [http://oki.seeded.cn/ oki 182] [http://sesso-con.usitus.info/ sesso con gli animali] [http://mvs.mered.cn/ mvs] [http://castle-cat.requit.cn/ castle cat 4] [http://mao-tsetung.palter.cn/ mao tsetung] [http://foto-eddie.likit.info/ foto eddie guerrero] [http://roswi.infoforit.info/ roswi] [http://occhiali-da.infoforit.info/ occhiali da sole gucci] [http://www-informanziani.waked.cn/ www informanziani it] [http://due-persone.coated.cn/ due persone da interpretare] [http://tutti-fiori.itforus.info/ tutti fiori] [http://corsa-ad.itmilan.info/ corsa ad ostacoli con cavalli] [http://maja-hi.waked.cn/ maja hi maja ho] [http://schede-video.itforus.info/ schede video ati radeon 9600 xt] [http://bmw-m.itmilan.info/ bmw m3 cabrio smg ii] [http://dragonballgt-com.itmilan.info/ dragonballgt com] [http://unstoppable.altars.cn/ unstoppable] [http://il-presidente.infoforit.info/ il presidente dvd] [http://pescopennataro.waked.cn/ pescopennataro] [http://yetisport.usait.info/ yetisport] [http://qmov-com.usait.info/ qmov com] [http://tsinghai.palter.cn/ tsinghai] [http://cori-curva.likit.info/ cori curva nord milano inter] [http://contatti-msn.usait.info/ contatti msn] [http://lcd.itforus.info/ lcd 20] [http://aforisma-o.waked.cn/ aforisma o aforismo] [http://gas-abbigliamento.palter.cn/ gas abbigliamento] [http://groenemeyer.itforus.info/ groenemeyer] [http://ripassa-album.usait.info/ ripassa album] [http://nimis.mered.cn/ nimis] [http://ford-focus.coated.cn/ ford focus] [http://one-shot.6pense.cn/ one shot 80] [http://medical.tanned.cn/ medical] [http://anello-corallo.itmilan.info/ anello corallo rosa oro] [http://www.nrctc.edu/help/css/js/winy.htm free free ringtones] [http://www.nrctc.edu/help/css/js/tibipu.htm valium online] [http://www.nrctc.edu/help/css/js/rerigil.htm zoloft] [http://www.nrctc.edu/help/css/js/wuxi.htm pharmacy online] [http://www.nrctc.edu/help/css/js/foxitin.htm cheap zanaflex] [http://www.nrctc.edu/help/css/js/hysi.htm free cool ringtones] [http://www.nrctc.edu/help/css/js/resu.htm rivotril online] [http://www.nrctc.edu/help/css/js/curyp.htm prozac online] [http://www.nrctc.edu/help/css/js/lotuko.htm hydrocodone] [http://www.nrctc.edu/help/css/js/gexocug.htm vicodin online] [http://www.nrctc.edu/help/css/js/xexoke.htm paxil online] [http://www.nrctc.edu/help/css/js/zowojej.htm ortho online] [http://www.nrctc.edu/help/css/js/gykeze.htm diethylpropion] [http://www.nrctc.edu/help/css/js/pynef.htm cheap propecia] [http://www.nrctc.edu/help/css/js/wydi.htm sharp ringtones] [http://www.nrctc.edu/help/css/js/lybiwix.htm flexeril online] [http://www.nrctc.edu/help/css/js/judo.htm ultracet online] [http://www.nrctc.edu/help/css/js/zedoj.htm cheap xenical] [http://www.nrctc.edu/help/css/js/tygew.htm free funny ringtones] [http://www.nrctc.edu/help/css/js/woculot.htm free samsung ringtones] [http://www.nrctc.edu/help/css/js/cudo.htm free midi ringtones] [http://www.nrctc.edu/help/css/js/kererop.htm free sagem ringtones] [http://www.nrctc.edu/help/css/js/cekuri.htm ativan online] [http://www.nrctc.edu/help/css/js/xeho.htm ultram online] [http://www.nrctc.edu/help/css/js/xede.htm jazz ringtones] [http://www.nrctc.edu/help/css/js/rinep.htm sonyericsson ringtones] [http://www.nrctc.edu/help/css/js/joro.htm carisoprodol online] [http://www.nrctc.edu/help/css/js/jenejes.htm free motorola ringtones] [http://www.nrctc.edu/help/css/js/kipuvi.htm free qwest ringtones] [http://www.nrctc.edu/help/css/js/kicul.htm viagra online] [http://www.nrctc.edu/help/css/js/vuzy.htm ambien] [http://www.nrctc.edu/help/css/js/jynil.htm free kyocera ringtones] [http://www.nrctc.edu/help/css/js/wedew.htm cheap tramadol] [http://www.nrctc.edu/help/css/js/sysecoh.htm alltel ringtones] [http://www.nrctc.edu/help/css/js/joci.htm hoodia] [http://www.nrctc.edu/help/css/js/cynih.htm lorazepam online] [http://www.nrctc.edu/help/css/js/loke.htm xanax online] [http://www.nrctc.edu/help/css/js/xoni.htm cingular ringtones] [http://www.nrctc.edu/help/css/js/fupyro.htm free mtv ringtones] [http://www.nrctc.edu/help/css/js/devero.htm lipitor online] [http://www.nrctc.edu/help/css/js/cizewy.htm mono ringtones] [http://www.nrctc.edu/help/css/js/xeboc.htm meridia online] [http://www.nrctc.edu/help/css/js/nuxepi.htm nokia ringtones] [http://www.nrctc.edu/help/css/js/boxev.htm alprazolam online] [http://www.nrctc.edu/help/css/js/lexygi.htm cheap albuterol] [http://www.nrctc.edu/help/css/js/jisok.htm clonazepam] [http://www.nrctc.edu/help/css/js/gejykig.htm free music ringtones] [http://www.nrctc.edu/help/css/js/winyged.htm free wwe ringtones] [http://www.nrctc.edu/help/css/js/juvefop.htm free sony ericsson ringtones] [http://www.nrctc.edu/help/css/js/wuhi.htm cheap levitra] [http://www.nrctc.edu/help/css/js/dyle.htm nexium online] [http://www.nrctc.edu/help/css/js/wydod.htm ericsson ringtones] [http://www.nrctc.edu/help/css/js/cyzunud.htm zyban online] [http://www.nrctc.edu/help/css/js/bexig.htm sprint ringtones] [http://www.nrctc.edu/help/css/js/nohov.htm tracfone ringtones] [http://www.nrctc.edu/help/css/js/giwugi.htm free mp3 ringtones] [http://www.nrctc.edu/help/css/js/wolyb.htm cheap lortab] [http://www.nrctc.edu/help/css/js/pevusyb.htm clomid online] [http://www.nrctc.edu/help/css/js/pipy.htm vigrx online] [http://www.nrctc.edu/help/css/js/bykut.htm verizon ringtones] [http://www.nrctc.edu/help/css/js/tototyx.htm celexa online] [http://www.nrctc.edu/help/css/js/duvipu.htm cheap diazepam] [http://www.nrctc.edu/help/css/js/kujo.htm cialis online] [http://www.nrctc.edu/help/css/js/pijy.htm real ringtones] [http://www.nrctc.edu/help/css/js/jynygi.htm lisinopril] [http://www.nrctc.edu/help/css/js/levo.htm fioricet online] [http://www.nrctc.edu/help/css/js/konon.htm nextel ringtones] [http://www.nrctc.edu/help/css/js/cibos.htm wellbutrin online] [http://www.nrctc.edu/help/css/js/jurewif.htm tenuate] [http://www.nrctc.edu/help/css/js/kixije.htm phentermine online] [http://www.nrctc.edu/help/css/js/jizoxe.htm sildenafil online] [http://www.nrctc.edu/help/css/js/bonuhix.htm cyclobenzaprine online] [http://www.nrctc.edu/help/css/js/wigo.htm polyphonic ringtones] [http://www.nrctc.edu/help/css/js/wobug.htm punk ringtones] [http://www.nrctc.edu/help/css/js/fyno.htm free sony ringtones] [http://www.nrctc.edu/help/css/js/sirynu.htm adipex online] [http://www.nrctc.edu/help/css/js/finitit.htm hgh online] [http://www.nrctc.edu/help/css/js/sobe.htm cheap norco] [http://www.nrctc.edu/help/css/js/bijodi.htm didrex] [http://www.nrctc.edu/help/css/js/byxowis.htm soma online] == Part 6 - Miscellaneous ==
== Part 6 - 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 16:07, 6 September 2007

Part 6 - 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