Miscellaneous Functions: Difference between revisions
imported>Bale Add chat functions. 'Bout time! |
imported>Bale re-organize |
||
Line 1: | Line 1: | ||
{{TOCright}} | |||
== 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_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.}} | |||
== Time Functions == | |||
{{Flink|int|gameday_to_int|desc=Returns the current KoL date as an integer.}} | |||
{{Flink|int|gameday_to_int|desc=Returns the current KoL date as a string.}} | |||
{{Flink|string|now_to_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.}} | |||
== Other Functions == | |||
{{Flink|void|abort|{{opt|string}}|desc=Aborts the current script with an optional message.}} | {{Flink|void|abort|{{opt|string}}|desc=Aborts the current script with an optional message.}} | ||
{{Flink|void|print|string|{{opt|string}}|desc=Prints to CLI and status line of Adventuring window, optionally in a specified color.}} | {{Flink|void|print|string|{{opt|string}}|desc=Prints to CLI and status line of Adventuring window, optionally in a specified color.}} | ||
Line 15: | Line 31: | ||
{{Flink|int|count|aggregate|desc=Returns the number of defined keys for the specified aggregate.}} | {{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.}} | {{Flink|void|clear|aggregate|desc=Removes all keys from the specified aggregate.}} | ||
{{Flink|void|disable|string|desc=Disables the specified function (for debugging purposes).}} | {{Flink|void|disable|string|desc=Disables the specified function (for debugging purposes).}} | ||
{{Flink|void|enable|string|desc=Enables the specified function (for debugging purposes).}} | {{Flink|void|enable|string|desc=Enables the specified function (for debugging purposes).}} | ||
Line 21: | Line 36: | ||
{{Flink|int|get_revision|desc=Returns the current KoLmafia revision number.}} | {{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_version|desc=Returns the most recent KoLmafia version.}} | ||
[[Category:Scripting]] | [[Category:Scripting]] |
Revision as of 09:41, 26 January 2011
Chat Functions
void chat_clan( string )
void chat_clan( string, string )
void chat_macro( string )
void chat_private( string, string )
boolean is_online( string )
Time Functions
int gameday_to_int()
int gameday_to_int()
string now_to_string()
string time_to_string()
string today_to_string()
Other Functions
void abort( [string] )
void print( string, [string] )
void print_html( string )
void logprint( string )
boolean cli_execute( string )
void wait( int )
void waitq( int )
boolean user_confirm( string )
string get_property( string )
void set_property( string, string )
void batch_open()
boolean batch_close()
boolean file_to_map( string, aggregate )
boolean map_to_file( aggregate, string )
void clear( aggregate )
void disable( string )
void enable( string )
buffer load_html( string )
int get_revision()
string get_version()