Hello, I'm going on vacation for a couple of days, and I would like mafia to continue to do things in my absence. I know some of the basics involved in doing this. I know how to schedule a task so that mafia will launch automatically, and I'm setting everything to run as a breakfast login script. But I don't really know what I'm doing from there. Here is what I have set up so far (initial code before other people's suggestions):
How does this look? I think this will mostly work, but just in case I'm messing up something basic, this is what I'm hoping mafia will do at login:
Now, I did partially test this already, and I have a few questions:
Is there a better way to adventure at the barrel full of barrels? I tried adventuring with "adventure 5 barrel full of barrels", but it found booze on it's first attempt, and mafia stopped (and didn't do anything else) after 4 adventures saying: "All booze in the specified rows has been collected". If I change the number of adventures to 4, and it doesn't find booze immediately, will it stop looking for booze even if there are more to be found there? Is it possible to set a condition to stop after finding all the booze in a set of rows?
I forget, does Eatdrink cast "Ode to Booze" if it is only overdrinking? Or does it only cast Ode before it overdrinks?
I'm at a relatively low level (I'll be level 8 when I'll need this to run), if bounty.ash accepts the "best" bounty, does this consider my level? Will bounty.ash pick a bounty that I'll have no hopes of completing?
I have it set to run levelup.ash twice. This is in case I level up once, and still have 100 adventures remaining after that. If levelup.ash ends because I run out of turns, will that cause mafia to stop (and not do anything else)? Will mafia stop if levelup.ash runs out of turns, and I call levelup.ash to run a second time?
Man, this is a long post and a lot to absorb, thank you anyone willing to take the time to read it/figure out what I'm asking.
Final Code:
Code:
breakfast
outfit MediumLevelMoxie
adventure 4 barrel full of barrels
bounty.ash accept best
bounty.ash *
use 3 agua de vida
// eatdrink to 13 fullness, 19 drunkeness, and 0 spleen, without overdrinking
// alias eatdrink => ashq import <EatDrink.ash>; SIM_CONSUME=false; eatdrink(13, 19, 0, false);
eatdrink
acquire 5 worthless item
//note: breakfast will turn worthless items into clovers. The above line is there to make sure you have worthless items for tomorrow.
levelup.ash
levelup.ash
cast odetobooze
// Eat remaining food and overdrink
// alias eatdrinksleep => ashq import <EatDrink.ash>; SIM_CONSUME=false; eatdrink(15, 19, 0, true)
eatdrinksleep
outfit Sleep
exit
How does this look? I think this will mostly work, but just in case I'm messing up something basic, this is what I'm hoping mafia will do at login:
- Do it's usual breakfast routine
- Wear my moxie-favored gear (called MediumLevelMoxie)
- Get all of the top 2 row's booze at the barrel full of barrels (I have my choice-adventure preference set up to search the top 2 rows of the barrels)
- Do today's bounty hunt
- Automatically eat/drink/spleen. I'm in hardcore and only want to spleen with agua de vida's right now. Also, I want to leave 2 fullness available to eat fortune cookies (I have a counter checker script that will automatically eat cookies when I get my next semi-rare)
- Get clovers from the hermit
- Spend all remaining turns leveling up
- Overdrink
- Put on my rollover gear (called Sleep)
- Close out of mafia
Now, I did partially test this already, and I have a few questions:
Is there a better way to adventure at the barrel full of barrels? I tried adventuring with "adventure 5 barrel full of barrels", but it found booze on it's first attempt, and mafia stopped (and didn't do anything else) after 4 adventures saying: "All booze in the specified rows has been collected". If I change the number of adventures to 4, and it doesn't find booze immediately, will it stop looking for booze even if there are more to be found there? Is it possible to set a condition to stop after finding all the booze in a set of rows?
I forget, does Eatdrink cast "Ode to Booze" if it is only overdrinking? Or does it only cast Ode before it overdrinks?
I'm at a relatively low level (I'll be level 8 when I'll need this to run), if bounty.ash accepts the "best" bounty, does this consider my level? Will bounty.ash pick a bounty that I'll have no hopes of completing?
I have it set to run levelup.ash twice. This is in case I level up once, and still have 100 adventures remaining after that. If levelup.ash ends because I run out of turns, will that cause mafia to stop (and not do anything else)? Will mafia stop if levelup.ash runs out of turns, and I call levelup.ash to run a second time?
Man, this is a long post and a lot to absorb, thank you anyone willing to take the time to read it/figure out what I'm asking.
Final Code:
Code:
breakfast
outfit MediumLevelMoxie
// Search top 2 rows for booze, then middle two rows
set barrelGoal = 3
try; adv 30 barrels
use 3 agua de vida
// eatdrink to 13 fullness, 19 drunkeness, and 12 spleen, without overdrinking
// alias eatdrink => ashq import <EatDrink.ash>; eatdrink((fullness_limit()-2), inebriety_limit(), 0,false)
eatdrink
//eatdrink changes your mood! And doesn't change it back unless it overdrinks!
mood mediumlevelmoxie
// Accept low level bounty
bounty.ash accept 1
bounty.ash *
acquire 5 worthless item
hermit * ten-leaf clover
levelup.ash
levelup.ash
//Eatdrink doesn't cast ode if you only overdrink
cast odetobooze
// Eat remaining food and overdrink
// alias eatdrinksleep => ashq import <EatDrink.ash>; eatdrink(fullness_limit(), inebriety_limit(), spleen_limit(),true)
eatdrinksleep
outfit Sleep
exit
Last edited: