autoBasement.ash - Better basement automation

For the Gauntlet, my local copy has this:

maximize((basegoal/80)+" da, 1 hp" + maximize_familiar, false);

which has resulted in no problems on several basement dives.

I'm not sure if I added that variable myself too, so just in case, basegoal = ceil((level ** 1.4) * 1.08);

ETA: and in cache_outfits(), it just uses "10 da, 1 hp" + maximize_familiar.
 
Last edited:
Well it looks like it happens almost at the very beginning (right after it starts to cache outfits and before anything else it removes the familiar equipment)

Code:
> call scripts\autoBasement.ash

Initializing items and effects...
Removing overpriced banana smoothie
Removing overpriced Climate Colada
Removing overpriced cosmic lemonade
Removing bad priced ennui-flavored potato chips
Removing overpriced extra-potent gremlin mutagen
Removing overpriced flask of baconstone juice
Removing absolute potion green candy heart
Removing overpriced gremlin mutagen
Removing overpriced handful of Laughing Willow bark
Removing absolute potion henna tattoo
Removing overpriced jug of baconstone juice
Removing absolute potion lavender candy heart
Removing overpriced mafia aria
Removing absolute potion orange candy heart
Removing absolute potion pink candy heart
Removing overpriced pressurized potion of perspicacity
Removing absolute potion salamander slurry
Removing nonbuffing super-spiky hair gel
Removing overpriced teeny-tiny magic scroll
Removing overpriced vial of baconstone juice
Removing absolute potion white candy heart
Removing absolute potion yellow candy heart
Removing overpriced banana smoothie
Removing absolute potion Black No. 2
Removing overpriced bottle of pirate juice
Removing overpriced Climate Colada
Removing overpriced extra-potent gremlin mutagen
Removing absolute potion eyedrops of newt
Removing overpriced flask of porquoise juice
Removing overpriced floaty sand
Removing absolute potion green candy heart
Removing overpriced gremlin mutagen
Removing overpriced jellyfish gel
Removing overpriced jug of porquoise juice
Removing absolute potion lavender candy heart
Removing overpriced lump of Saccharine Maple sap
Removing overpriced mafia aria
Removing absolute potion orange candy heart
Removing absolute potion pink candy heart
Removing overpriced powdered toad horn
Removing overpriced pressurized potion of pulchritude
Removing bad priced radium-flavored potato chips
Removing absolute potion shaving cream
Removing absolute potion super-spiky hair gel
Removing absolute potion toothbrush
Removing overpriced vial of porquoise juice
Removing absolute potion white candy heart
Removing absolute potion yellow candy heart
Taking off sugar shorts...
Equipment changed.
Items and effects initialization complete!
[B][COLOR="#FF0000"]Caching outfits...
Taking off spangly mariachi pants...
Adjusting familiar weight by -22 pounds[/COLOR][/B]
Equipment changed.
Putting on outfit: Mysticality
Equipment changed.
Retrieving equipment...

Hat: fireman's helmet
Weapon: scratch 'n' sniff sword
Off-hand: Glass Balls of the Goblin King
Shirt: astral shirt
Pants: sugar shorts
Container: paperclip cape

Acc. 1: Order of the Silver Wossname (2)
Acc. 2: stainless steel scarf (2)
Acc. 3: stainless steel solitaire (2)

Pet: Fancypants Scarecrow (1 lbs)
[COLOR="#FF0000"][B]Item: (none)[/B][/COLOR]

Sticker 1: scratch 'n' sniff wrestler sticker (0)
Sticker 2: scratch 'n' sniff wrestler sticker (0)
Sticker 3: scratch 'n' sniff wrestler sticker (0)
Maximizing...
120 combinations checked, best score 3,582.00
Saving outfit: Mysticality
Outfit saved

then at the end of caching it never puts the familiar equipment back on. for fun i ran the same test with the fairy boots set as my familiar and the stomp box is never removed so i'm thinking maybe the script needs something custom for scarecrow and (maybe) hattrack?

by the way i am also having trouble with elemental tests where it buys all kinds of things and then breaks trying to acquire Crotchety Pine Needles, when plenty of other less expensive items will suffice. However as you'll see below, I can manually buy (cheap) stuff to pass the test:

Code:
Basement level 416: Sleaze & Stench Elemental Resistance Test
Maximizing...
924 combinations checked, best score 37.86
Wielding scratch 'n' sniff sword...
Equipment changed.
Holding wonderwall shield...
Equipment changed.
Putting on sugar shorts...
Equipment changed.
Putting on round green sunglasses...
Equipment changed.
Putting on makeshift SCUBA gear...
Equipment changed.
Putting on round purple sunglasses...
Equipment changed.
Searching for "phial of sleaziness"...
Search complete.
Purchasing phial of sleaziness (1 @ 499)...
You acquire an item: phial of sleaziness
Purchases complete.
Using 1 phial of sleaziness...
You acquire an effect: Sleazeform (duration: 5 Adventures)
Finished using 1 phial of sleaziness.
Maximizing...
140 combinations checked, best score 38.36
Putting on Pine-Fresh air freshener...
Equipment changed.
Putting on Pine-Fresh air freshener...
Equipment changed.
Searching for "oil of slipperiness"...
Search complete.
Purchasing oil of slipperiness (1 @ 884)...
You acquire an item: oil of slipperiness
Purchases complete.
Using 1 oil of slipperiness...
You acquire an effect: Slippery Oiliness (duration: 5 Adventures)
Finished using 1 oil of slipperiness.
Searching for "Ben-Gal™ Balm"...
Search complete.
Purchasing Ben-Gal™ Balm (1 @ 24)...
You acquire an item: Ben-Gal™ Balm
You spent 24 Meat
Purchases complete.
Using 1 Ben-Gal™ Balm...
You acquire an effect: Go Get 'Em, Tiger! (duration: 3 Adventures)
Finished using 1 Ben-Gal™ Balm.
Searching for "black facepaint"...
Search complete.
Purchasing black facepaint (1 @ 300)...
You acquire an item: black facepaint
You spent 300 Meat
Purchases complete.
Using 1 black facepaint...
You acquire an effect: Black Face (duration: 10 Adventures)
Finished using 1 black facepaint.
Searching for "Ferrigno's Elixir of Power"...
Search complete.
Purchasing Ferrigno's Elixir of Power (1 @ 1,579)...
You acquire an item: Ferrigno's Elixir of Power
Purchases complete.
Using 1 Ferrigno's Elixir of Power...
You acquire an effect: Incredibly Hulking (duration: 5 Adventures)
Finished using 1 Ferrigno's Elixir of Power.
Searching for "fish-liver oil"...
Search complete.
Purchasing fish-liver oil (1 @ 150)...
You acquire an item: fish-liver oil
Purchases complete.
Using 1 fish-liver oil...
You acquire an effect: Fishy Fortification (duration: 5 Adventures)
Finished using 1 fish-liver oil.
Verifying ingredients for flask of hamethyst juice (1)...
Searching for "flask of Gnomochloric acid"...
Search complete.
Purchasing flask of Gnomochloric acid (1 @ 1,000)...
You acquire an item: flask of Gnomochloric acid
Purchases complete.
Searching for "hamethyst"...
Search complete.
Purchasing hamethyst (1 @ 2,899)...
You acquire an item: hamethyst
Purchases complete.
Creating flask of hamethyst juice (1)...
You acquire an item: flask of hamethyst juice
Successfully created flask of hamethyst juice (1)
Using 1 flask of hamethyst juice...
You acquire an effect: Ham-Fisted (duration: 10 Adventures)
Finished using 1 flask of hamethyst juice.
Searching for "handful of Crotchety Pine needles"...
Search complete.
Stopped purchasing handful of Crotchety Pine needles @ 150,000.
Using cached search results for handful of Crotchety Pine needles...
Stopped purchasing handful of Crotchety Pine needles @ 150,000.
You need 1 more handful of Crotchety Pine needles to continue.
unable to pass elemental test, quitting

> use 1 Polysniff Perfume;

Searching for "Polysniff Perfume"...
Search complete.
Purchasing Polysniff Perfume (1 @ 100)...
You acquire an item: Polysniff Perfume
Purchases complete.
Using 1 Polysniff Perfume...
You acquire an effect: Neutered Nostrils (duration: 10 Adventures)
Finished using 1 Polysniff Perfume.

[10591] Fernswarthy's Basement (Level 416)
Elemental Resist Test: +9 stench 70% (6,762 hp), +5 sleaze 100% (1 hp)
You lose 6,445 hit points
You lose 1 hit point
 
Well, that would be because the script currently ignores resistance given by potions. That could probably get added I guess.
 
I can't figure this out -- is there a way to have autoBasement prefer a certain outfit against certain monsters like the N-Dimensional horror?
 
Upon trying to run, I just got a bunch of mall searches, then 3 repetitions of:
"You need 1 more scratch 'n' sniff wrestler sticker to continue."

Buying 3 of those stickers results in it quitting because I'm level 31, so I need to edit break_on_level... and editing it within the script doesn't work, so I need to use the CLI zlib thingy...

Edit: It seems to be using a lot of unneccesary potions, because they're more "cost-effective" than, say, connery's elixir of audacity, even though audacity alone would get me to the threshold and it winds up buying that anyway. Also, I see it doesn't take DA into account very much -- I'm currently on a floor where the Gauntlet outfit would require additional buffing, but by getting to >=1000 DA (instead of 920) by switching from sugar shorts to hodgman pants, I can pass it.

Another edit: I think potions that benefit all stats should be favored over potions that benefit just one stat, because you'll need the other stats buffed for upcoming levels anyway.

One last thing: I'd like to be able to use my fancypants scarecrow instead of a sombrero, for the 70-lb-potato-ness, but I'm not sure how to do that.

No, I don't think so. What would you equip differently against the horror?

As a TT doing the dungeon, I would buff Myst instead of Muscle against the Great-x-N grandfather ghost, because I need an elemental attack there (I use Snowclone.) as opposed to the divines I'm funkslinging against everything else. I imagine his issue is similar.
 
Last edited:
Upon trying to run, I just got a bunch of mall searches, then 3 repetitions of:
"You need 1 more scratch 'n' sniff wrestler sticker to continue."
Preferences -> General -> "Share recent mall price data with other users" would let you skip most of those mall searches, if you find it to be an issue. Otherwise mafia is going to look up those prices with mall searches, and that's not related to using this script.

As a TT doing the dungeon, I would buff Myst instead of Muscle against the Great-x-N grandfather ghost, because I need an elemental attack there (I use Snowclone.) as opposed to the divines I'm funkslinging against everything else. I imagine his issue is similar.

Elemental love songs are cheaper than divine items, and they let you use the same combat strategy for every monster.
 
But as lost says, it's a lot easier, and possibly cheaper, to use elemental love songs against them (especially with funkslinging).
 
Doesn't the hydra block items or something?

edit: never mind me, I'm crazy. I haven't run the basement in years :/
 
Last edited:
Having a weird bug where the script tries to pull weird items from the stash for stat tests:

Basement level 154: Mysticality Test
Maximizing...
21 combinations checked, best score 1,266.00
Pulling items from stash...
Transfer failed for Tropical Crimbo Hat
Movement of items failed.
unable to buff Mysticality to 1248, quitting
Basement sucessfully automated for 1 out of 3 adventures.

Instead of just doing "maximize myst", which gave enough myst to pass the test. For moxie tests it tries to get an underworld flail.

edit: i removed try to get items from the stash and now it's workin' fine.
 
Last edited:
Had some trouble w/ the DA maximising in the script. I was a little annoyed when I figured out what the problem was. I was at 800 DA instead of 1000, doubling the # of HP I needed. Did I miss an update somewhere?

Code:
Basement level 371: HP Test
Putting on outfit: Gauntlet
Equipment changed.
Searching for "Ben-Gal™ Balm"...
Search complete.
Putting on Travoltan trousers...
Equipment changed.
Purchasing Ben-Gal™ Balm (1 @ 22)...
You acquire an item: Ben-Gal™ Balm
You spent 22 Meat
Purchases complete.
Using 1 Ben-Gal™ Balm...
You acquire an effect: Go Get 'Em, Tiger! (duration: 3 Adventures)
Finished using 1 Ben-Gal™ Balm.
Searching for "blood of the Wereseal"...
Search complete.
Purchasing blood of the Wereseal (1 @ 500)...
You acquire an item: blood of the Wereseal
Purchases complete.
Using 1 blood of the Wereseal...
You acquire an effect: Temporary Lycanthropy (duration: 10 Adventures)
Finished using 1 blood of the Wereseal.
Using 1 Mick's IcyVapoHotness Rub...
You acquire an effect: Extreme Muscle Relaxation (duration: 10 Adventures)
Finished using 1 Mick's IcyVapoHotness Rub.
Searching for "black facepaint"...
Search complete.
Purchasing black facepaint (1 @ 285)...
You acquire an item: black facepaint
You spent 285 Meat
Purchases complete.
Using 1 black facepaint...
You acquire an effect: Black Face (duration: 10 Adventures)
Finished using 1 black facepaint.
Using 1 fish-liver oil...
You acquire an effect: Fishy Fortification (duration: 5 Adventures)
Finished using 1 fish-liver oil.
Searching for "pirate brochure"...
Search complete.
Purchasing pirate brochure (1 @ 500)...
You acquire an item: pirate brochure
Purchases complete.
Using 1 pirate brochure...
You acquire an effect: Muscularrr (duration: 10 Adventures)
Finished using 1 pirate brochure.
unable to buff hp to 8781, quitting
mpAutoRecovery => 0.1
mpAutoRecoveryTarget => 0.65
Basement sucessfully automated for 24 out of 95 adventures.
Restoring HP! Currently at 3093 of 7414 HP, 1823 of 7157 MP, current meat: 6280534 ... Target HP = 7044.
_meatperhp => 0.008941532809048499
Casting Cannelloni Cocoon 1 times...
You gain 4,321 hit points
Cannelloni Cocoon was successfully cast.
Searching for "Ultrasoldier Serum"...
Search complete.
Maximizing...
4576 combinations checked, best score 1,000.00
Putting on sponge helmet...
Equipment changed.
Holding spongy shield...
Equipment changed.
Putting on spiky turtle shoulderpads...
Equipment changed.
Putting on stainless steel suspenders...
Equipment changed.
Maximizing...
704 combinations checked, best score 1,000.00

[13984] Fernswarthy's Basement (Level 371)
Maximum HP Test: 6,133 current, 42711 * 0.10 (1025 DA) = 4,271 needed
You lose 3,946 hit points
 
For some reason it gives this error periodically

Basement level 167: Stench & Hot Elemental Resistance Test
Maximizing...
10488 combinations checked, best score 41.47
Putting on hardened slime hat...
Equipment changed.
Wielding Brimstone Bludgeon...
Equipment changed.
Holding scratch 'n' sniff sword...
That's not an item, or it's not something you own.
unable to pass elemental test, quitting
Basement sucessfully automated for 18 out of 193 adventures.
 
That generally happens when Mafia gets out of synch with itself, doing a "refresh all" will solve it in that case. Also, I really should rewrite the maximizer code to use the new maximizer features....
 
I agree, and if I could find out a good way to reproduce it reliably with a reason other than this script I'd report it for fixing immediately...
 
I can't thank you enough for this script.

I use a few scripts found on this forum but this auto-basement is SUCH a time-saver.

Thank you,
thank you,
THANK you!



as a suggestion to improve it: try looking into cheap buffBots. I used the 4meat TurtleTamer buffPack from Tetsudinata and it made HP test SO much more easy.


again: Thank you for the script
 
Back
Top