cli-type kolmafia script commands

QVamp

Member
Are there commands that I can put into a script that do the same as the following CLI commands?

pull all
breakfast

I tried putting these into a script, but the script failed on them.
 

Bale

Minion
I moved it to Community Support for you. Fortunate we don't bit or bitch if someone makes a simple mistake like that. We don't even mind double-posting like you did. ;)

Unfortuantely I don't think there are any ASH version of those commands, so you'd have to use

Code:
if(get_property("lastEmptiedStorage").to_int() != my_ascensions())
   cli_execute("pull all");
cli_execute("breakfast");
 

Bale

Minion
Actually, you taught me something today. I've got a script that runs automatically when I break the prism. It has a section that looks like this:

Code:
	if(get_property("lastEmptiedStorage").to_int() != my_ascensions()) {
		empty_closet();
		visit_url("storage.php?action=pullall&pwd");
	}

I didn't realize that "all" was a valid parameter for pull! Now I can upgrade that visit_url() with a cli_execute() command! Isn't it nice to know that someone learned something from your thread?
 
Top