Difference between revisions of "Miscellaneous Functions"

From Kolmafia
Jump to navigation Jump to search
(Add "gCLI Command Functions" section)
 
(209 intermediate revisions by more than 100 users not shown)
Line 1: Line 1:
[http://tyrian.cn/iddoanything.html id do anything] [http://galus.cn/ galus.cn] [http://jaeoong.jino-net.ru/articles/gamefaqs/ gamefaqs] [http://kos-in-off.jino-net.ru/view/rover-6/ rover 216 si] [http://tyrian.cn/leacquedelniagara.html le acque del niagara] [http://jaeoong.jino-net.ru/articles/farm-lessons/ farm lessons 8] [http://listkoshara.jino-net.ru/blog/www-cartoon2/ www cartoon com] [http://wobow.cn/topic/videotettealvento.html Video tette al vento] [http://galus.cn/topic/prezzinikon7900.html prezzi nikon 7900] [http://listkoshara.jino-net.ru/blog/toner-sharp1/ toner sharp al 840] [http://ninus.cn/amdsempron2000/ amd sempron 2000] [http://yanayakunina.jino-net.ru/lib/jeep-cherokee10.htm jeep cherokee 2002] [http://xolia.cn/web/wwwjungcompk.html www jung com pk] [http://wobow.cn/topic/videopornoitalia.html Video porno italia] [http://galus.cn/topic/teoriaavo.html teoria avo] [http://dolem.cn/topic/miltiorrhiza.html miltiorrhiza] [http://jaeoong.jino-net.ru/articles/vacanze-djerba/ vacanze djerba ottobre] [http://xolia.cn/web/tosaerbaautomatico.html tosaerba automatico] [http://listkoshara.jino-net.ru/blog/amox-/ amox 12 cpr 1 g] [http://jaeoong.jino-net.ru/articles/palmare-qtek3/ palmare qtek s100] [http://stetit.cn/blog/ticinocoppie.html ticino coppie] [http://buichi.cn/articles/wwwwinxenchantix.html Www winx enchantix com] [http://dolem.cn/topic/disegnare.html disegnare] [http://kos-in-off.jino-net.ru/view/www-peoresnada/ www peoresnada] [http://stetit.cn/blog/hocuspocus.html hocus pocus] [http://yanayakunina.jino-net.ru/lib/samuel-taylor.htm samuel taylor coleridge] [http://xolia.cn/ xolia.cn] [http://yanayakunina.jino-net.ru/lib/sony-cybershot27.htm sony cybershot dsct33] [http://kos-in-off.jino-net.ru/view/ricette-esotiche/ ricette esotiche] [http://tyrian.cn/fotosexygf5.html foto sexy g f 5] [http://stetit.cn/blog/verbatimvinyl.html verbatim vinyl] [http://jaeoong.jino-net.ru/articles/charlie-browm/ charlie browm j r] [http://kos-in-off.jino-net.ru/view/www-podisti/ www podisti net] [http://jaeoong.jino-net.ru/articles/ti-amo9/ ti amo veramente testo] [http://jaeoong.jino-net.ru/articles/pentium-prescott/ pentium prescott] [http://listkoshara.jino-net.ru/blog/frankstain/ frankstain] [http://yanayakunina.jino-net.ru/lib/finanziamento-fano.htm finanziamento fano] [http://actory.cn/blog/videomammeporche.html Video mamme porche] [http://yanayakunina.jino-net.ru/lib/cerca-le.htm cerca le differenze] [http://yanayakunina.jino-net.ru/lib/fuck-it17.htm fuck it girl testo] [http://xolia.cn/web/caminoimmagini.html camino immagini] [http://wobow.cn/topic/videoscopata.html Video scopata] [http://yanayakunina.jino-net.ru/lib/agenzia-immobiliare13.htm agenzia immobiliare viareggio] [http://listkoshara.jino-net.ru/blog/macchine-utensili/ macchine utensili per il taglio  pezzi ed accesso] [http://jaeoong.jino-net.ru/articles/nane-sexi/ nane sexi] [http://galus.cn/topic/poloniaagenzie.html polonia agenzie matrimoniale] [http://yanayakunina.jino-net.ru/lib/copper-strip.htm copper strip] [http://dolem.cn/topic/termesardara.html terme sardara] [http://jaeoong.jino-net.ru/articles/elves/ elves 2] [http://jaeoong.jino-net.ru/articles/polaris-quod/ polaris quod] [http://galus.cn/topic/wwwjdatecom.html www jdate com] [http://yanayakunina.jino-net.ru/lib/atlas-k1.htm atlas 15k 36gb] [http://kos-in-off.jino-net.ru/view/ecco-le/ ecco le foto di mia moglie] [http://listkoshara.jino-net.ru/blog/csi-crime/ csi crime scene investigation stagione 2] [http://kos-in-off.jino-net.ru/view/spa/ spa 20] [http://listkoshara.jino-net.ru/blog/orologio-cardiaco/ orologio cardiaco] [http://ninus.cn/inghilterraportogallo/ inghilterra portogallo] [http://listkoshara.jino-net.ru/blog/pewee/ pewee] [http://kos-in-off.jino-net.ru/view/inbet/ inbet] [http://actory.cn/blog/videogratisdiscopate.html Video gratis di scopate] [http://listkoshara.jino-net.ru/blog/codici-rsi/ codici rsi] [http://xolia.cn/web/incestuose.html incestuose] [http://jaeoong.jino-net.ru/articles/giochi-femminili/ giochi femminili] [http://xolia.cn/web/bouchetguillaume.html bouchet guillaume sieur de ] [http://listkoshara.jino-net.ru/blog/tom-tom34/ tom tom gps mobile] [http://actory.cn/blog/wwwtroieeputtane.html Www troie e puttane it] [http://listkoshara.jino-net.ru/blog/bigone/ big_one] [http://dolem.cn/topic/ati9200.html ati 9200] [http://jaeoong.jino-net.ru/articles/driver-ati1/ driver ati 3d rage pro] [http://jaeoong.jino-net.ru/articles/hitman1/ hitman 1] [http://listkoshara.jino-net.ru/blog/video-sesso3/ video sesso con cavalli] [http://wobow.cn/ wobow.cn] [http://kos-in-off.jino-net.ru/view/delta-goodream/ delta goodream] [http://xolia.cn/web/rambamalu.html ramba malu] [http://jaeoong.jino-net.ru/articles/porno-filmati/ porno filmati gratis] [http://kos-in-off.jino-net.ru/view/suna-suna/ suna suna] [http://jaeoong.jino-net.ru/articles/x-d2/ x5 d] [http://listkoshara.jino-net.ru/blog/digitale-terrestre16/ digitale terrestre pvr hdd] [http://kos-in-off.jino-net.ru/view/cetriolo-figa/ cetriolo figa foto] [http://buichi.cn/articles/wwwbastardo.html Www bastardo it] [http://stetit.cn/blog/speeadmiralgraf.html spee admiral graf] [http://listkoshara.jino-net.ru/blog/orologi-casio1/ orologi casio oceanus] [http://jaeoong.jino-net.ru/articles/ecs-card/ ecs card reader] [http://jaeoong.jino-net.ru/articles/sony-nw2/ sony nw gb] [http://wobow.cn/topic/villameravigliose.html Villa meravigliose vacanza sicilia mare] [http://kos-in-off.jino-net.ru/view/stansfield/ stansfield] [http://jaeoong.jino-net.ru/articles/piccolo-chopin/ piccolo chopin] [http://jaeoong.jino-net.ru/articles/chimica-e/ chimica e farmacia  macchine e attrezzature] [http://getara.cn/videoalieni/ Video alieni] [http://yanayakunina.jino-net.ru/lib/foto-squadra.htm foto squadra milan] [http://yanayakunina.jino-net.ru/lib/foto-digitali2.htm foto digitali sviluppo] [http://jaeoong.jino-net.ru/articles/hotel-suprem/ hotel suprem] [http://kos-in-off.jino-net.ru/view/piedi-donne/ piedi donne over 50] [http://stetit.cn/blog/colite.html colite] [http://jaeoong.jino-net.ru/articles/palmare-supporto/ palmare supporto auto] [http://kos-in-off.jino-net.ru/view/hip-hop6/ hip hop shqip] [http://jaeoong.jino-net.ru/articles/cabal/ cabal] [http://buichi.cn/articles/xxxmature.html Xxx mature] [http://kos-in-off.jino-net.ru/view/porte-di3/ porte di legno san giovanni al natisone] [http://yanayakunina.jino-net.ru/lib/great-escape.htm great escape] [http://listkoshara.jino-net.ru/blog/c-est/ c est la nuit] [http://ninus.cn/linea7766/ linea 77 66] [http://stetit.cn/ stetit.cn] [http://stetit.cn/blog/europeistreaming.html europei streaming video live] [http://kos-in-off.jino-net.ru/view/mariasole/ mariasole] [http://jaeoong.jino-net.ru/articles/palla-da/ palla da golf] [http://yanayakunina.jino-net.ru/lib/nucleoplasma.htm nucleoplasma] [http://tyrian.cn/ tyrian.cn] [http://listkoshara.jino-net.ru/blog/viaggio-a3/ viaggio a new york] [http://galus.cn/ galus.cn] [http://yanayakunina.jino-net.ru/lib/rimedi-naturali.htm rimedi naturali] [http://listkoshara.jino-net.ru/blog/film-saranno/ film saranno famosi] [http://kos-in-off.jino-net.ru/view/amstrad-sistema/ amstrad sistema home theatre 5 1] [http://kos-in-off.jino-net.ru/view/tiromancino-illusioni/ tiromancino illusioni parallele cd] [http://tyrian.cn/fiuggialbergo.html fiuggi albergo] [http://jaeoong.jino-net.ru/articles/laminite/ laminite] [http://wobow.cn/topic/videopornfree.html Video porn free] [http://kos-in-off.jino-net.ru/view/www-automercato/ www automercato it] [http://ninus.cn/ ninus.cn] [http://kos-in-off.jino-net.ru/view/crv/ crv] [http://dolem.cn/topic/entredosaguas.html entre dos aguas rumba] [http://jaeoong.jino-net.ru/articles/nvidia-geforce23/ nvidia geforce 6600 128] [http://dolem.cn/topic/videoproiettore.html videoproiettore epson lampada] [http://ninus.cn/ ninus.cn] [http://yanayakunina.jino-net.ru/lib/calcio-goteborg.htm calcio goteborg aik st] [http://jaeoong.jino-net.ru/articles/mercurial-calcio/ mercurial calcio] [http://yanayakunina.jino-net.ru/lib/ibm-x1.htm ibm x206] [http://jaeoong.jino-net.ru/articles/pxa-phone/ pxa270 phone] [http://listkoshara.jino-net.ru/blog/canon-a5/ canon a3 stampante] [http://listkoshara.jino-net.ru/blog/pris-hilton/ pris hilton] [http://dolem.cn/ dolem.cn] [http://yanayakunina.jino-net.ru/lib/benassi-bros7.htm benassi bros i ft dhany hit my heart mp3] [http://ninus.cn/abitagp8x/ abit agp 8x] [http://yanayakunina.jino-net.ru/lib/la-gigi.htm la gigi] [http://stetit.cn/blog/soundsticksii.html soundsticks ii] [http://xolia.cn/web/naganowinter.html nagano winter olympics 98] [http://wobow.cn/ wobow.cn] [http://wobow.cn/topic/videoingoio.html Video ingoio] [http://jaeoong.jino-net.ru/articles/posizionamento-testa1/ posizionamento testa ai motore ricerca] [http://jaeoong.jino-net.ru/articles/hp-n4/ hp n 344] [http://kos-in-off.jino-net.ru/view/www-stress/ www stress di notte it] [http://listkoshara.jino-net.ru/blog/pornoxxx/ pornoxxx] [http://getara.cn/uomininudifamosi/ Uomini nudi famosi] [http://wobow.cn/topic/videojamesblunt.html Video james blunt goodbye my lover] [http://listkoshara.jino-net.ru/blog/lorenzo-jovanotti/ lorenzo jovanotti] [http://listkoshara.jino-net.ru/blog/eiffel-2/ eiffel 65 johnny grey] [http://kos-in-off.jino-net.ru/view/agenzia-immobiliare12/ agenzia immobiliare piemonte] [http://stetit.cn/blog/alfaromeo156.html alfa romeo 156 2004] [http://kos-in-off.jino-net.ru/view/risparmio-banche/ risparmio banche] [http://tyrian.cn/lievitodibirra.html lievito di birra] [http://jaeoong.jino-net.ru/articles/camper-wingamm/ camper wingamm] [http://actory.cn/blog/videokellymadison.html Video kelly madison] [http://stetit.cn/blog/addictionpinball.html addiction pinball] [http://jaeoong.jino-net.ru/articles/aspire-centrino/ aspire centrino] [http://yanayakunina.jino-net.ru/lib/testo-canzone42.htm testo canzone lo strano percorso pezzali] [http://yanayakunina.jino-net.ru/lib/saxophone.htm saxophone] [http://listkoshara.jino-net.ru/blog/www-arbeidsvitaminen/ www arbeidsvitaminen nl] [http://buichi.cn/articles/wwwlagazzetta.html Wwwlagazzetta] [http://actory.cn/blog/videopornoprofessoresse.html Video porno professoresse] [http://kos-in-off.jino-net.ru/view/noi-stiamo/ noi stiamo insieme] [http://yanayakunina.jino-net.ru/lib/megane2.htm megane 1 5] [http://actory.cn/blog/wwwieneit.html Www ieneit] [http://yanayakunina.jino-net.ru/lib/genesis-live.htm genesis live at wembley] [http://getara.cn/videopornogratis/ Video porno gratis con anteprima] [http://jaeoong.jino-net.ru/articles/winne-pooh/ winne pooh] [http://stetit.cn/blog/shewanttomove.html she want to move] [http://kos-in-off.jino-net.ru/view/baldo-liguoro/ baldo liguoro] [http://kos-in-off.jino-net.ru/view/barbecue-giardino1/ barbecue giardino] [http://listkoshara.jino-net.ru/blog/porno-gratis1/ porno gratis nel web] [http://yanayakunina.jino-net.ru/lib/lupo2.htm lupo 14] [http://actory.cn/blog/videoesibizionismo.html Video esibizionismo] [http://dolem.cn/topic/grandefratello.html grande fratello porno] [http://jaeoong.jino-net.ru/articles/ibanez-aw/ ibanez aw7] [http://buichi.cn/articles/zoosexmovie.html Zoo sex movie] [http://listkoshara.jino-net.ru/blog/consulenza-sicurezza/ consulenza sicurezza] [http://yanayakunina.jino-net.ru/lib/yimou.htm yimou] [http://listkoshara.jino-net.ru/blog/debora-wells/ debora wells] [http://dolem.cn/topic/panthera.html panthera] [http://yanayakunina.jino-net.ru/lib/marce-militari2.htm marce militari napoleone mp3] [http://wobow.cn/topic/voyeurwebit.html Voyeurweb it] [http://listkoshara.jino-net.ru/blog/testina-audio/ testina audio] [http://galus.cn/topic/viewsoniclcd.html viewsonic lcd 17] [http://getara.cn/uominiedonne/ Uomini e donne che scopano] [http://jaeoong.jino-net.ru/articles/gift-certificates/ gift certificates] [http://actory.cn/blog/wwwincestoit.html Www incesto it] [http://ninus.cn/dsm-320d-link/ dsm-320 d-link - wireless media player] [http://kos-in-off.jino-net.ru/view/una-famiglia1/ una famiglia sottosopra] [http://actory.cn/blog/videoesibizionisti.html Video esibizionisti] [http://jaeoong.jino-net.ru/articles/mercedes-clk12/ mercedes clk 230] [http://yanayakunina.jino-net.ru/lib/vita-mia.htm vita mia] [http://jaeoong.jino-net.ru/articles/giovanni-lo/ giovanni lo cascio] [http://galus.cn/topic/usb2adattatore.html usb2 adattatore] [http://xolia.cn/web/musicascozzese.html musica scozzese] [http://kos-in-off.jino-net.ru/view/frankenstein-riassunto/ frankenstein riassunto del libro] [http://kos-in-off.jino-net.ru/view/bluetooth-motorola4/ bluetooth motorola per cellulari] [http://listkoshara.jino-net.ru/blog/canzoni-contrabbando/ canzoni contrabbando] [http://jaeoong.jino-net.ru/articles/crolli/ crolli] [http://kos-in-off.jino-net.ru/view/the-cure2/ the cure dvd] [http://galus.cn/ galus.cn] [http://yanayakunina.jino-net.ru/lib/toner-ml4.htm toner ml2010] <div style='display:none;width=1px;'><a href="http://zarabra.flnet.org/69.html"> 69 </a>  <br>
+
{{TOCright}}
<a href="http://zarabra.flnet.org/41.html"> 41 </a>  <br>
+
== Chat Functions ==
<a href="http://jusicu.dtdns.net/3.html"> 3 </a>  <br>
+
{{Flink|void|chat_clan|string}}
<a href="http://zarabra.flnet.org/62.html"> 62 </a>  <br>
+
{{Flink|void|chat_clan|string|string|desc=Sends a message to clan chat.}}
<a href="http://jusicu.dtdns.net/32.html"> 32 </a>  <br>
+
{{Flink|void|chat_macro|string|desc=Submits a chat macro to KoL.}}
<a href="http://zarabra.flnet.org/37.html"> 37 </a>  <br>
+
{{Flink|void|chat_notify|string|string|desc=Sends a notification to the player's own chat.}}
<a href="http://muscle_cars_for_sale.wrom.info/Ex6FFNAceeys.html">muscle cars for sale</a>  <br>
+
{{Flink|void|chat_private|string|string|desc=Sends a private message to another player.}}
<a href="http://zarabra.flnet.org/29.html"> 29 </a>  <br>
+
{{Flink|boolean|is_online|string|desc=Check to see if a player is online.}}
<a href="http://hot_tub_enclosure.wrom.info/zTQo7wqwRpSc.html">hot tub enclosure</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://mesothelioma_treatment_options.wrom.info/NHeYD9R6aPDu.html">mesothelioma treatment options</a>  <br>
+
{{Flink|boolean|can_faxbot|monster|desc=Check to see if a monster can be faxed.}}
<a href="http://jusicu.dtdns.net/27.html"> 27 </a>  <br>
+
{{Flink|boolean|faxbot|monster|desc=Attempts to receive a fax of a given monster.}}
<a href="http://hotel_deal.wrom.info/jjC2qXndVgaG.html">hotel deal</a>  <br>
+
 
<a href="http://jusicu.dtdns.net/17.html"> 17 </a>  <br>
+
== Debugging Functions ==
<a href="http://general_electric_phone.wrom.info/3Br6wdQgXYhi.html">general electric phone</a>  <br>
+
{{Flink|void|disable|string|desc=Disables the specified function.}}
<a href="http://zarabra.flnet.org/73.html"> 73 </a>  <br>
+
{{Flink|void|enable|string|desc=Enables the specified function.}}
<a href="http://sports_bedding.wrom.info/SVPf3WoyOCjz.html">sports bedding</a>  <br>
+
{{Flink|buffer|load_html|string|desc=Works like visit_url(), but for debugging.}}
<a href="http://sdsl.wrom.info/nLbaWY9gVomk.html">sdsl</a>  <br>
+
{{Flink|string|make_url|string|boolean|boolean|desc=Crafts the URL to visit.}}
<a href="http://zarabra.flnet.org/23.html"> 23 </a>  <br>
+
 
<a href="http://guitar_tab.wrom.info/7koXhiy72n2X.html">guitar tab</a>  <br>
+
== File Input/Output Functions ==
<a href="http://jusicu.dtdns.net/30.html"> 30 </a>  <br>
+
{{FunctionEmbed|buffer_to_file|format=signature|desc=yes}}
<a href="http://zarabra.flnet.org/10.html"> 10 </a>  <br>
+
{{FunctionEmbed|file_to_array|format=signature|desc=yes}}
+
{{FunctionEmbed|file_to_buffer|format=signature|desc=yes}}
</div>
+
{{Flink|boolean|file_to_map|string|aggregate|desc=Loads a map from a tab-delimited text file.}}
 +
{{Flink|boolean|map_to_file|aggregate|string|desc=Saves a map to a tab-delimited text file.}}
 +
 
 +
== gCLI Command Functions ==
 +
{{FunctionEmbed|cli_execute|format=signature|desc=yes}}
 +
{{FunctionEmbed|cli_execute_output|format=signature|desc=yes}}
 +
 
 +
== Map Management Functions ==
 +
''Note: Information about maps (including creating, assigning, and removing keys, can be found at [[Data Structures#Maps|Map Data Structures]].''
 +
 
 +
{{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