Cli execute

From Kolmafia
Revision as of 22:35, 9 May 2009 by imported>MapleMario (New page: '''boolean cli_execute(string command)''' Executes the given command as a CLI command, rather than ASH. <code> # snippet from my aftercore.ash script cli_execute("outfit "+consu...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

boolean cli_execute(string command) Executes the given command as a CLI command, rather than ASH.

  1. snippet from my aftercore.ash script

cli_execute("outfit "+consumption_outfit);

if (use_milk_of_mag) cli_execute("use milk of magnesium");

foreach i in food_items {

cli_execute("eat "+food_items[i]);

}

foreach i in booze_items {

cli_execute("drink "+booze_items[i]);

}

foreach i in spleen_items {

cli_execute("use "+spleen_items[i]);

}

if (switch_ode_polka) { cli_execute("uneffect ode to booze"); cli_execute("nuns"); cli_execute("cast 35 polka of plenty"); }