|
|
(198 intermediate revisions by more than 100 users not shown) |
Line 1: |
Line 1: |
| [http://ironic-aavocet.freehostia.com/chromakey/ chromakey] [http://tatakarolia.freehostia.com/gnomos.htm gnomos] [http://gitannaa.freehostia.com/styles/scuola-inglese/ scuola inglese on line] [http://dimterra.freehostia.com/lib/nuovo-trailer/ nuovo trailer di ridge racer 6] [http://karotah.freehostia.com/cavallo-web.htm cavallo web] [http://dobryganom.freehostia.com/data/garanzia-auto/ garanzia auto usata] [http://agraciadoa.freehostia.com/data/pillola-per.htm pillola per le donne] [http://agraciadoa.freehostia.com/data/barby.htm barby] [http://dobryganom.freehostia.com/data/smart-auto/ smart auto milano] [http://tatakarolia.freehostia.com/suoneria-polifonica2.htm suoneria polifonica inno italia] [http://11billioantries.freehostia.com/library/frattaminore.htm frattaminore] [http://tatakarolia.freehostia.com/Incesto-madre1.htm incesto madre] [http://karotah.freehostia.com/il-casco.htm il casco dgm] [http://solacahristus.freehostia.com/styles/giorgia-palmas/ giorgia palmas 2005] [http://gitannaa.freehostia.com/styles/inarcassa/ inarcassa] [http://malayoannaise86.freehostia.com/resources/diddl-peluche/ diddl peluche] [http://malayoannaise86.freehostia.com/resources/tv-cinescopio/ tv cinescopio] [http://gitannaa.freehostia.com/styles/quel-mazzolini/ quel mazzolini di fiori] [http://makesaomelove.freehostia.com/small/culi-da/ culi da sballo] [http://wellhaaveaball.freehostia.com/content/blip-and.htm blip and blop] [http://gitannaa.freehostia.com/styles/zigo/ zigo] [http://stairslinaky.freehostia.com/data/copertina-zero/ copertina zero assoluto] [http://solacahristus.freehostia.com/styles/testo-in3/ testo in tutti i miei giorni] [http://solacahristus.freehostia.com/styles/antonio-berardi/ antonio berardi] [http://karotah.freehostia.com/laser-con.htm laser con adf] [http://murasaaki-neko.freehostia.com/blog/mogli-calciatori.htm mogli calciatori russe] [http://makesaomelove.freehostia.com/small/anal-orgasm/ anal orgasm] [http://dimterra.freehostia.com/lib/retroescavatori/ retroescavatori] [http://sherberatmcgee.freehostia.com/new/adata-vitesta.htm adata vitesta] [http://wellhaaveaball.freehostia.com/content/topolino-e.htm topolino e i cattivi disney] [http://sherberatmcgee.freehostia.com/new/kaene.htm kaene] [http://dimterra.freehostia.com/lib/batteria-d/ batteria d500] [http://11billioantries.freehostia.com/library/sin-tuo.htm sin tuo amor] [http://wellhaaveaball.freehostia.com/content/ferramenta-terreni.htm ferramenta terreni] [http://sherberatmcgee.freehostia.com/new/giochi-da5.htm giochi da scaricare gratis xxx] [http://sherberatmcgee.freehostia.com/new/hp-all2.htm hp all in one 3020] [http://wellhaaveaball.freehostia.com/content/sex-asia.htm sex asia] [http://solacahristus.freehostia.com/styles/d-g/ d g] [http://11billioantries.freehostia.com/library/paranoid-android.htm paranoid android] [http://dobryganom.freehostia.com/data/sony-televisore/ sony televisore 32 kv32fq86] [http://wellhaaveaball.freehostia.com/content/boscarini.htm boscarini] [http://solacahristus.freehostia.com/styles/morningstar/ morningstar] [http://makesaomelove.freehostia.com/small/rs-multi/ rs multi media card] [http://ironic-aavocet.freehostia.com/tre-uomini/ tre uomini da abbattere] [http://dobryganom.freehostia.com/data/video-pamela2/ video pamela anderso] [http://stairslinaky.freehostia.com/data/slayer-war/ slayer war at the warfield] [http://agraciadoa.freehostia.com/data/ekeys.htm ekeys 49] [http://karotah.freehostia.com/fotocamera-digitale9.htm fotocamera digitale minolta] [http://xenajedia.freehostia.com/subwoofer-creative.htm subwoofer creative] [http://chrome-naewfie.freehostia.com/data/hemel-hempstead.htm hemel hempstead] [http://ironic-aavocet.freehostia.com/dream-dance/ dream dance vol 30] [http://makesaomelove.freehostia.com/small/volkswagen-passat/ volkswagen passat v] [http://11billioantries.freehostia.com/library/trucchi-giochi.htm trucchi giochi] [http://agraciadoa.freehostia.com/data/bebe-confort5.htm bebe confort] [http://stairslinaky.freehostia.com/data/huevos/ huevos] [http://dobryganom.freehostia.com/data/mercedes-classe3/ mercedes classe a 180] [http://murasaaki-neko.freehostia.com/blog/imogen-heap.htm imogen heap] [http://wellhaaveaball.freehostia.com/content/casse-acustiche5.htm casse acustiche a parete] [http://solacahristus.freehostia.com/styles/sukay/ sukay] [http://ironic-aavocet.freehostia.com/sports-illustrated/ sports illustrated] [http://murasaaki-neko.freehostia.com/blog/perimeno-edo.htm perimeno edo] [http://bluebloassoms.freehostia.com/foto-di16/ foto di maurizia paradiso] [http://murasaaki-neko.freehostia.com/blog/mensaje.htm mensaje] [http://chrome-naewfie.freehostia.com/data/giubbino-ciclismo.htm giubbino ciclismo] [http://agraciadoa.freehostia.com/data/bambole-di1.htm bambole di ceramica] [http://dimterra.freehostia.com/lib/caricabatterie-accessori/ caricabatterie accessori audio video] [http://11billioantries.freehostia.com/library/prezioso-feat.htm prezioso feat marvin le louvre] [http://xenajedia.freehostia.com/sholes-christopher.htm sholes christopher latham] [http://solacahristus.freehostia.com/styles/undici-uomini/ undici uomini d oro] [http://stairslinaky.freehostia.com/data/sei-forte/ sei forte papa] [http://dobryganom.freehostia.com/data/residenze-in/ residenze in costa smeralda] [http://agraciadoa.freehostia.com/data/midi-files.htm midi files 2004] [http://agraciadoa.freehostia.com/data/felpa-kappa.htm felpa kappa] [http://ironic-aavocet.freehostia.com/www-jobbi/ www jobbi] [http://tatakarolia.freehostia.com/dvd-mpeg.htm dvd mpeg4] [http://ruefrosta.freehostia.com/directory/gps-portatile.htm gps portatile] [http://dimterra.freehostia.com/lib/bomb-/ bomb jack] [http://sherberatmcgee.freehostia.com/new/fiorai-ancona.htm fiorai ancona] [http://dobryganom.freehostia.com/data/lettore-dvd12/ lettore dvd dvx vcr] [http://tatakarolia.freehostia.com/Ragazze-nude1.htm ragazze nude in cam] [http://dobryganom.freehostia.com/data/lora-del/ lora del supplizio] [http://karotah.freehostia.com/xblade-blue.htm xblade blue] [http://stairslinaky.freehostia.com/data/rio-carbon/ rio carbon pearl] [http://chrome-naewfie.freehostia.com/data/treo-tomtom.htm treo tomtom] [http://gitannaa.freehostia.com/styles/lcd-rosso/ lcd rosso] [http://solacahristus.freehostia.com/styles/meccanica-torino/ meccanica torino] [http://sherberatmcgee.freehostia.com/new/luanshya.htm luanshya] [http://gitannaa.freehostia.com/styles/hp-windows/ hp windows xp mediacenter] [http://bluebloassoms.freehostia.com/pedagogia-operatoria/ pedagogia operatoria] [http://ruefrosta.freehostia.com/directory/citroen-c4.htm citroen c3 pluriel 14 hdi] [http://agraciadoa.freehostia.com/data/www-pepsi.htm www pepsi com] [http://ironic-aavocet.freehostia.com/carta-credito/ carta credito italiana] [http://karotah.freehostia.com/le-foglie.htm le foglie e il vento ron] [http://solacahristus.freehostia.com/styles/testi-canzoni3/ testi canzoni renato zero] [http://karotah.freehostia.com/lascia-che.htm lascia che io sia nek] [http://malayoannaise86.freehostia.com/resources/ala-ala/ ala ala] [http://dimterra.freehostia.com/lib/hp-ipaq3/ hp ipaq h6340 gprs] [http://solacahristus.freehostia.com/styles/lettorimp-samsung/ lettorimp3 samsung] [http://chrome-naewfie.freehostia.com/data/dragon-stea.htm dragon stea tin dei] [http://bluebloassoms.freehostia.com/onelove-one/ onelove one shot] [http://ironic-aavocet.freehostia.com/biglietti-personali/ biglietti personali] [http://dimterra.freehostia.com/lib/zzzz/ zzzz] [http://gitannaa.freehostia.com/styles/be-faithful/ be faithful] [http://ruefrosta.freehostia.com/directory/virgilio.htm virgilio] [http://bluebloassoms.freehostia.com/el-manantial/ el manantial] [http://agraciadoa.freehostia.com/data/le-ragazze2.htm le ragazze di harvey] [http://11billioantries.freehostia.com/library/palmare-telefono.htm palmare telefono] [http://malayoannaise86.freehostia.com/resources/l-ispettore/ l ispettore gadget lultimo caso] [http://makesaomelove.freehostia.com/small/viajes-a/ viajes a la luna] [http://dimterra.freehostia.com/lib/z-/ z 680 logitech] [http://solacahristus.freehostia.com/styles/bike-spinner/ bike spinner] [http://karotah.freehostia.com/memory-stick4.htm memory stick duo gb] [http://chrome-naewfie.freehostia.com/data/ariston-lavasciuga.htm ariston lavasciuga] [http://makesaomelove.freehostia.com/small/denon-dvd/ denon dvd 1920] [http://makesaomelove.freehostia.com/small/lcd-2/ lcd 17 monitor acer dvi] [http://murasaaki-neko.freehostia.com/blog/testi-di1.htm testi di marco masini] [http://karotah.freehostia.com/nikon-d7.htm nikon d2 hs] [http://stairslinaky.freehostia.com/data/ram-3/ ram 256 pc133 kingston] [http://ironic-aavocet.freehostia.com/bach-aria/ bach aria 4 corda] [http://malayoannaise86.freehostia.com/resources/fukuda-takeo/ fukuda takeo] [http://sherberatmcgee.freehostia.com/new/lacie-dual.htm lacie dual layer] [http://murasaaki-neko.freehostia.com/blog/geforce-mb.htm geforce 256mb nvidia 6200] [http://tatakarolia.freehostia.com/teatro-toto.htm teatro toto] [http://chrome-naewfie.freehostia.com/data/phone-manager.htm phone manager driver] [http://solacahristus.freehostia.com/styles/fujifilm/ fujifilm 345] [http://ruefrosta.freehostia.com/directory/mp-gold.htm mp3 gold] [http://stairslinaky.freehostia.com/data/sassofortino/ sassofortino] [http://ironic-aavocet.freehostia.com/a-r/ a r andata ritorno] [http://solacahristus.freehostia.com/styles/nikon-d2/ nikon d 100] [http://tatakarolia.freehostia.com/mitchel.htm mitchel] [http://stairslinaky.freehostia.com/data/scarica-gratis/ scarica gratis win mix] [http://murasaaki-neko.freehostia.com/blog/morte-di2.htm morte di un giusto] [http://ruefrosta.freehostia.com/directory/il-bambino.htm il bambino dinverno] [http://solacahristus.freehostia.com/styles/eamon-in/ eamon in italiano] [http://11billioantries.freehostia.com/library/indice-mibtel.htm indice mibtel] [http://bluebloassoms.freehostia.com/raccolta-dvd/ raccolta dvd bruce lee film] [http://ruefrosta.freehostia.com/directory/hit-my1.htm hit my heart] [http://karotah.freehostia.com/www-sciaccamare.htm www sciaccamare] [http://malayoannaise86.freehostia.com/resources/libre/ libre] [http://11billioantries.freehostia.com/library/cd-musica1.htm cd musica protezioni] [http://murasaaki-neko.freehostia.com/blog/esecuzione-prigionieri.htm esecuzione prigionieri italiani] [http://solacahristus.freehostia.com/styles/links/ links 2004] [http://agraciadoa.freehostia.com/data/lavastoviglie-a1.htm lavastoviglie a scomparsa totale] [http://ironic-aavocet.freehostia.com/www-nos/ www nos it] [http://malayoannaise86.freehostia.com/resources/progetto-concorso/ progetto concorso poesia scuola media] [http://xenajedia.freehostia.com/plasma-samsung.htm plasma samsung ppm42m5s] [http://bluebloassoms.freehostia.com/debbie-does/ debbie does dallas] [http://makesaomelove.freehostia.com/small/www-patrick/ www patrick ray pugliese it] [http://dimterra.freehostia.com/lib/giochi-per/ giochi per femminili] [http://karotah.freehostia.com/l-infanzia.htm l infanzia di maria] [http://bluebloassoms.freehostia.com/frigorifero-rex2/ frigorifero rex blu] [http://sherberatmcgee.freehostia.com/new/concerto-grosso.htm concerto grosso new trolls] [http://malayoannaise86.freehostia.com/resources/navigator-/ navigator 5 wired gps] [http://tatakarolia.freehostia.com/nov-to.htm nov to isa] [http://agraciadoa.freehostia.com/data/wiesbaden.htm wiesbaden] [http://stairslinaky.freehostia.com/data/arkanoid-in/ arkanoid in flash] [http://solacahristus.freehostia.com/styles/la-strategia/ la strategia della maschera] [http://gitannaa.freehostia.com/styles/donna-mathews/ donna mathews] [http://makesaomelove.freehostia.com/small/best-mozart/ best mozart 100] [http://sherberatmcgee.freehostia.com/new/iscrizione-siae.htm iscrizione siae online] [http://murasaaki-neko.freehostia.com/blog/toner-canon3.htm toner canon npg7] [http://11billioantries.freehostia.com/library/conti-correnti.htm conti correnti gratuiti] [http://ruefrosta.freehostia.com/directory/chat-de.htm chat de parejas web] [http://murasaaki-neko.freehostia.com/blog/vendita-fiori.htm vendita fiori online] [http://tatakarolia.freehostia.com/key-mediaguard.htm key mediaguard] [http://ruefrosta.freehostia.com/directory/sony-sdmhxs.htm sony sdmhx75s] [http://agraciadoa.freehostia.com/data/voyeur-erotica.htm voyeur erotica] [http://dobryganom.freehostia.com/data/tom-clancys/ tom clancys rainbow six] [http://xenajedia.freehostia.com/network-monitoring.htm network monitoring software] [http://solacahristus.freehostia.com/styles/kizzuwatna/ kizzuwatna] [http://wellhaaveaball.freehostia.com/content/una-y.htm una y otra vez] [http://solacahristus.freehostia.com/styles/consulenti/ consulenti] [http://murasaaki-neko.freehostia.com/blog/piccanti-storie.htm piccanti storie] [http://chrome-naewfie.freehostia.com/data/madden.htm madden 64] [http://makesaomelove.freehostia.com/small/www-la/ www la torretta it] [http://chrome-naewfie.freehostia.com/data/gifline-pro.htm gifline pro] [http://ruefrosta.freehostia.com/directory/lultimo-bambino.htm lultimo bambino] [http://stairslinaky.freehostia.com/data/top-one/ top one] [http://bluebloassoms.freehostia.com/essenziale/ essenziale] [http://makesaomelove.freehostia.com/small/ariston-ld/ ariston ld 85] [http://11billioantries.freehostia.com/library/chemin-de.htm chemin de fer] [http://tatakarolia.freehostia.com/klezmatics.htm klezmatics] [http://wellhaaveaball.freehostia.com/content/concorsi-statali1.htm concorsi statali anno 2006] [http://karotah.freehostia.com/porta-borraccia.htm porta borraccia running] [http://wellhaaveaball.freehostia.com/content/jimmy-scott.htm jimmy scott if you only knew] [http://xenajedia.freehostia.com/bedhi-com.htm bedhi com] [http://ironic-aavocet.freehostia.com/xoomer/ xoomer] [http://agraciadoa.freehostia.com/data/bloodhound-gang.htm bloodhound gang one fierce beer run] [http://chrome-naewfie.freehostia.com/data/tv-lcd17.htm tv lcd 36] [http://ironic-aavocet.freehostia.com/hard-disk34/ hard disk ide notebook] [http://solacahristus.freehostia.com/styles/motorola-v3/ motorola v300 cellulari] [http://bluebloassoms.freehostia.com/zanzariera-per/ zanzariera per lettini] [http://chrome-naewfie.freehostia.com/data/www-pinkfloyd.htm www pinkfloyd con] [http://wellhaaveaball.freehostia.com/content/mindoro.htm mindoro] [http://bluebloassoms.freehostia.com/cavalli-tshirt/ cavalli tshirt] [http://gitannaa.freehostia.com/styles/upa-song/ upa song] [http://makesaomelove.freehostia.com/small/plasma-1/ plasma 42 pollici tv televisori] [http://sherberatmcgee.freehostia.com/new/de-javu.htm de javu i can t stop] [http://11billioantries.freehostia.com/library/lettore-mp18.htm lettore mp3 auricolare] [http://solacahristus.freehostia.com/styles/dj-rush/ dj rush] == Part 7 - Miscellaneous ==
| | {{TOCright}} |
| <p><em>Mostly internal stuff. Some good for everyone, some only for ASH wizards.</em></p>
| | == Chat Functions == |
| | {{Flink|void|chat_clan|string}} |
| | {{Flink|void|chat_clan|string|string|desc=Sends a message to clan chat.}} |
| | {{Flink|void|chat_macro|string|desc=Submits a chat macro to KoL.}} |
| | {{Flink|void|chat_notify|string|string|desc=Sends a notification to the player's own chat.}} |
| | {{Flink|void|chat_private|string|string|desc=Sends a private message to another player.}} |
| | {{Flink|boolean|is_online|string|desc=Check to see if a player is online.}} |
| | {{Flink|boolean [string]|who_clan|desc=Returns a list of whom is in your clan and if they are in chat.}} |
| | {{Flink|boolean|can_faxbot|monster|desc=Check to see if a monster can be faxed.}} |
| | {{Flink|boolean|faxbot|monster|desc=Attempts to receive a fax of a given monster.}} |
|
| |
|
| <p><strong>void print( string helloworld )</strong><br />
| | == Debugging Functions == |
| Prints the given string to the graphical CLI window and to the status line of the main Adventuring window</p>
| | {{Flink|void|disable|string|desc=Disables the specified function.}} |
| | {{Flink|void|enable|string|desc=Enables the specified function.}} |
| | {{Flink|buffer|load_html|string|desc=Works like visit_url(), but for debugging.}} |
| | {{Flink|string|make_url|string|boolean|boolean|desc=Crafts the URL to visit.}} |
|
| |
|
| <p><strong>boolean cli_execute( string command )</strong><br />
| | == File Input/Output Functions == |
| Executes the given command as if it were entered into the graphical CLI window. This can be used for CLI commands or, if you
| | {{FunctionEmbed|buffer_to_file|format=signature|desc=yes}} |
| | {{FunctionEmbed|file_to_array|format=signature|desc=yes}} |
| | {{FunctionEmbed|file_to_buffer|format=signature|desc=yes}} |
| | {{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]] |
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_file( buffer, string )
- Saves a buffer to a text file. Returns
true
on success, false
on failure.
string [int] file_to_array( string )
- Reads data from a text file and returns a map of strings containing each line.
buffer file_to_buffer( string )
- 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_execute( string )
- Executes a string as a gCLI command. Returns
true
on success, false
on failure.
string cli_execute_output( string )
- 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_exists( string, boolean? )
- Checks whether a property exists.
boolean property_has_default( string )
- Checks if a property has a built-in default value.
string property_default_value( string )
- 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_property( string, boolean? )
- Removes or resets a property and returns its previous value.
boolean rename_property( string, string )
- Renames a property. Returns
true
on success, false
on failure.
Other Functions
void abort( string? )
- 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