Deathless Assassin
Member
> verify amultis
Function 'primary( )' undefined. This script may require a more recent version of KoLmafia and/or its supporting scripts. (amultis.ash, line 8)
This whole function calling thing is confusing me. I've previously avoided having multiple functions in scripts that I've made, but I figure it's something I should probably learn. I tried the wiki, but didn't find anything after some cursory searches. This is just a script to log in derelict accounts that are holding basement clans, to prevent miscreants from sneaking in and taking leadership. I figured I may as well throw in some summons, increasing the supply of consumer goods seems harmless enough, and who knows when these accounts might be repurposed and need a little meat.
Code:
import <recordsongs.ash>;
import <still_automator.ash>;
boolean[string] starter;
starter["pleasure slave"] = true;
int tomeLeft = 3 - get_property("_clipartSummons").to_int();
if (starter[my_name()]) main();
void main()
{
if
primary();
sinsonte();
cli_execute("login wandering multi");
primary;
domesticated;
cli_execute("login magician");
primary();
calcutta();
cli_execute("login lame joke multi");
primary();
recordsongs();
}
Void primary()
{
cli_execute("breakfast");
if ( tomeLeft > 0 ) && (have_skill($skill[Summon Clip Art]) create( tomeLeft, $item[ Potion of punctual companionship ] );
cli_execute("mallsell * punctual @8500 limit 1");
}
Void sinsonte()
{
cli_execute("acquire 10 bottle of tequila");
call still_automator.ash;
cli_execute("mallsell * sinsonte @2300");
}
Void calcutta()
{
cli_execute("acquire 10 bottle of gin");
call still_automator;
cli_execute("mallsell * calcutta @2300");
}
Void domesticated()
{
cli_execute("acquire 10 bottle of whiskey");
call still_automator;
cli_execute("mallsell * domesticated @2300");
}