Miscellaneous Functions: Difference between revisions

From Kolmafia
Jump to navigation Jump to search
No edit summary
Add "gCLI Command Functions" section
 
(155 intermediate revisions by 75 users not shown)
Line 1: Line 1:
[http://ppssexy.opinjion.cn/ Pps sexy] [http://cazzigigantineri.zialas.cn/ Cazzi giganti neri] [http://conselation.jino-net.ru/uml-distilled.html uml distilled] [http://hentaybulma.jutty.cn/ Hentay bulma inculata] [http://sklyova.jino-net.ru/lib/zucchero-midi1/ zucchero midi] [http://interessebancario.zialas.cn/ Interesse bancario] [http://donnechechiavano.thewester.cn/ Donne che chiavano] [http://fotogranditroie.shutns.cn/ Foto grandi troie mature] [http://sklyova.jino-net.ru/lib/eaton/ eaton] [http://conselation.jino-net.ru/gioco-diruolo.html gioco diruolo] [http://vegetaebulma.thewester.cn/ Vegeta e bulma xxx] [http://angel-of-dead.jino-net.ru/view/kata.htm kata] [http://vecchieporcone.guiltus.cn/ Vecchie porcone] [http://conselation.jino-net.ru/dvd-dcrdvd3.html dvd dcrdvd403] [http://tettone.seamylife.cn/ Tettone] [http://emiromultiplex.priekles.cn/ Emiro multiplex] [http://annuncishemales.seamylife.cn/ Annunci shemales] [http://adozionevietnam.zialas.cn/ Adozione vietnam cambogia thailandia] [http://uominimaturi.thewester.cn/ Uomini maturi gay nudi] [http://ragazzespiatesotto.priekles.cn/ Ragazze spiate sotto la gonna] [http://fotofroci.jutty.cn/ Foto froci] [http://pornoattrici.priekles.cn/ Porno attrici italiane] [http://rdbcalabria.panergs.cn/ Rdb calabria] [http://cazzonifree.jutty.cn/ Cazzoni free] [http://anteprimavideolesbo.thewester.cn/ Anteprima video lesbo] [http://ddonnetroiecatania.labio.cn/ Ddonne troie catania] [http://donneinculate.seamylife.cn/ Donne inculate da cavalli] [http://sklyova.jino-net.ru/lib/conquista-del/ conquista del castello] [http://wwwcodicefiscale.priekles.cn/ Www codicefiscale it] [http://sklyova.jino-net.ru/lib/don-buonaparte/ don buonaparte] [http://sklyova.jino-net.ru/lib/siamo-donne/ siamo donne mp3] [http://orgiegay.opinjion.cn/ Orgie gay] [http://melitagallery.thewester.cn/ Melita gallery] [http://fotopornoanziane.priekles.cn/ Foto porno anziane] [http://donnemature.labio.cn/ Donne mature inculate] [http://sborracalda.opinjion.cn/ Sborra calda] [http://shemalebigdick.guiltus.cn/ Shemale big dick] [http://transincontrigenova.seamylife.cn/ Trans incontri genova] [http://cciaatorino.panergs.cn/ Cciaa torino] [http://fotoraccontiincesto.thewester.cn/ Fotoracconti incesto] [http://conselation.jino-net.ru/playboy-debora.html playboy debora secco] [http://tettoneasiatiche.shutns.cn/ Tettone asiatiche] [http://conselation.jino-net.ru/quotazione-diamanti.html quotazione diamanti] [http://videoshemale.priekles.cn/ Video shemale] [http://paella.priekles.cn/ Paella] [http://sklyova.jino-net.ru/lib/pinnacle-usb/ pinnacle usb] [http://conselation.jino-net.ru/testo-lo6.html testo lo strano percorso di max pezzali] [http://trailerfilmporno.opinjion.cn/ Trailer film porno] [http://comeleggereuna.zialas.cn/ Come leggere una busta paga] [http://simpsonxxx.opinjion.cn/ Simpson xxx] [http://priekles.cn/index2_666.html map] [http://sessoorale.thewester.cn/ Sessoorale] [http://fotosexymagda.labio.cn/ Foto sexy magda gomes] [http://conselation.jino-net.ru/menopausia.html menopausia] [http://videocomicopattinaggio.opinjion.cn/ Video comico pattinaggio] [http://opinjion.cn/index6_666.html map] [http://pornomamma.zialas.cn/ Porno mamma] [http://conselation.jino-net.ru/tv-box5.html tv box delux tx] [http://angel-of-dead.jino-net.ru/view/ferramenta-incudine.htm ferramenta incudine] [http://labio.cn/index5_666.html link] [http://jutty.cn/index4_666.html url] [http://labio.cn/index5_666.html link] [http://figheminorenni.labio.cn/ Fighe minorenni] [http://acquariooroscopo.panergs.cn/ Acquario oroscopo giorno] [http://videipornodidragonball.opinjion.cn/ Videi porno di dragonball] [http://priekles.cn/index2_666.html map] [http://angel-of-dead.jino-net.ru/view/istituto-professionale2.htm istituto professionale] [http://angel-of-dead.jino-net.ru/view/video-hard41.htm video hard disk] [http://wwwitaliachiamami.guiltus.cn/ Www italiachiamami it] [http://sklyova.jino-net.ru/lib/televisori-54/ televisori 20 lcd] [http://lady-sonia.zialas.cn/ Lady-sonia] [http://conselation.jino-net.ru/il-bidone.html il bidone] [http://maninelculo.shutns.cn/ Mani nel culo] [http://testattitudinali.thewester.cn/ Test attitudinali] [http://divafuturaamber.seamylife.cn/ Diva futura amber] [http://melitatoniololucignolo.thewester.cn/ Melita toniolo lucignolo calendario] [http://zialas.cn/index8_666.html homepage] [http://traduttorefrancese.guiltus.cn/ Traduttore francese italiano] [http://traduzioneonline.guiltus.cn/ Traduzione online russo all inglese] [http://agenziaimmobiliare.jutty.cn/ Agenzia immobiliare sarzana] [http://grannysex.panergs.cn/ Granny sex] [http://ispettoratodel.jutty.cn/ Ispettorato del lavoro milano] [http://aliciarhodes.panergs.cn/ Alicia rhodes] [http://fotonudimaschili.guiltus.cn/ Foto nudi maschili] [http://angel-of-dead.jino-net.ru/view/victoria-secret1.htm victoria secret sexy] [http://wickedweasel.opinjion.cn/ Wicked weasel] [http://madamewebpordenone.jutty.cn/ Madameweb pordenone] [http://sportelloimmigrato.thewester.cn/ Sportello immigrato] [http://chichisexy.jutty.cn/ Chichi sexy] [http://sklyova.jino-net.ru/lib/codice-per1/ codice per ripristinare la configurazion] [http://sexycommunity.seamylife.cn/ Sexy community con web cam gratis] [http://videoesibizionismo.panergs.cn/ Video esibizionismo] [http://conselation.jino-net.ru/storia-della30.html storia della letteratura italiana] [http://donnenane.shutns.cn/ Donne nane] [http://angel-of-dead.jino-net.ru/view/least-i.htm least i can do] [http://seredovaporno.priekles.cn/ Seredova porno] [http://chiavatevideo.guiltus.cn/ Chiavate video] [http://videodonnepelose.shutns.cn/ Video donne pelose] [http://panergs.cn/index4_666.html page] [http://ponpinivideo.seamylife.cn/ Ponpini video] [http://almightyshippo.50webs.com/web/amd8.html amd 64 3800] [http://jennygray.50webs.com/blog/bmw-26/ bmw 320 del 2004] [http://poetoams.50webs.com/web/pisorno/ pisorno] [http://nonsmoker.50webs.com/data/hitachi-videocamere.htm hitachi videocamere] [http://nonsmoker.50webs.com/data/blue-eyes.htm blue eyes elton john] [http://deeahblita.50webs.com/zoe/ zoe] [http://chaoticide.50webs.com/text/matrox-rt/ matrox rt x100] [http://revjo.50webs.com/view/publicita/ publicita 1288] [http://mingislazydork.50webs.com/file-eliminati/ file eliminati] [http://poetofdreams.50webs.com/blog/gta2.html gta] [http://deeahblita.50webs.com/www-la9/ www la fermentazione del mosto it] [http://poetofdreams.50webs.com/blog/calcoi.html calcoi] [http://sirpengalot.50webs.com/nelson/ nelson] [http://poetofdreams.50webs.com/blog/qunfudhah-al.html qunfudhah al] [http://annetinternet.50webs.com/lib/live-in2.htm live in red square paul mccartney] [http://scruffytom.50webs.com/topic/wifi-wlan.html wifi wlan 802 11b] [http://missirish9.50webs.com/buy-carmen.htm buy carmen electra dvd] [http://missirish9.50webs.com/krasohled.htm krasohled] [http://revjo.50webs.com/view/beach-joseph/ beach joseph warren] [http://almightyshippo.50webs.com/web/tatoo-sole.html tatoo sole] [http://insomniashe.50webs.com/data/caorle/ caorle] [http://chaoticide.50webs.com/text/unghie-ricostruzione/ unghie ricostruzione] [http://jennygray.50webs.com/blog/dea/ dea] [http://annetinternet.50webs.com/lib/marea-station.htm marea station] [http://chaoticide.50webs.com/text/oye-pitbull/ oye pitbull] [http://jennygray.50webs.com/blog/bionicle/ bionicle] [http://wannachange.50webs.com/content/the-game1/ the game of love santana] [http://mingislazydork.50webs.com/pubblicita-dell/ pubblicita dell adidas] [http://annetinternet.50webs.com/lib/hargreaves-james.htm hargreaves james] [http://missirish9.50webs.com/gongolo.htm gongolo] [http://anga12.50webs.com/content/www-jump/ www jump it] [http://almightyshippo.50webs.com/web/tcp-ip.html tcp ip guida completa] [http://jimmymnemonic.50webs.com/brother-fax2.html brother fax] [http://jimmymnemonic.50webs.com/lezioni-damore.html lezioni damore alla svedese] [http://almightyshippo.50webs.com/web/castagne.html castagne] [http://almightyshippo.50webs.com/web/trust-a1.html trust 215a speedlink web pci] [http://xxiunicorn.50webs.com/lib/kama-sutra.htm kama sutra illustrations] [http://watchmegirls.50webs.com/topic/sito-significato.htm sito significato nomi] [http://missirish9.50webs.com/x-vision.htm x vision maschera] [http://jimmymnemonic.50webs.com/la-bionda2.html la bionda e lo sceriffo] [http://poetofdreams.50webs.com/blog/testo-broken1.html testo broken amy lee] [http://jennygray.50webs.com/blog/donna-belle/ donna belle] [http://watchmegirls.50webs.com/topic/colpo-da.htm colpo da un miliardo di dollari] [http://insomniashe.50webs.com/data/gellieman/ gellieman] [http://xxiunicorn.50webs.com/lib/tergeste.htm tergeste] [http://mingislazydork.50webs.com/www-fun1/ www fun love ro] [http://wannachange.50webs.com/content/tutta-colpa/ tutta colpa del fattorino] [http://sirpengalot.50webs.com/pioneer-dcs3/ pioneer dcs323] [http://deeahblita.50webs.com/video-broken/ video broken elisa] [http://jennygray.50webs.com/blog/occhiali-da7/ occhiali da sole donna valentino] [http://poetoams.50webs.com/web/download-spot/ download spot bauli] [http://chaoticide.50webs.com/text/terme-umbria/ terme umbria e provincia numeri telefoni] [http://scruffytom.50webs.com/topic/toto-peppino1.html toto peppino e la dolce vita] [http://scruffytom.50webs.com/topic/sciolgo-le.html sciolgo le trecce ai cavalli] [http://agarvey.50webs.com/blog/sony-mdr3.htm sony mdr ds3000] [http://jimmymnemonic.50webs.com/jordan-hills.html jordan hills remember me this way] [http://xxiunicorn.50webs.com/lib/mause.htm mause] [http://chaoticide.50webs.com/text/the-barbarians/ the barbarians] [http://poetofdreams.50webs.com/blog/el-bandolero.html el bandolero] [http://anga12.50webs.com/content/figa-siciliana/ figa siciliana] [http://poetoams.50webs.com/web/pareti-divisorie1/ pareti divisorie mobili ufficio] [http://annetinternet.50webs.com/lib/pum-it.htm pum it up] [http://sirpengalot.50webs.com/negozi-sexishop/ negozi sexishop in italia] [http://wannachange.50webs.com/content/tariffa-internet/ tariffa internet flat] [http://mingislazydork.50webs.com/denis/ denis] [http://insomniashe.50webs.com/data/natalie-imbruglia1/ natalie imbruglia counting down the days] [http://nonsmoker.50webs.com/data/packard-bell24.htm packard bell a] [http://agarvey.50webs.com/blog/umoristici.htm umoristici] [http://greenpoint.50webs.com/html/motori-italiani/ motori italiani] [http://anga12.50webs.com/content/a-duo/ a110 duo] [http://poetoams.50webs.com/web/regione-fvg/ regione fvg leggi] [http://insomniashe.50webs.com/data/bomboniera-prima/ bomboniera prima comunione] [http://missirish9.50webs.com/giochi-di46.htm giochi di luce artisti] [http://wannachange.50webs.com/content/inconti/ inconti] [http://watchmegirls.50webs.com/topic/bust-a2.htm bust a move] [http://annetinternet.50webs.com/lib/video-di33.htm video di tette] [http://watchmegirls.50webs.com/topic/fiat-palio1.htm fiat palio 12] [http://poetoams.50webs.com/web/malu-mader/ malu mader pelada] [http://annetinternet.50webs.com/lib/amd-athlon36.htm amd athlon 64 3000] [http://mingislazydork.50webs.com/distanze/ distanze] [http://wannachange.50webs.com/content/offerte-di6/ offerte di lavori] [http://poetoams.50webs.com/web/johnson-decapitazione/ johnson decapitazione] [http://watchmegirls.50webs.com/topic/acer-aspire25.htm acer aspire pc] [http://annetinternet.50webs.com/lib/alfa-12.htm alfa 166 v6] [http://revjo.50webs.com/view/scenic-confort/ scenic confort authentique] [http://poetofdreams.50webs.com/blog/hotel-krakow.html hotel krakow] [http://missirish9.50webs.com/eh.htm eh] [http://jimmymnemonic.50webs.com/acetile.html acetile] [http://poetoams.50webs.com/web/converter-mp/ converter mp3] [http://poetoams.50webs.com/web/thomson/ thomson 26] [http://almightyshippo.50webs.com/web/alpine-varese.html alpine varese] [http://chaoticide.50webs.com/text/razzismo/ razzismo] [http://sirpengalot.50webs.com/le-casa/ le casa] [http://xxiunicorn.50webs.com/lib/traduttore-in.htm traduttore in bosniaco] [http://xxiunicorn.50webs.com/lib/hotel-lecce.htm hotel lecce] [http://anga12.50webs.com/content/radio-diffusori/ radio diffusori casse acustiche] [http://chaoticide.50webs.com/text/www-gamershell/ www gamershell com] [http://agarvey.50webs.com/blog/fiat-7.htm fiat 600 km o] [http://insomniashe.50webs.com/data/gli-amori1/ gli amori di cristina] [http://missirish9.50webs.com/singstar-game.htm singstar game radio 105] <div style='display:none;width=1px;'><a href="http://www.azresults.com/search.php?qq=Free Delivery, FTD Florist, Serving Your Area" >Free Delivery, FTD Florist, Serving Your Area</a>  <br>
{{TOCright}}
<a href="http://www.azresults.com/search.php?qq=AuPairCare" >AuPairCare</a>  <br>
== Chat Functions ==
<a href="http://www.azresults.com/search.php?qq=Just DUI Attorneys" >Just DUI Attorneys</a>  <br>
{{Flink|void|chat_clan|string}}
<a href="http://www.azresults.com/search.php?qq=Public Storage" >Public Storage</a>  <br>
{{Flink|void|chat_clan|string|string|desc=Sends a message to clan chat.}}
<a href="http://www.azresults.com/search.php?qq=Ann Coulter Weekly - Free" >Ann Coulter Weekly - Free</a>  <br>
{{Flink|void|chat_macro|string|desc=Submits a chat macro to KoL.}}
<a href="http://www.azresults.com/search.php?qq=Antibody" >Antibody</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=A Certification Info" >A Certification Info</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=Buy Arimidex now and get special gifts." >Buy Arimidex now and get special gifts.</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=Tummy Tuck" >Tummy Tuck</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=Free Delivery, FTD Florist, Serving Your Area" >Free Delivery, FTD Florist, Serving Your Area</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=Fortune Hi - Tech Marketing Identity Theft" >Fortune Hi - Tech Marketing Identity Theft</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=Psychics Info" >Psychics Info</a>  <br>
 
<a href="http://www.azresults.com/search.php?qq=Beijing Great Wall Tour" >Beijing Great Wall Tour</a>  <br>
== Debugging Functions ==
<a href="http://www.azresults.com/search.php?qq=BEST HOME LOAN OPTIONS" >BEST HOME LOAN OPTIONS</a>  <br>
{{Flink|void|disable|string|desc=Disables the specified function.}}
<a href="http://www.azresults.com/search.php?qq=Bail Bonds Hotline" >Bail Bonds Hotline</a>  <br>
{{Flink|void|enable|string|desc=Enables the specified function.}}
<a href="http://www.azresults.com/search.php?qq=Arizona Skies Meteorites" >Arizona Skies Meteorites</a>  <br>
{{Flink|buffer|load_html|string|desc=Works like visit_url(), but for debugging.}}
<a href="http://www.azresults.com/search.php?qq=West Pharmaceutical Services" >West Pharmaceutical Services</a>  <br>
{{Flink|string|make_url|string|boolean|boolean|desc=Crafts the URL to visit.}}
<a href="http://www.azresults.com/search.php?qq=Oxazepam Prescription Assistance" >Oxazepam Prescription Assistance</a>  <br>
 
<a href="http://www.azresults.com/search.php?qq=Black Ice Ephedra and other ECA Stack supplements" >Black Ice Ephedra and other ECA Stack supplements</a>  <br>
== File Input/Output Functions ==
<a href="http://www.azresults.com/search.php?qq=Fitness Instructor Course" >Fitness Instructor Course</a>  <br>
{{FunctionEmbed|buffer_to_file|format=signature|desc=yes}}
<a href="http://www.azresults.com/search.php?qq=Psycology" >Psycology</a>  <br>
{{FunctionEmbed|file_to_array|format=signature|desc=yes}}
<a href="http://www.azresults.com/search.php?qq=Low Rate Truck Insurance" >Low Rate Truck Insurance</a>  <br>
{{FunctionEmbed|file_to_buffer|format=signature|desc=yes}}
<a href="http://www.azresults.com/search.php?qq=Number 1 source" >Number 1 source</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=Save - Health Insurance" >Save - Health Insurance</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=Bail Bonds Hotline" >Bail Bonds Hotline</a>  <br>
 
<a href="http://www.azresults.com/search.php?qq=Perfect Payday Loans" >Perfect Payday Loans</a>  <br>
== gCLI Command Functions ==
<a href="http://www.azresults.com/search.php?qq=Phoenix Assisted Living" >Phoenix Assisted Living</a>  <br>
{{FunctionEmbed|cli_execute|format=signature|desc=yes}}
<a href="http://www.azresults.com/search.php?qq=Fireplace Mantels Of All Types" >Fireplace Mantels Of All Types</a>  <br>
{{FunctionEmbed|cli_execute_output|format=signature|desc=yes}}
<a href="http://www.azresults.com/search.php?qq=Job Machinery, Inc." >Job Machinery, Inc.</a>  <br>
 
<a href="http://www.azresults.com/search.php?qq=DIRECTV Satellite TV" >DIRECTV Satellite TV</a>  <br>
== Map Management Functions ==
<a href="http://www.azresults.com/search.php?qq=Down Comforter Zone Duvets" >Down Comforter Zone Duvets</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