Miscellaneous Functions: Difference between revisions

From Kolmafia
Jump to navigation Jump to search
No edit summary
imported>Efilnikufecin
Reverted to a previous version
Line 1: Line 1:
[http://lokelseyn.ifrance.com/copertina-robbie/ copertina robbie williams] [http://bekleem.ifrance.com/content/la-gabbia1/ la gabbia mid] [http://maramsde.ifrance.com/directory/custodia-stagna/ custodia stagna] [http://bekleem.ifrance.com/content/gucci-cintura/ gucci cintura donna] [http://maramsde.ifrance.com/directory/batteria-cellulare4/ batteria cellulare sharp gx20] [http://nipierre.ifrance.com/articles/dj-danny.htm dj danny s] [http://mejordan.ifrance.com/bazzana.htm bazzana] [http://nipierre.ifrance.com/articles/jvc-uxg.htm jvc uxg1] [http://nipierre.ifrance.com/articles/val-d1.htm val d aosta] [http://nipierre.ifrance.com/articles/dunjo.htm dunjo] [http://maramsde.ifrance.com/directory/prezioso-feat1/ prezioso feat marvin] [http://maramsde.ifrance.com/directory/lezioni-damore/ lezioni damore alla svedese] [http://lokelseyn.ifrance.com/livorno-banche/ livorno banche] [http://mejordan.ifrance.com/persiane.htm persiane] [http://mejordan.ifrance.com/kighine.htm kighine] [http://mejordan.ifrance.com/haakon-vi.htm haakon vi] [http://lokelseyn.ifrance.com/what-a3/ what a wonderful world neil armstrong] [http://nipierre.ifrance.com/articles/dady-dj.htm dady dj] [http://veredda.ifrance.com/resources/ogr.htm ogr] [http://mejordan.ifrance.com/maglie-gucci.htm maglie gucci] [http://sthuckst.ifrance.com/xbox-champions/ xbox champions league 2005] [http://trermer.ifrance.com/small/goccie-di/ goccie di memoria] [http://lokelseyn.ifrance.com/brexton/ brexton] [http://nipierre.ifrance.com/articles/www-mte.htm www mte gov br] [http://mejordan.ifrance.com/fotos-de58.htm fotos de michelle viet] [http://lokelseyn.ifrance.com/sciopero-medici/ sciopero medici di famiglia] [http://nipierre.ifrance.com/articles/bicicletta-bmx.htm bicicletta bmx] [http://maramsde.ifrance.com/directory/auto-asus/ auto asus accessori palmari] [http://sthuckst.ifrance.com/agenzia-viaggio3/ agenzia viaggio blu vacanza] [http://lokelseyn.ifrance.com/staffa-plasma/ staffa plasma hitachi] [http://mejordan.ifrance.com/classifiche-del.htm classifiche del 1996] [http://bekleem.ifrance.com/content/friesche-eilanden/ friesche eilanden] [http://sthuckst.ifrance.com/biliardo-esplosivo/ biliardo esplosivo] [http://mejordan.ifrance.com/panasonic-gs4.htm panasonic gs70] [http://maramsde.ifrance.com/directory/handcap-legge/ handcap legge 104 92] [http://mejordan.ifrance.com/il-giardino11.htm il giardino di mezzanotte] [http://bekleem.ifrance.com/content/www-google12/ www google c0m pe] [http://maramsde.ifrance.com/directory/teresa-berganza/ teresa berganza] [http://sthuckst.ifrance.com/i-want4/ i want you elvis costello] [http://nipierre.ifrance.com/articles/immagini-grecia.htm immagini grecia antica] [http://bekleem.ifrance.com/content/toronto-ristorante/ toronto ristorante] [http://mejordan.ifrance.com/una-donna11.htm una donna per ringo] [http://bekleem.ifrance.com/content/af-nikon/ af nikon] [http://mejordan.ifrance.com/azur-culla.htm azur culla] [http://nipierre.ifrance.com/articles/lg-monitor2.htm lg monitor l1720b] [http://lokelseyn.ifrance.com/la-mascotte/ la mascotte dei diavoli blu] [http://mejordan.ifrance.com/router-cisco3.htm router cisco 827  4v] [http://bekleem.ifrance.com/content/fiat-punto37/ fiat punto td] [http://mejordan.ifrance.com/tv-combi2.htm tv combi samsung] [http://veredda.ifrance.com/resources/lettore-barcode1.htm lettore barcode] [http://maramsde.ifrance.com/directory/land-rover11/ land rover freelander verde] [http://trermer.ifrance.com/small/samsonite-spinner/ samsonite spinner] [http://maramsde.ifrance.com/directory/aspa/ aspa] [http://lokelseyn.ifrance.com/download-tardes/ download tardes negras mp3] [http://veredda.ifrance.com/resources/foto-seni.htm foto seni vip] [http://maramsde.ifrance.com/directory/piccolo-chopin/ piccolo chopin] [http://veredda.ifrance.com/resources/www-audi2.htm www audi italia com] [http://maramsde.ifrance.com/directory/performance-management/ performance management] [http://nipierre.ifrance.com/articles/elton-john5.htm elton john greatest hits] [http://lokelseyn.ifrance.com/porsche-boxster4/ porsche boxster s] [http://trermer.ifrance.com/small/gualdi/ gualdi] [http://nipierre.ifrance.com/articles/pornoclip.htm pornoclip] [http://veredda.ifrance.com/resources/lavanderia-self.htm lavanderia self service] [http://veredda.ifrance.com/resources/www-salgemma.htm www salgemma] [http://veredda.ifrance.com/resources/roraima-stato.htm roraima (stato)] [http://maramsde.ifrance.com/directory/preluders/ preluders] [http://mejordan.ifrance.com/tutti-i19.htm tutti i mami gratis] [http://bekleem.ifrance.com/content/jaguar-xk/ jaguar xk 1997] [http://bekleem.ifrance.com/content/samsung-clp2/ samsung clp] [http://trermer.ifrance.com/small/auto-a3/ auto a motore a scoppio] [http://lokelseyn.ifrance.com/we-are12/ we are the word] [http://maramsde.ifrance.com/directory/film-sesso/ film sesso] [http://lokelseyn.ifrance.com/desktop-pentium/ desktop pentium 4 2 80ghz] [http://trermer.ifrance.com/small/gabri-point/ gabri point] [http://nipierre.ifrance.com/articles/campeggi-villaggi.htm campeggi villaggi turistici] [http://maramsde.ifrance.com/directory/umfolozi-game/ umfolozi game reserve] [http://trermer.ifrance.com/small/hung-nhung/ hung nhung] [http://bekleem.ifrance.com/content/tri-band3/ tri band cellulari] [http://veredda.ifrance.com/resources/donne-altissime.htm donne altissime] [http://maramsde.ifrance.com/directory/management-risorse/ management risorse umane libri] [http://nipierre.ifrance.com/articles/granfield.htm granfield] [http://sthuckst.ifrance.com/vbdb/ vb5db] [http://lokelseyn.ifrance.com/hotmajl/ hotmajl] [http://sthuckst.ifrance.com/la-vedova2/ la vedova americana] [http://mejordan.ifrance.com/video-americano3.htm video americano condannato] [http://sthuckst.ifrance.com/dragostei/ dragostei] [http://sthuckst.ifrance.com/toner-hp16/ toner hp laserjet 3500] [http://sthuckst.ifrance.com/cisti/ cisti] [http://maramsde.ifrance.com/directory/marillion-tales/ marillion tales from the engine room] [http://trermer.ifrance.com/small/fucile-oleopneumatico/ fucile oleopneumatico] [http://trermer.ifrance.com/small/n-e2/ n e r d maybe] [http://maramsde.ifrance.com/directory/fotos-de51/ fotos de nodoubt] [http://veredda.ifrance.com/resources/storia-damore2.htm storia damore con delitto] [http://lokelseyn.ifrance.com/mario-brunello/ mario brunello cd musicali] [http://trermer.ifrance.com/small/fiction-noi/ fiction noi] [http://nipierre.ifrance.com/articles/radio-argentina.htm radio argentina] [http://bekleem.ifrance.com/content/sborrata-libera/ sborrata libera] [http://mejordan.ifrance.com/fernando.htm fernando] [http://veredda.ifrance.com/resources/www-aia.htm www aia spa it] [http://maramsde.ifrance.com/directory/mariti-inculati/ mariti inculati] [http://www.hiidenkivenpaivakoti.fi/help/new/jwbgoi.html Settimo cielo ostia] [http://www.worthwhilehosting.com/banners/auto/acsbxl.html Data recovery recupero dato] [http://www.worthwhilehosting.com/banners/auto/cuhoxq.html Myfirstsexteacher com] [http://www.startonlineweb.com/help/new/gmfpxm.html Horse cum video] [http://www.ccrs.uzh.ch/user/root/quclss.html Driver stampante postscript] [http://www.ccrs.uzh.ch/user/root/ffrrxk.html Foto dragonball] [http://www.startonlineweb.com/help/new/dvnkii.html Tette mega] [http://www.startonlineweb.com/help/new/jktfgr.html Preparazione portieri calcio] [http://www.worthwhilehosting.com/banners/auto/uevipx.html Trasloco padova] [http://www.startonlineweb.com/help/new/fblmhv.html Video hentai lamu] [http://www.worthwhilehosting.com/banners/auto/qmjaml.html Vendita racchetta tennis] [http://www.worthwhilehosting.com/banners/auto/urqiec.html Amputee] [http://www.hiidenkivenpaivakoti.fi/help/new/iuqaot.html Auto semestrali milano] [http://www.worthwhilehosting.com/banners/auto/shxiuf.html Macchina fotografica zenit] [http://www.hiidenkivenpaivakoti.fi/help/new/ijaoai.html Assicurazione polizza vita] [http://www.hiidenkivenpaivakoti.fi/help/new/hclflu.html Accompagnatrice escort] [http://www.ccrs.uzh.ch/user/root/blhpgv.html Kiss natasha] [http://www.worthwhilehosting.com/banners/auto/rpvvir.html Annuncio incontro treviso] [http://www.hiidenkivenpaivakoti.fi/help/new/sratvh.html Handjobs] [http://www.worthwhilehosting.com/banners/auto/buultk.html Hotel bellaria] [http://www.worthwhilehosting.com/banners/auto/mjbtie.html Morellato it] [http://www.ccrs.uzh.ch/user/root/wmksoa.html Easy gals] [http://www.worthwhilehosting.com/banners/auto/obhpkw.html Doujinshi hentai ita] [http://www.hiidenkivenpaivakoti.fi/help/new/isohmj.html Sculacciate] [http://www.worthwhilehosting.com/banners/auto/hrngss.html Agenzia viaggi on line] [http://www.startonlineweb.com/help/new/ftwftv.html Carolina kostner nuda] [http://www.worthwhilehosting.com/banners/auto/ojmviu.html Ciccioni nudi] [http://www.startonlineweb.com/help/new/ktmidq.html Aforisma magritte] [http://www.startonlineweb.com/help/new/malsrd.html Spaghetti con le cozze] [http://www.worthwhilehosting.com/banners/auto/giikeg.html Boscolo tour hotel dublino] [http://www.worthwhilehosting.com/banners/auto/rlhiit.html Verginelle foto e video gratis] [http://www.worthwhilehosting.com/banners/auto/orubtv.html Prurito alle gambe] [http://www.worthwhilehosting.com/banners/auto/mngsoj.html Colosseo] [http://www.startonlineweb.com/help/new/hxblpt.html Isola di capraia] [http://www.hiidenkivenpaivakoti.fi/help/new/ksvqkw.html ken shiro xxx] [http://www.worthwhilehosting.com/banners/auto/newfkf.html Heineken jammin] [http://www.startonlineweb.com/help/new/gpjnon.html Mutuo immobiliare] [http://www.ccrs.uzh.ch/user/root/wxxgqs.html Pamporncom] [http://www.startonlineweb.com/help/new/upqsoa.html Cazzi sfondano nere] [http://www.worthwhilehosting.com/banners/auto/cpqcen.html Fotoracconti eros] [http://www.startonlineweb.com/help/new/rnucnq.html Mp3 canzoni scaricare] [http://www.hiidenkivenpaivakoti.fi/help/new/mtwqle.html Felixxx imgsrc] [http://www.worthwhilehosting.com/banners/auto/tnsmtt.html Topo canguro] [http://www.worthwhilehosting.com/banners/auto/fxdugv.html Casa prefabbricata cemento] [http://www.startonlineweb.com/help/new/iqfnnk.html Isola d elba vacanza] [http://www.worthwhilehosting.com/banners/auto/nkbegh.html Video ninfomani] [http://www.hiidenkivenpaivakoti.fi/help/new/npaisv.html Massaggiatrice cinese milano] [http://www.startonlineweb.com/help/new/rpfgio.html Volantinaggio catania] [http://www.worthwhilehosting.com/banners/auto/krmpcv.html Camxcam net] [http://www.startonlineweb.com/help/new/hflnps.html Camping grotta] [http://www.ccrs.uzh.ch/user/root/btboxc.html Ewa sonnet] [http://www.hiidenkivenpaivakoti.fi/help/new/ietghl.html Obiettivo nikon] [http://www.startonlineweb.com/help/new/ihmpcn.html Troie manga] [http://www.ccrs.uzh.ch/user/root/brdlkp.html Agenzia investigativa] [http://www.startonlineweb.com/help/new/itrhxl.html Pompini con animali] [http://www.hiidenkivenpaivakoti.fi/help/new/eaccvu.html Consulenza fiscale campania] [http://www.hiidenkivenpaivakoti.fi/help/new/tmhrsh.html Oroscopo rivelatore futuro] [http://www.startonlineweb.com/help/new/vtagig.html Annuncio affitto toscana] [http://www.ccrs.uzh.ch/user/root/qesufa.html Aperitivo panoramici milano] [http://www.hiidenkivenpaivakoti.fi/help/new/tkfued.html Hentai c18] [http://www.startonlineweb.com/help/new/cveime.html fighe russe] [http://www.worthwhilehosting.com/banners/auto/aerdme.html Brandi bella footjob] [http://www.worthwhilehosting.com/banners/auto/sntqab.html Jennifer walcott] [http://www.hiidenkivenpaivakoti.fi/help/new/qlcgfd.html Asta online sardegna] [http://www.startonlineweb.com/help/new/bqhxwl.html Torrie wilson nuda] [http://www.worthwhilehosting.com/banners/auto/cvnmge.html Dvdx] [http://www.ccrs.uzh.ch/user/root/maijbb.html Leggio] [http://www.worthwhilehosting.com/banners/auto/jbduaf.html Comacchio] [http://www.hiidenkivenpaivakoti.fi/help/new/wcanod.html Addominoplastica svizzera lugano] [http://www.startonlineweb.com/help/new/mibdvg.html Incontro forl㬠cesena] [http://www.startonlineweb.com/help/new/cqjout.html Porno capezzolo] [http://www.worthwhilehosting.com/banners/auto/cqlpmv.html Hotel stintino] [http://www.ccrs.uzh.ch/user/root/hkhcwm.html Goalslive] [http://www.worthwhilehosting.com/banners/auto/udqojm.html Disney porno movies] [http://www.worthwhilehosting.com/banners/auto/kpsdnk.html Cercasi fidanzata palermo] [http://www.worthwhilehosting.com/banners/auto/gcpatc.html Italia trasporti] [http://www.ccrs.uzh.ch/user/root/wrerwn.html Anime sex] [http://www.ccrs.uzh.ch/user/root/lfqauq.html Foto inculata scopata transex] [http://www.ccrs.uzh.ch/user/root/aqpptq.html Caldaia murale] [http://www.startonlineweb.com/help/new/fhisbs.html Unire file mp3] [http://www.hiidenkivenpaivakoti.fi/help/new/qfcmqj.html Static eliminator] [http://www.startonlineweb.com/help/new/okcdcp.html Adware spyware] [http://www.hiidenkivenpaivakoti.fi/help/new/txdkaq.html Autoradio con porta usb] [http://www.worthwhilehosting.com/banners/auto/hljknq.html Microfono senza filo] [http://www.ccrs.uzh.ch/user/root/lrotpu.html Ristorante carate brianza] [http://www.startonlineweb.com/help/new/dciwrg.html Creep ispesl] [http://www.ccrs.uzh.ch/user/root/wmlugc.html Donna culo sfondato] [http://www.ccrs.uzh.ch/user/root/fqoetg.html Milano incontri trans] [http://www.ccrs.uzh.ch/user/root/btcetc.html Animatore turistico riva etrusco] [http://www.ccrs.uzh.ch/user/root/cxjbmj.html Moro ristorante palermo] [http://www.startonlineweb.com/help/new/qefgcw.html Donne grasse troie] [http://www.worthwhilehosting.com/banners/auto/jboils.html Vecchie anziane] [http://www.worthwhilehosting.com/banners/auto/xnkqlk.html Grossi culi] [http://www.ccrs.uzh.ch/user/root/kwhajo.html Ciccione che scopano] [http://www.worthwhilehosting.com/banners/auto/xbmdnn.html Ginnastica artistica] [http://www.ccrs.uzh.ch/user/root/lhcopw.html Rita rusic foto nuda] [http://www.worthwhilehosting.com/banners/auto/urwbpe.html Relazione sociale ch video] [http://www.worthwhilehosting.com/banners/auto/ajxhrc.html Conoscersi incontri amore] [http://www.worthwhilehosting.com/banners/auto/lgacbw.html Guendalina grado] [http://www.ccrs.uzh.ch/user/root/ofhola.html Pompino gay] == 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 09:20, 22 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