Thanks for pointing that out Fluxxdog, I corrected my post.
If you want to be able to set the number of adventures, use this script:
and call it like this:
The code in my post was simply a function, it doesn't actually do anything by itself. It needs to be called, like Fluxxdog showed.So, I saved this script in a file called "ratfight.ash"
If you want to be able to set the number of adventures, use this script:
PHP:
int faucet = 1 + get_property( "tavernLayout" ).index_of( "3" );
if ( faucet < 1 ) abort( "Mafia doesn't know where the Faucet is." );
void squeeze_rat()
{
visit_url( "cellar.php?action=explore&whichspot=" + faucet );
visit_url( "choice.php?whichchoice=512&option=1" );
run_combat();
}
void main( int turns )
{
for i from 1 to turns squeeze_rat();
}
Code:
call ratfight.ash 10