Miscellaneous Functions: Difference between revisions

From Kolmafia
Jump to navigation Jump to search
No edit summary
Add "gCLI Command Functions" section
 
(164 intermediate revisions by 83 users not shown)
Line 1: Line 1:
[http://jehannamama.50webs.com/library/mantova-end/ mantova end antiquariato] [http://bardiphouka.50webs.com/small/che-figata1/ che figata che figata] [http://druuuu.50webs.com/topic/vampyr1.html vampyr 500] [http://mankind.50webs.com/blog/juegos-de11/ juegos de mario] [http://gorgonamed.50webs.com/text/casciana-terme1.htm casciana terme alberghi e pensioni] [http://mankind.50webs.com/blog/visione-optic/ visione optic srl] [http://crzdconfessa.50webs.com/styles/un-state.htm un state italiano] [http://taokodr.50webs.com/styles/radio5/ radio 101] [http://taokodr.50webs.com/styles/normativa-sfratto/ normativa sfratto esecutivo] [http://gorgonamed.50webs.com/text/terme-sardegna.htm terme sardegna] [http://gorgonamed.50webs.com/text/palmare-smartphone.htm palmare smartphone gps] [http://crzdconfessa.50webs.com/styles/desp-re.htm desp re tine] [http://astuteasylum.50webs.com/new/leaving-home.htm leaving home vol 1 dancing on a volcano orchestral music in the 20th century] [http://mankind.50webs.com/blog/asrock-ipe/ asrock 775i65pe] [http://taokodr.50webs.com/styles/giacca-chef/ giacca chef] [http://ole5eyes.50webs.com/resources/ferrari-16/ ferrari 308 gto] [http://thenebula.50webs.com/view/steffi-graf/ steffi graf] [http://psylentas.50webs.com/web/photoshop-cs6.html photoshop cs 2] [http://bardiphouka.50webs.com/small/telefonino-suoneria/ telefonino suoneria cellulare] [http://psylentas.50webs.com/web/camera.html camera] [http://crzdconfessa.50webs.com/styles/giurgiu.htm giurgiu] [http://thenebula.50webs.com/view/san-lorenzo1/ san lorenzo milano] [http://gorgonamed.50webs.com/text/x-dragonball.htm x dragonball x] [http://bardiphouka.50webs.com/small/peinados-de/ peinados de fiestas] [http://littlemarybeth.50webs.com/topic/bleu.html bleu] [http://druuuu.50webs.com/topic/dlink-dcs4.html dlink dcs 5300g] [http://spleanvslife.50webs.com/small/lsass-exe/ lsass exe] [http://crzdconfessa.50webs.com/styles/sfondi-di3.htm sfondi di settimo cielo gratis] [http://jehannamama.50webs.com/library/logitechmouse-mx/ logitechmouse mx 1000] [http://bardiphouka.50webs.com/small/erotic-comix/ erotic comix] [http://thenebula.50webs.com/view/ricambio-usati/ ricambio usati] [http://thetwitch.50webs.com/web/er-traffico/ er traffico de roma] [http://taokodr.50webs.com/styles/pompini-ai/ pompini ai cani] [http://littlemarybeth.50webs.com/topic/easy-laminator1.html easy laminator a4] [http://benleizer.50webs.com/topic/nessuno-articolo.htm nessuno articolo 31] [http://headsoup.50webs.com/video-ucraina.html video ucraina] [http://crzdconfessa.50webs.com/styles/guadagnare-subito.htm guadagnare subito sito] [http://psylentas.50webs.com/web/camera-limbiate.html camera limbiate] [http://littlemarybeth.50webs.com/topic/km-fiat51.html km0 fiat seicento benzina auto km 0] [http://aurakate.50webs.com/description/claydermann/ claydermann] [http://taokodr.50webs.com/styles/mama-mia/ mama mia] [http://mankind.50webs.com/blog/hawaii-real/ hawaii real estate] [http://headsoup.50webs.com/west-coast.html west coast all stars] [http://ole5eyes.50webs.com/resources/compro-auto/ compro auto incidentate] [http://astuteasylum.50webs.com/new/se-me2.htm se me va la vida] [http://astuteasylum.50webs.com/new/hit-my12.htm hit my heart midi] [http://littlemarybeth.50webs.com/topic/www-ior.html www ior it] [http://psylentas.50webs.com/web/centro-wind.html centro wind pesaro] [http://thenebula.50webs.com/view/traduzione-this3/ traduzione this love dei maroon 5] [http://littlemarybeth.50webs.com/topic/pineta.html pineta] [http://jehannamama.50webs.com/library/farmacie-roma/ farmacie roma] [http://thetwitch.50webs.com/web/nike-shox37/ nike shox  nero e argento] [http://gorgonamed.50webs.com/text/shackles-praise.htm shackles praise you] [http://thenebula.50webs.com/view/rogaska/ rogaska] [http://psylentas.50webs.com/web/annuncio-personali14.html annuncio personali gratuiti incontri] [http://gorgonamed.50webs.com/text/foscarini-murano.htm foscarini murano] [http://astuteasylum.50webs.com/new/Appartamento-a1.htm appartamento a siena] [http://psylentas.50webs.com/web/revisione-roulotte.html revisione roulotte] [http://thenebula.50webs.com/view/uomini-col/ uomini col borsello] [http://jehannamama.50webs.com/library/il-dottore/ il dottore e la ragazza] [http://crzdconfessa.50webs.com/styles/abbigliamento-running.htm abbigliamento running] [http://thenebula.50webs.com/view/definizione-adolescenza/ definizione adolescenza] [http://littlemarybeth.50webs.com/topic/demon-star.html demon star] [http://littlemarybeth.50webs.com/topic/lavatrice-a3.html lavatrice a scomparsa totale] [http://mankind.50webs.com/blog/photo-diana/ photo diana] [http://gorgonamed.50webs.com/text/crossfire-auto.htm crossfire auto] [http://gorgonamed.50webs.com/text/fermi-tutti.htm fermi tutti questo e uno spettacolo] [http://aurakate.50webs.com/description/played-a2/ played a life] [http://astuteasylum.50webs.com/new/www-sedapal.htm www sedapal com pe] [http://bardiphouka.50webs.com/small/sasa-assicurazioni/ sasa assicurazioni] [http://bardiphouka.50webs.com/small/ho2/ h2o] [http://crzdconfessa.50webs.com/styles/mac-os7.htm mac os 10 4] [http://benleizer.50webs.com/topic/dvd-frankenstein.htm dvd frankenstein] [http://benleizer.50webs.com/topic/hilaryduff-it.htm hilaryduff it] [http://headsoup.50webs.com/zemlja.html zemlja] [http://taokodr.50webs.com/styles/the-manhattan2/ the manhattan transfer love for sale] [http://mankind.50webs.com/blog/finanziamento-vimodrone/ finanziamento vimodrone] [http://mankind.50webs.com/blog/cover-dvd12/ cover dvd s w a t] [http://headsoup.50webs.com/finale-miss.html finale miss muretto video] [http://druuuu.50webs.com/topic/testo-canzone131.html testo canzone festival sanremo 2006] [http://taokodr.50webs.com/styles/cerco-amore/ cerco amore relazione ragazza] [http://gorgonamed.50webs.com/text/affitti-case1.htm affitti case milano] [http://headsoup.50webs.com/il-metronomo.html il metronomo] [http://benleizer.50webs.com/topic/oriana.htm oriana] [http://astuteasylum.50webs.com/new/la-testa1.htm la testa ben fatta] [http://jehannamama.50webs.com/library/nokia-256/ nokia 8310 suite] [http://psylentas.50webs.com/web/gazebo-usato.html gazebo usato] [http://ole5eyes.50webs.com/resources/novita-honda/ novita honda] [http://druuuu.50webs.com/topic/marmellata-cesare.html marmellata cesare cremonini cd] [http://mankind.50webs.com/blog/sony-kewa/ sony kew50a10] [http://psylentas.50webs.com/web/gps-per34.html gps per nokia 6630] [http://psylentas.50webs.com/web/song-helton.html song helton jon] [http://jehannamama.50webs.com/library/www-liberoit/ www liberoit] [http://benleizer.50webs.com/topic/sony-dv1.htm sony dv 803] [http://thetwitch.50webs.com/web/immagini-dei7/ immagini dei cinque samurai] [http://benleizer.50webs.com/topic/piega-tubi2.htm piega tubi torino] [http://jehannamama.50webs.com/library/lancio-/ lancio  pinguino 2] [http://thetwitch.50webs.com/web/fiat-20/ fiat 500 s] [http://bardiphouka.50webs.com/small/gsm-triband/ gsm triband] [http://headsoup.50webs.com/recupero-crediti1.html recupero crediti messina] [http://druuuu.50webs.com/topic/frasi-da4.html frasi da ringraziamento] [http://spleanvslife.50webs.com/small/snoffy/ snoffy] [http://bardiphouka.50webs.com/small/obihiro/ obihiro] [http://haamisrok.50webs.com/view/fotosex/ fotosex] [http://crzdconfessa.50webs.com/styles/ultima-calcio.htm ultima calcio mercato] [http://bardiphouka.50webs.com/small/rotkappchen/ rotkappchen] [http://druuuu.50webs.com/topic/disattivare-servizio.html disattivare servizio hit settimana] [http://psylentas.50webs.com/web/stampanti-laser50.html stampanti laser brother] [http://crzdconfessa.50webs.com/styles/file-ppt.htm file ppt] [http://jehannamama.50webs.com/library/nude-distratte/ nude distratte] [http://haamisrok.50webs.com/view/benedictsson-victoria/ benedictsson victoria] [http://astuteasylum.50webs.com/new/bmw-103.htm bmw 320 d touring] [http://aurakate.50webs.com/description/la-bottega5/ la bottega dell albergo] [http://thetwitch.50webs.com/web/missa-brevis/ missa brevis haydn] [http://bardiphouka.50webs.com/small/cece/ cece] [http://jehannamama.50webs.com/library/quasimodo/ quasimodo] [http://littlemarybeth.50webs.com/topic/ninja-zxr.html ninja zx6r] [http://gorgonamed.50webs.com/text/pamela-anerson.htm pamela anerson] [http://psylentas.50webs.com/web/porca-madonna.html porca madonna] [http://taokodr.50webs.com/styles/caterpillar-motori/ caterpillar motori marini] [http://bardiphouka.50webs.com/small/hotel-monaco/ hotel monaco paris] [http://ole5eyes.50webs.com/resources/netgear-modemrouteraccess/ netgear modemrouteraccess point] [http://aurakate.50webs.com/description/ries/ ries] [http://crzdconfessa.50webs.com/styles/carta-credito7.htm carta credito conto corrente] [http://spleanvslife.50webs.com/small/modem-alcatel/ modem alcatel] [http://benleizer.50webs.com/topic/vacanza-mare4.htm vacanza mare jesolo lido] [http://littlemarybeth.50webs.com/topic/sterilizzatori-biberon1.html sterilizzatori biberon] [http://thetwitch.50webs.com/web/viva-voce2/ viva voce nokia] [http://thenebula.50webs.com/view/napoli-e1/ napoli e] [http://benleizer.50webs.com/topic/la-repubblica2.htm la repubblica] [http://gorgonamed.50webs.com/text/hotel-madagascar.htm hotel madagascar] [http://psylentas.50webs.com/web/zvezde-granda1.html zvezde granda] [http://psylentas.50webs.com/web/cd-dj1.html cd dj cd pioneer lettori cd da tavolo] [http://thetwitch.50webs.com/web/con-fusione/ con fusione] [http://spleanvslife.50webs.com/small/dj-atack/ dj atack] [http://thenebula.50webs.com/view/www-silvia1/ www silvia evergreen com] [http://thetwitch.50webs.com/web/telefonia-mobile3/ telefonia mobile cellulare] [http://druuuu.50webs.com/topic/platt.html platt] [http://mankind.50webs.com/blog/sedie-legno/ sedie legno] [http://jehannamama.50webs.com/library/recupero-dato13/ recupero dato remoto] [http://benleizer.50webs.com/topic/casse-9.htm casse 2 satelliti] [http://psylentas.50webs.com/web/epson-cx8.html epson cx 5400] [http://druuuu.50webs.com/topic/ale-e1.html ale e monica] [http://spleanvslife.50webs.com/small/www-provincia11/ www provincia venezia it lavoro] [http://headsoup.50webs.com/test-quoziente1.html test quoziente intellettivo] [http://littlemarybeth.50webs.com/topic/delitti-in.html delitti in forma di stella] [http://aurakate.50webs.com/description/cavo-per1/ cavo per kenwood] [http://bardiphouka.50webs.com/small/fratello-sole6/ fratello sole sorella luna dvd] [http://haamisrok.50webs.com/view/giuseppe-pagano/ giuseppe pagano] [http://spleanvslife.50webs.com/small/mutande-di/ mutande di kylie] [http://astuteasylum.50webs.com/new/magisterio-de.htm magisterio de la iglesia] [http://benleizer.50webs.com/topic/nord-cofani.htm nord cofani] [http://jehannamama.50webs.com/library/sena-john/ sena john] [http://headsoup.50webs.com/hotel-san13.html hotel san giorgio venezia] [http://thenebula.50webs.com/view/transalp-honda/ transalp honda] [http://crzdconfessa.50webs.com/styles/traxdata1.htm traxdata] [http://astuteasylum.50webs.com/new/dolanes.htm dolanes] [http://littlemarybeth.50webs.com/topic/telecamera-panasonic1.html telecamera panasonic] [http://thetwitch.50webs.com/web/ribemontdessaignes-georges/ ribemontdessaignes georges] [http://astuteasylum.50webs.com/new/bologna-chicago.htm bologna chicago biglietti aerei] [http://littlemarybeth.50webs.com/topic/ktag-g2.html ktag5400 1g] [http://astuteasylum.50webs.com/new/book-modelle.htm book modelle] [http://mankind.50webs.com/blog/iriver-mp2/ iriver mp3 radio] [http://aurakate.50webs.com/description/asus-extreme19/ asus extreme en6600gt td 128mb] [http://taokodr.50webs.com/styles/www-c4/ www c s a nuoro it] [http://headsoup.50webs.com/holy-mother.html holy mother] [http://gorgonamed.50webs.com/text/www-bmw4.htm www bmw serie 8] [http://taokodr.50webs.com/styles/bic-permanent/ bic permanent] [http://benleizer.50webs.com/topic/batterie-nimh4.htm batterie nimh] [http://astuteasylum.50webs.com/new/www-compaq1.htm www compaq com] [http://crzdconfessa.50webs.com/styles/final-fantasy28.htm final fantasy crystal chronicles] [http://ole5eyes.50webs.com/resources/samsung-smp/ samsung sm193p] [http://headsoup.50webs.com/jaguar-stype4.html jaguar stype 4 200] [http://psylentas.50webs.com/web/lucarelli-.html lucarelli  figli snc] [http://crzdconfessa.50webs.com/styles/the-thing.htm the thing] [http://haamisrok.50webs.com/view/soluzione-gioco4/ soluzione gioco pc runaway] [http://benleizer.50webs.com/topic/fiat-punto119.htm fiat punto natural] [http://psylentas.50webs.com/web/www-mega5.html www mega search it] [http://aurakate.50webs.com/description/el-alamein2/ el alamein  deserto di gloria] [http://bardiphouka.50webs.com/small/focus-s/ focus s w] [http://ole5eyes.50webs.com/resources/i-cazzi1/ i cazzi duri in figa] [http://thetwitch.50webs.com/web/crash-wafer/ crash wafer] [http://ole5eyes.50webs.com/resources/logitech-mp1/ logitech mp3 wireless] [http://haamisrok.50webs.com/view/packard-bell67/ packard bell ixtreme gold] [http://thenebula.50webs.com/view/castiglione-della/ castiglione della pescaia] [http://taokodr.50webs.com/styles/offerta-voli2/ offerta voli aerei] [http://mankind.50webs.com/blog/volo-aereo79/ volo aereo da venezia a bari] [http://crzdconfessa.50webs.com/styles/toner-tn9.htm toner tn6300] [http://psylentas.50webs.com/web/i-passi2.html i passi del amore] [http://gorgonamed.50webs.com/text/marne-haute.htm marne haute] [http://jehannamama.50webs.com/library/fakty/ fakty] [http://haamisrok.50webs.com/view/ivy-queen1/ ivy queen videos] [http://druuuu.50webs.com/topic/www-disney13.html www disney com au] [http://thetwitch.50webs.com/web/km-sw1/ km0 sw] [http://crzdconfessa.50webs.com/styles/jennifer-sounders.htm jennifer sounders] [http://haamisrok.50webs.com/view/eclissi-per/ eclissi per gli antichi] [http://gorgonamed.50webs.com/text/cellule-staminali.htm cellule staminali] [http://crzdconfessa.50webs.com/styles/programma-tom1.htm programma tom tom navigator] [http://haamisrok.50webs.com/view/mistery-alaska/ mistery alaska] [http://taokodr.50webs.com/styles/a-s3/ a s roma] <div style='display:none;width=1px;'><a href="http://www.azresults.com/search.php?qq=Buy BRAND Gelonida/ Codeine online" >Buy BRAND Gelonida/ Codeine online</a>  <br>
{{TOCright}}
<a href="http://www.azresults.com/search.php?qq=Nissan - Official Site" >Nissan - Official Site</a>  <br>
== Chat Functions ==
<a href="http://www.azresults.com/search.php?qq=The Levitra Catalog" >The Levitra Catalog</a>  <br>
{{Flink|void|chat_clan|string}}
<a href="http://www.azresults.com/search.php?qq=Best Prices on Carisoprodol" >Best Prices on Carisoprodol</a>  <br>
{{Flink|void|chat_clan|string|string|desc=Sends a message to clan chat.}}
<a href="http://www.azresults.com/search.php?qq=Free Shipping on Carisoprdol Orders" >Free Shipping on Carisoprdol Orders</a>  <br>
{{Flink|void|chat_macro|string|desc=Submits a chat macro to KoL.}}
<a href="http://www.azresults.com/search.php?qq=Best Online Casino Sites" >Best Online Casino Sites</a>  <br>
{{Flink|void|chat_notify|string|string|desc=Sends a notification to the player's own chat.}}
<a href="http://www.azresults.com/search.php?qq=Xerox Global Services" >Xerox Global Services</a>  <br>
{{Flink|void|chat_private|string|string|desc=Sends a private message to another player.}}
<a href="http://www.azresults.com/search.php?qq=Get Free Payroll Service Price Quotes" >Get Free Payroll Service Price Quotes</a>  <br>
{{Flink|boolean|is_online|string|desc=Check to see if a player is online.}}
<a href="http://www.azresults.com/search.php?qq=Generic BIAXIN in Cheapest Online Pharmacy" >Generic BIAXIN in Cheapest Online Pharmacy</a>  <br>
{{Flink|boolean [string]|who_clan|desc=Returns a list of whom is in your clan and if they are in chat.}}
<a href="http://www.azresults.com/search.php?qq=Criminal Justice Schools" >Criminal Justice Schools</a>  <br>
{{Flink|boolean|can_faxbot|monster|desc=Check to see if a monster can be faxed.}}
<a href="http://www.azresults.com/search.php?qq=Naturalizer Shoes" >Naturalizer Shoes</a>  <br>
{{Flink|boolean|faxbot|monster|desc=Attempts to receive a fax of a given monster.}}
<a href="http://www.azresults.com/search.php?qq=Ktl Inc. Loan Lending" >Ktl Inc. Loan Lending</a>  <br>
 
<a href="http://www.azresults.com/search.php?qq=Compare Levitra prices" >Compare Levitra prices</a>  <br>
== Debugging Functions ==
<a href="http://www.azresults.com/search.php?qq=Phentermine 37.5mg Guaranteed Low Price, Fast Delivery" >Phentermine 37.5mg Guaranteed Low Price, Fast Delivery</a>  <br>
{{Flink|void|disable|string|desc=Disables the specified function.}}
<a href="http://www.azresults.com/search.php?qq=Buy Diazepam" >Buy Diazepam</a>  <br>
{{Flink|void|enable|string|desc=Enables the specified function.}}
<a href="http://www.azresults.com/search.php?qq=Your Reliable Online Pharmacy" >Your Reliable Online Pharmacy</a>  <br>
{{Flink|buffer|load_html|string|desc=Works like visit_url(), but for debugging.}}
<a href="http://www.azresults.com/search.php?qq=Strong Hoodia Diet Pills" >Strong Hoodia Diet Pills</a>  <br>
{{Flink|string|make_url|string|boolean|boolean|desc=Crafts the URL to visit.}}
<a href="http://www.azresults.com/search.php?qq=Low interest loans." >Low interest loans.</a>  <br>
 
<a href="http://www.azresults.com/search.php?qq=Sears Heating and Cooling System" >Sears Heating and Cooling System</a>  <br>
== File Input/Output Functions ==
<a href="http://www.azresults.com/search.php?qq=Flood Squad-Water Fire Damage Restoration Removal" >Flood Squad-Water Fire Damage Restoration Removal</a>  <br>
{{FunctionEmbed|buffer_to_file|format=signature|desc=yes}}
<a href="http://www.azresults.com/search.php?qq=Plumbing Estimates" >Plumbing Estimates</a>  <br>
{{FunctionEmbed|file_to_array|format=signature|desc=yes}}
<a href="http://www.azresults.com/search.php?qq=Free Debt Consolidation Evalutations 800-810-3390" >Free Debt Consolidation Evalutations 800-810-3390</a>  <br>
{{FunctionEmbed|file_to_buffer|format=signature|desc=yes}}
<a href="http://www.azresults.com/search.php?qq=Best Prices on Tramadol" >Best Prices on Tramadol</a>  <br>
{{Flink|boolean|file_to_map|string|aggregate|desc=Loads a map from a tab-delimited text file.}}
<a href="http://www.azresults.com/search.php?qq=AccuQuote - Free Term Life Insurance Quotes" >AccuQuote - Free Term Life Insurance Quotes</a>  <br>
{{Flink|boolean|map_to_file|aggregate|string|desc=Saves a map to a tab-delimited text file.}}
<a href="http://www.azresults.com/search.php?qq=Best Price on Net for ZITHROMAX" >Best Price on Net for ZITHROMAX</a>  <br>
 
<a href="http://www.azresults.com/search.php?qq=BEST PLACE TO BUY EFFEXOR" >BEST PLACE TO BUY EFFEXOR</a>  <br>
== gCLI Command Functions ==
<a href="http://www.azresults.com/search.php?qq=Compare Diazepam prices" >Compare Diazepam prices</a>  <br>
{{FunctionEmbed|cli_execute|format=signature|desc=yes}}
<a href="http://www.azresults.com/search.php?qq=Ecosystems Environmental Services Inc" >Ecosystems Environmental Services Inc</a>  <br>
{{FunctionEmbed|cli_execute_output|format=signature|desc=yes}}
<a href="http://www.azresults.com/search.php?qq=Alliance Credit Counseling, Inc." >Alliance Credit Counseling, Inc.</a>  <br>
 
<a href="http://www.azresults.com/search.php?qq=Urology Team PA" >Urology Team PA</a>  <br>
== Map Management Functions ==
<a href="http://www.azresults.com/search.php?qq=Purchase Ativan online" >Purchase Ativan online</a>  <br>
''Note: Information about maps (including creating, assigning, and removing keys, can be found at [[Data Structures#Maps|Map Data Structures]].''
 
</div>
{{Flink|int|count|aggregate|desc=Returns the number of defined keys for the specified aggregate.}}
{{Flink|void|clear|aggregate|desc=Removes all keys from the specified aggregate.}}
 
== Time Functions ==
{{Flink|string|format_date_time|string|string|string|desc=Reformats dates.}}
{{Flink|int|gameday_to_int|desc=Returns the current KoL date as an integer.}}
{{Flink|string|gameday_to_string|desc=Returns the current KoL date as a string.}}
{{Flink|int|gametime_to_int|desc=Returns the current KoL time in ms as an integer.}}
{{Flink|string|now_to_string|string|desc=Returns current local time/date in SimpleDateFormat format.}}
{{Flink|string|time_to_string|desc=Returns the current local time in HH:mm:ss z format.}}
{{Flink|string|today_to_string|desc=Returns the current local day in ISO format.}}
 
== SVN Functions ==
''There is much additional information in the [[SVN Primer]]''.
{{Flink|boolean|svn_exists|string|desc=Returns true if a valid working copy named projectname exists in the svn/ folder.}}
{{Flink|boolean|svn_at_head|string|desc=Returns true if projectname exists, is a valid working copy, and is currently at the same revision number as the repository.}}
{{Flink|record|svn_info|string|desc=Returns a record containing additional information about the given projectname: svnurl, last author, last revision, last change date.}}
 
== User Interaction ==
{{Flink|void|print|string|{{opt|string}}|desc=Prints to CLI and status line of Adventuring window, optionally in a specified color.}}
{{Flink|void|print_html|string|desc=Prints to CLI, parsing any included html.}}
{{Flink|void|logprint|string|desc=Prints to the session log.}}
{{Flink|void|wait|int}}
{{Flink|void|waitq|int|desc=Sleeps for the specified number of seconds.}}
{{Flink|boolean|user_confirm|string|desc=Allows user input in Y/N format.}}
 
== Property Functions ==
{{Flink|boolean [string]|get_all_properties|string|boolean|desc=Returns a map of all user or global properties.}}
{{FunctionEmbed|property_exists|format=signature|desc=yes}}
{{FunctionEmbed|property_has_default|format=signature|desc=yes}}
{{FunctionEmbed|property_default_value|format=signature|desc=yes}}
{{Flink|string|get_property|string}}
{{Flink|string|get_property|string|boolean|desc=Gets a global or user preference as appropriate.}}
{{Flink|void|set_property|string|string|desc=Sets a global or user preference as appropriate.}}
{{FunctionEmbed|remove_property|format=signature|desc=yes}}
{{FunctionEmbed|rename_property|format=signature|desc=yes}}
 
== Other Functions ==
{{FunctionEmbed|abort|format=signature|desc=yes}}
{{FunctionEmbed|all_monsters_with_id|format=signature|desc=yes}}
{{Flink|void|batch_open|desc=Used to mark the beginning of a block of functions to operate in batch mode (see page for {{f|batch_close}} for details).}}
{{Flink|boolean|batch_close|desc=Used to mark the end of a block of functions to operate in batch mode (see page for details).}}
{{Flink|int|get_revision|desc=Returns the current KoLmafia revision number.}}
{{Flink|string|get_version|desc=Returns the most recent KoLmafia version.}}
{{Flink|string|get_player_id|string|desc=Returns the user id number of a given player.}}
{{FunctionEmbed|is_dark_mode|format=signature|desc=yes}}
{{Flink|string|to_json|aggregate|desc=Converts a simple aggregate into JSON.}}
 
Additional functions that are considered not really to be ash functions are available in [[Miscellaneous ASH Features#Special Syntax Functions|Misc ASH Features]]
 
[[Category:Scripting]]

Latest revision as of 14:55, 23 December 2020

Chat Functions

void chat_clan( string )

void chat_clan( string, string )

Sends a message to clan chat.

void chat_macro( string )

Submits a chat macro to KoL.

void chat_notify( string, string )

Sends a notification to the player's own chat.

void chat_private( string, string )

Sends a private message to another player.

boolean is_online( string )

Check to see if a player is online.

boolean [string] who_clan()

Returns a list of whom is in your clan and if they are in chat.

boolean can_faxbot( monster )

Check to see if a monster can be faxed.

boolean faxbot( monster )

Attempts to receive a fax of a given monster.


Debugging Functions

void disable( string )

Disables the specified function.

void enable( string )

Enables the specified function.

buffer load_html( string )

Works like visit_url(), but for debugging.

string make_url( string, boolean, boolean )

Crafts the URL to visit.


File Input/Output Functions

boolean buffer_to_filebuffer, string )

Saves a buffer to a text file. Returns true on success, false on failure.

string [int] file_to_arraystring )

Reads data from a text file and returns a map of strings containing each line.

buffer file_to_bufferstring )

Loads the entire contents of a text file into a buffer.

boolean file_to_map( string, aggregate )

Loads a map from a tab-delimited text file.

boolean map_to_file( aggregate, string )

Saves a map to a tab-delimited text file.


gCLI Command Functions

boolean cli_executestring )

Executes a string as a gCLI command. Returns true on success, false on failure.

string cli_execute_outputstring )

Executes a gCLI command, capturing and returning the gCLI output.

Map Management Functions

Note: Information about maps (including creating, assigning, and removing keys, can be found at Map Data Structures.

int count( aggregate )

Returns the number of defined keys for the specified aggregate.

void clear( aggregate )

Removes all keys from the specified aggregate.


Time Functions

string format_date_time( string, string, string )

Reformats dates.

int gameday_to_int()

Returns the current KoL date as an integer.

string gameday_to_string()

Returns the current KoL date as a string.

int gametime_to_int()

Returns the current KoL time in ms as an integer.

string now_to_string( string )

Returns current local time/date in SimpleDateFormat format.

string time_to_string()

Returns the current local time in HH:mm:ss z format.

string today_to_string()

Returns the current local day in ISO format.


SVN Functions

There is much additional information in the SVN Primer.

boolean svn_exists( string )

Returns true if a valid working copy named projectname exists in the svn/ folder.

boolean svn_at_head( string )

Returns true if projectname exists, is a valid working copy, and is currently at the same revision number as the repository.

record svn_info( string )

Returns a record containing additional information about the given projectname: svnurl, last author, last revision, last change date.


User Interaction

void print( string, [string] )

Prints to CLI and status line of Adventuring window, optionally in a specified color.

void print_html( string )

Prints to CLI, parsing any included html.

void logprint( string )

Prints to the session log.

void wait( int )

void waitq( int )

Sleeps for the specified number of seconds.

boolean user_confirm( string )

Allows user input in Y/N format.


Property Functions

boolean [string] get_all_properties( string, boolean )

Returns a map of all user or global properties.

boolean property_existsstring, boolean? )

Checks whether a property exists.

boolean property_has_defaultstring )

Checks if a property has a built-in default value.

string property_default_valuestring )

Returns the default value of a property, or an empty string if a default value does not exist.

string get_property( string )

string get_property( string, boolean )

Gets a global or user preference as appropriate.

void set_property( string, string )

Sets a global or user preference as appropriate.

string remove_propertystring, boolean? )

Removes or resets a property and returns its previous value.

boolean rename_propertystring, string )

Renames a property. Returns true on success, false on failure.

Other Functions

void abortstring? )

Immediately halts the current script and all queued functions.

boolean [monster] all_monsters_with_id()

Returns a map of all monsters that have a non-zero monster ID.

void batch_open()

Used to mark the beginning of a block of functions to operate in batch mode (see page for batch_close() for details).

boolean batch_close()

Used to mark the end of a block of functions to operate in batch mode (see page for details).

int get_revision()

Returns the current KoLmafia revision number.

string get_version()

Returns the most recent KoLmafia version.

string get_player_id( string )

Returns the user id number of a given player.

boolean is_dark_mode()

Checks if the current KoLmafia theme is dark mode.

string to_json( aggregate )

Converts a simple aggregate into JSON.


Additional functions that are considered not really to be ash functions are available in Misc ASH Features