|
|
(91 intermediate revisions by 29 users not shown) |
Line 1: |
Line 1: |
| [http://vendingtalk.com/yabbse/Themes/default/cache/ldqdgt.html hotmail account] [http://beny-st.sk/_sub/beny/stdlow.html all you can eat breakfast] [http://doctorpetruska.com/images/logo/icon/trvowg.html cannibals] [http://whitmoreprinting.com/uploads/Lora/cache/vjtvxn.html incest family] [http://keyasurvey.com/tempdata/guestbook/leqqjj.html ink refill] [http://eternalmemoryof.com/images/thumbs/thumb/bfpsof.html little girls bathing] [http://tabclub.sufx.net/modules/gallery/gallery/photo/axgucv.html order codeine] [http://beny-st.sk/_sub/beny/fawgxp.html train baltimore new york] [http://www.applause.hu/search/libs/language/mxpqqr.html porters 5 forces] [http://dyets.com/images/vti_cnf/cache/nmugvg.html florida custom home builders] [http://www.applause.hu/search/libs/language/hmnwje.html oak acorn] [http://beny-st.sk/_sub/beny/vdpxiv.html rim networks] [http://eternalmemoryof.com/images/thumbs/thumb/rarrdj.html marina sirtis nude] [http://keyasurvey.com/tempdata/guestbook/xnbwqa.html seductive lingerie] [http://keyasurvey.com/tempdata/guestbook/cpqfmt.html university of kansas music school] [http://risk-it.org/images/logo/tmp/sqlqat.html nice boob flashers] [http://barra.hu/css/sauvan.html quiz site test web] [http://vendingtalk.com/yabbse/Themes/default/cache/xoqifq.html pornstar babes] [http://maxacars.com/photogallery/photo/1/rrvani.html staind mp3] [http://stjohnslaurys.org/Welcome/welcome/mpeg/letlhs.html why does my baby cry all the time] [http://maxacars.com/photogallery/photo/1/gvdgbq.html job satisfaction data] [http://bevsuit.com/images/pics/old/wgvpfj.html jeff davies cars] [http://beny-st.sk/_sub/beny/jjmfht.html oscar de la olla] [http://linux.marte.ro/photo/sql/tmp/aniehi.html auto classifieds wisconsin] [http://whitmoreprinting.com/uploads/Lora/cache/jnqwqq.html milf vip] [http://barra.hu/css/mcllcj.html external hard driv] [http://beny-st.sk/_sub/beny/qiwgpc.html poem about broken hearts] [http://bevsuit.com/images/pics/old/eujeel.html assurance etudiant] [http://tabclub.sufx.net/modules/gallery/gallery/photo/hscjhj.html anime ringtones] [http://ywcabethlehem.org/images/ico/tljgqa.html slipknot mp3] [http://download.sapte.ro/masini/dacia/thumbs/pics/cggqbb.html buy rivotril] [http://barra.hu/css/iwpiav.html young gay pass] [http://satanicboy.sapte.ro/wp-content/themes/bluespace-10/bluspace-10/xcqego.html discount ephedra] [http://bevsuit.com/images/pics/old/tmxamg.html sandisk website] [http://stjohnslaurys.org/Welcome/welcome/mpeg/olehrm.html low cost hosting] [http://lehighvalleycareerfair.com/htmlarea/images/gif/uohens.html female butts] [http://dyets.com/images/vti_cnf/cache/unjjcg.html undress a lady] [http://dyets.com/images/vti_cnf/cache/rjkkod.html home mortgages] [http://risk-it.org/images/logo/tmp/wfeiqu.html star ocean] [http://www.loyno.edu/~snkashis/autoviewer/images/2007-10-01/lmxahh.html cheap tamiflu] [http://bevsuit.com/images/pics/old/whtoim.html wsdot] [http://beny-st.sk/_sub/beny/xgnklv.html non pierced body jewellery] [http://hdwt.net/images/pics/guwkrm.html metro fm radio] [http://vendingtalk.com/yabbse/Themes/default/cache/ifuoad.html amazing race] [http://dyets.com/images/vti_cnf/cache/aidvnk.html bikini boobs] [http://nilesleeassociates.com/images/icons/gif/bdqarv.html tickling] [http://doctorpetruska.com/images/logo/icon/pbrjfm.html state of tennessee job opportunities] [http://hdwt.net/images/pics/alctin.html corona california real estate] [http://risk-it.org/images/logo/tmp/udragg.html hard anal sex] [http://hdwt.net/images/pics/aajjsl.html harry potter xxx] [http://keyasurvey.com/tempdata/guestbook/mxpxta.html rss news free feed] [http://dyets.com/images/vti_cnf/cache/knmjvt.html ontario paint horse association] [http://ywcabethlehem.org/images/ico/qpaivn.html ranmax] [http://linux.marte.ro/photo/sql/tmp/nutidv.html would i like you girls] [http://youdeserveabutler.com/test/cache/blsvln.html mobile home mortgages] [http://abodzio.pandela.net/themes/Christmas06/images/rhtuds.html acting jobs for kids] [http://whitmoreprinting.com/uploads/Lora/cache/qabggw.html free dog porn] [http://hdwt.net/images/pics/gbhnwt.html girls clothing] [http://vendingtalk.com/yabbse/Themes/default/cache/dhlhjq.html interracial gangbang] [http://doctorpetruska.com/images/logo/icon/hsugjf.html asp programming] [http://forinfo.sufx.net/images/avatars/gallery/photo/gtkqba.html buspar] [http://dyets.com/images/vti_cnf/cache/xhwwov.html west palm beach airport car rentals] [http://dyets.com/images/vti_cnf/cache/stcljw.html girls squirt] [http://risk-it.org/images/logo/tmp/wfishh.html dna structure] [http://tabclub.sufx.net/modules/gallery/gallery/photo/elumik.html order hgh] [http://abodzio.pandela.net/themes/Christmas06/images/xvwmwq.html sexo hombre] [http://www.vakondgyar.hu/zenes/large/ewqola.html 1850 theatre] [http://vendingtalk.com/yabbse/Themes/default/cache/eilffa.html korean girl gallery] [http://youdeserveabutler.com/test/cache/mdkmph.html starwars toons] [http://dyets.com/images/vti_cnf/cache/jhbhem.html episode iii star wars] [http://linux.marte.ro/photo/sql/tmp/guukql.html goth porn] [http://eternalmemoryof.com/images/thumbs/thumb/dpllag.html alternate shell windows] [http://lehighvalleycareerfair.com/htmlarea/images/gif/pfufpw.html charlotte russe clothing] [http://bevsuit.com/images/pics/old/atqoba.html dance videos] [http://nilesleeassociates.com/images/icons/gif/kesxiu.html limousine chicagoland] [http://satanicboy.sapte.ro/wp-content/themes/bluespace-10/bluspace-10/loesto.html amitriptyline] [http://www.loyno.edu/~gcnfj/UserFiles/File/tmp/pgicsn.html midi ringtones] [http://beny-st.sk/_sub/beny/prmpjw.html automotive defects] [http://doctorpetruska.com/images/logo/icon/fmhqke.html braces for teeth] [http://risk-it.org/images/logo/tmp/pighfc.html virginia madsen nude] [http://risk-it.org/images/logo/tmp/lglbbq.html ponygirl] [http://www.loyno.edu/~snkashis/autoviewer/images/2007-10-01/krdbla.html ericsson ringtones] [http://youdeserveabutler.com/test/cache/xiggro.html safe credit union] [http://abodzio.pandela.net/themes/Christmas06/images/wpxavd.html pine mountain motel] [http://risk-it.org/images/logo/tmp/blgjks.html laparoscope system] [http://forinfo.sufx.net/images/avatars/gallery/photo/iwkolj.html free country ringtones] [http://eternalmemoryof.com/images/thumbs/thumb/fqlalu.html average law school gpa] [http://youdeserveabutler.com/test/cache/upmgfc.html opel gt] [http://abodzio.pandela.net/themes/Christmas06/images/deumme.html mn campaign finance] [http://nilesleeassociates.com/images/icons/gif/gfuxgo.html spring isd] [http://forinfo.sufx.net/images/avatars/gallery/photo/vbideg.html discount diflucan] [http://lehighvalleycareerfair.com/htmlarea/images/gif/fajxeu.html pill holders] [http://bevsuit.com/images/pics/old/rurukn.html thomas hicks] [http://bevsuit.com/images/pics/old/xotdcu.html swedish body massage] [http://barra.hu/css/fqfevf.html nfl super bowl videos] [http://keyasurvey.com/tempdata/guestbook/tmmxxp.html rose valley lake pennsylvania] [http://barra.hu/css/vpulen.html orange county tattoo parlor] [http://satanicboy.sapte.ro/wp-content/themes/bluespace-10/bluspace-10/qlekla.html order zocor] [http://abodzio.pandela.net/themes/Christmas06/images/knhuci.html london factory] [http://risk-it.org/images/logo/tmp/ffmgdm.html strip tetris] [http://wooff.xlx.pl/library/free-lesbian.html free lesbian video download] [http://klwebb.ueuo.com/lib/world-wide/ world wide wedgie] [http://silivraur.myxhost.com/resources/vsat-internet.html vsat internet service] [http://sultryshanny.w8w.pl/topic/cum-clips/ cum clips] [http://juliusjunkie.w8w.pl/blog/free-gay/ free gay teen sex] [http://lurzgri.hostinggratisargentina.com/directory/doreen/ doreen] [http://kat9i-95.orgfree.com/library/wedding-poems.html wedding poems readings] [http://wooff.xlx.pl/library/bernese-mountain.html bernese mountain dog] [http://monkeyd.hostinggratischile.com/library/hot-mail.html hot mail] [http://dirtmonk.hostinggratischile.com/view/limit-on/ limit on child births] [http://klwebb.ueuo.com/lib/tracfone-ringtone/ tracfone ringtone] [http://klwebb.ueuo.com/lib/womens-health/ womens health supplement] [http://hihallei.ueuo.com/resources/satin-slippers.html satin slippers] [http://misaacri.hostinggratischile.com/antimatter/ antimatter] [http://sultryshanny.w8w.pl/topic/girls-showering/ girls showering] [http://www.volny.cz/o0maybelle0o/directory/what-countie.html what countie is bangor maine in] [http://miss-cris.3-hosting.net/view/discount-plus/ discount plus size lingerie] [http://silivrour.hostinggratisargentina.com/lib/walkthroughs.html walkthroughs] [http://silivrour.hostinggratisargentina.com/lib/lose-my.html lose my breath destinys child] [http://princezz.hostinggratisargentina.com/html/best-techniques.html best techniques for male masterbation] [http://touchya.xlx.pl/resources/nightgowns.html nightgowns] [http://tokman.3-hosting.net/lib/avg/ avg] [http://lurzgri.hostinggratisargentina.com/directory/meijers/ meijers] [http://princezz.hostinggratisargentina.com/html/kathleen-robertson.html kathleen robertson nude] [http://dirtmonk.hostinggratischile.com/view/treating-a/ treating a black eye] [http://cockroailler.myxhost.com/text/maxis-caller/ maxis caller ringtones] [http://coquarle.orgfree.com/tommysbookmarks.html tommysbookmarks] [http://buycommiewildly.6te.net/lib/paris-hilton/ paris hilton sex tape free] [http://lord-griever.myxhost.com/text/nude-muscle/ nude muscle men] [http://cockr.hostinggratisargentina.com/topic/dawn-marie/ dawn marie topless] [http://cockroailler.myxhost.com/text/teen-belly/ teen belly buttons] [http://klwebb.ueuo.com/lib/rio-de/ rio de janeiro foto] [http://sturuntsev.prv.pl/directory/occasions-rental.html occasions rental] [http://readingredhead.myxhost.com/adult-site.html adult site reviews] [http://touchya.xlx.pl/resources/quaker.html quaker] [http://readingredhead.myxhost.com/monster-mash.html monster mash] [http://thbruner.ueuo.com/content/everpure.html everpure] [http://readingredhead.myxhost.com/free-forums.html free forums] [http://l-z.3-hosting.net/web/free-porn/ free porn comics] [http://cockr.hostinggratisargentina.com/topic/student-luggage/ student luggage] [http://cockroailler.myxhost.com/text/oregon-trail/ oregon trail history] [http://wooff.xlx.pl/library/funny-toons.html funny toons] [http://monkeyd.hostinggratischile.com/library/find-love.html find love online] [http://tokman.3-hosting.net/lib/mexico-people/ mexico people pictures] [http://cockroailler.myxhost.com/text/the-maximum/ the maximum report processing jobs limit] [http://buycommiewildly.6te.net/lib/college-life/ college life] [http://sturuntsev.prv.pl/directory/men-masterbating.html men masterbating] [http://www.volny.cz/o0maybelle0o/directory/canon-powershot.html canon powershot s410] [http://kat9i-95.orgfree.com/library/moviedrive.html moviedrive] [http://miss-cris.3-hosting.net/view/wholesale-flower/ wholesale flower] [http://lord-griever.myxhost.com/text/nissan-z/ nissan 350z parts] [http://cockr.hostinggratisargentina.com/topic/psychic-chat/ psychic chat online] [http://klwebb.ueuo.com/lib/relocation-service/ relocation service] [http://juliusjunkie.w8w.pl/blog/porsche-carrera/ porsche carrera gt] [http://hihallei.ueuo.com/resources/fags.html fags] [http://krakozyabrik.load4.net/small/gay-studs.html gay studs] [http://hihallei.ueuo.com/resources/motorhome-sales.html motorhome sales] [http://l-z.3-hosting.net/web/dvd-karaoke/ dvd karaoke player] [http://sturuntsev.prv.pl/directory/braless-babes.html braless babes] [http://hihallei.ueuo.com/resources/las-vegas.html las vegas hotel map] [http://monkeydarren.getenjoyment.net/styles/buy-diazepam.html buy diazepam online] [http://klwebb.ueuo.com/lib/circumcision/ circumcision] [http://mariaklara.prv.pl/data/fuck-my.html fuck my girlfriend] [http://monkeyd.hostinggratischile.com/library/sexy-jokes.html sexy jokes] [http://klwebb.ueuo.com/lib/lyrics-how/ lyrics how did you know] [http://mariaklara.prv.pl/data/bobs-tgirls.html bobs tgirls] [http://silivrour.hostinggratisargentina.com/lib/nude-beauties.html nude beauties] [http://monkeyd.hostinggratischile.com/library/orangutans.html orangutans] [http://www.volny.cz/reabhecc/content/sellers-pack.html sellers pack] [http://klwebb.ueuo.com/lib/berries/ berries] [http://kat9i-95.orgfree.com/library/caribbean-maps.html caribbean maps views] [http://sultryshanny.w8w.pl/topic/online-keno/ online keno] [http://sturuntsev.prv.pl/directory/fake-grass.html fake grass] [http://thbruner.ueuo.com/content/britney-spears.html britney spears caught topless] [http://kat9i-95.orgfree.com/library/bisodol.html bisodol] [http://klwebb.ueuo.com/lib/bebe-outlet/ bebe outlet] [http://princezz.hostinggratisargentina.com/html/sapphic-erotic.html sapphic erotic] [http://www.volny.cz/zinjadu/description/dog-humping/ dog humping girl] [http://sultryshanny.w8w.pl/topic/free-hardcore/ free hardcore movies] [http://juliusjunkie.w8w.pl/blog/delta-airlines/ delta airlines flight schedule] [http://l-z.3-hosting.net/web/how-to/ how to increase sex drive] [http://mariaklara.prv.pl/data/naked-gym.html naked gym class swim] [http://hihallei.ueuo.com/resources/black-white.html black white] [http://thbruner.ueuo.com/content/letter-hearts.html letter hearts] [http://readingredhead.myxhost.com/health-plans.html health plans] [http://miss-cris.3-hosting.net/view/alien-ant/ alien ant farm mp3] [http://touchya.xlx.pl/resources/richard-fraser.html richard fraser md] [http://loozers.hostinggratischile.com/html/naked-people/ naked people having sex] [http://misaacri.hostinggratischile.com/graduation-gowns/ graduation gowns] [http://miss-cris.3-hosting.net/view/learn-to/ learn to strip] [http://monkeyd.hostinggratischile.com/library/discount-celexa.html discount celexa] [http://sturuntsev.prv.pl/directory/anal-fissure.html anal fissure] [http://cockr.hostinggratisargentina.com/topic/breast-of/ breast of bollywood actresses] [http://mariaklara.prv.pl/data/volunteer-resource.html volunteer resource center] [http://krakozyabrik.load4.net/small/nelson-mandela.html nelson mandela biography] [http://wooff.xlx.pl/library/golfballs.html golfballs] [http://wooff.xlx.pl/library/dw-drums.html dw drums] [http://kat9i-95.orgfree.com/library/hot-male.html hot male athletes] [http://mariaklara.prv.pl/data/fingering-my.html fingering my pussy hole] [http://coquarle.orgfree.com/slipknot-mp.html slipknot mp3] boccnapasre
| | {{TOCright}} |
| == Part 7 - Miscellaneous ==
| | == Chat Functions == |
| <p><em>Mostly internal stuff. Some good for everyone, some only for ASH wizards.</em></p>
| | {{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 output )</strong><br />
| | == Debugging Functions == |
| <strong>void print( string output, string color )</strong><br />
| | {{Flink|void|disable|string|desc=Disables the specified function.}} |
| Prints <i>output</i> to the CLI buffer and displays it in the status line of the main Adventuring window. If <i>color</i> is specified any HTML in <i>output</i> is escaped and the string is wrapped in a font tag before being printed.</p>
| | {{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