autoBasement.ash - Better basement automation

Depending on what version of AutoBasement you use, it might be an old problem. Winterbay posted a new version with a solution to it somewhere in the post.
If it is the same problem that I had (and not simply due to not allowing Mafia to buy stuff from NPCs or the Mall) then it is some thing where if you have an item equipped somewhere, and want to equip it somewhere else, it is sensed as not having the item.
This is especially so if using the Disembodied Hand. If the Hand have a weapon in one of the AutoBasement generated outfits, and it then change to an outfit where the weapon is in your mainhand or offhand, then it think you dont have one.

As I said, check back a bit. I know Winterbay posted a version where this was solved.

Well, he did say he was using the version in the second post which is where my version is located so...

That said (and as slyz stated), I would definitely need a copy of the CLI-output for when it stops to help out. Also a copy of the zlib-settings (can be found by typing "zlib vars" in the CLI) and the values of the mall and NPC-store settings would be good.
 
> call scripts\autoBasement.ash

Initializing items and effects...
Searching for "arse-a'fire elixir"...
Search complete.
Searching for "banana smoothie"...
Search complete.
Searching for "Ben-Gal™ Balm"...
Search complete.
Searching for "Black Body™ spray"...
Search complete.
Searching for "black facepaint"...
Search complete.
Searching for "Black No. 2"...
Search complete.
Searching for "black sheepskin diploma"...
Search complete.
Searching for "blood of the Wereseal"...
Search complete.
Searching for "bottle of pirate juice"...
Search complete.
Searching for "bottle of rhinoceros hormones"...
Search complete.
Searching for "Climate Colada"...
Search complete.
Searching for "Connery's Elixir of Audacity"...
Search complete.
Searching for "cosmic lemonade"...
Search complete.
Searching for "extra-potent gremlin mutagen"...
Search complete.
Searching for "eyedrops of newt"...
Search complete.
Searching for "Ferrigno's Elixir of Power"...
Search complete.
Searching for "fish-liver oil"...
Search complete.
Searching for "flask of baconstone juice"...
Search complete.
Searching for "flask of hamethyst juice"...
Search complete.
Searching for "flask of porquoise juice"...
Search complete.
Searching for "floaty sand"...
Search complete.
Searching for "Frogade"...
Search complete.
Searching for "funky dried mushroom"...
Search complete.
Searching for "glittery mascara"...
Search complete.
Searching for "green candy heart"...
Search complete.
Searching for "gremlin mutagen"...
Search complete.
Searching for "hair spray"...
Search complete.
Searching for "handful of Crotchety Pine needles"...
Search complete.
Searching for "handful of Laughing Willow bark"...
Search complete.
Searching for "handsomeness potion"...
Search complete.
Searching for "Hawking's Elixir of Brilliance"...
Search complete.
Searching for "henna tattoo"...
Search complete.
Searching for "jar of "Creole Lady" marrrmalade"...
Search complete.
Searching for "jellyfish gel"...
Search complete.
Searching for "jug of baconstone juice"...
Search complete.
Searching for "jug of hamethyst juice"...
Search complete.
Searching for "jug of porquoise juice"...
Search complete.
Searching for "lavender candy heart"...
Search complete.
Searching for "lump of Saccharine Maple sap"...
Search complete.
Searching for "mafia aria"...
Search complete.
Searching for "Mick's IcyVapoHotness Rub"...
Search complete.
Searching for "milky potion"...
Search complete.
Searching for "cloudy potion"...
Search complete.
Searching for "fizzy potion"...
Search complete.
Searching for "ointment of the occult"...
Search complete.
Searching for "orange candy heart"...
Search complete.
Searching for "philter of phorce"...
Search complete.
Searching for "pink candy heart"...
Search complete.
Searching for "pirate brochure"...
Search complete.
Searching for "pirate pamphlet"...
Search complete.
Searching for "pirate tract"...
Search complete.
Searching for "potion of temporary gr8tness"...
Search complete.
Searching for "powdered toad horn"...
Search complete.
Searching for "pressurized potion of perspicacity"...
Search complete.
Searching for "pressurized potion of puissance"...
Search complete.
Searching for "pressurized potion of pulchritude"...
Search complete.
Searching for "pygmy pygment"...
Search complete.
Searching for "salamander slurry"...
Search complete.
Searching for "seal-brain elixir"...
Search complete.
Searching for "serum of sarcasm"...
Search complete.
Searching for "shaving cream"...
Search complete.
Searching for "super-spiky hair gel"...
Search complete.
Searching for "teeny-tiny magic scroll"...
Search complete.
Searching for "tomato juice of powerful power"...
Search complete.
Searching for "toothbrush"...
Search complete.
Searching for "unstable DNA"...
Search complete.
Searching for "vial of baconstone juice"...
Search complete.
Searching for "vial of hamethyst juice"...
Search complete.
Searching for "vial of porquoise juice"...
Search complete.
Searching for "white candy heart"...
Search complete.
Searching for "yellow candy heart"...
Search complete.
Items and effects initialization complete!
Caching outfits...
Putting on outfit: Mysticality
Equipment changed.
Maximizing (1st time may take a while)...
176 combinations checked, best score 1335.0
Putting on honey dipper...
Equipment changed.
Saving outfit: Mysticality
Outfit saved
Putting on outfit: Muscle
Equipment changed.
Maximizing...
232 combinations checked, best score 2165.0
Putting on Uncle Hobo's highest bough...
Equipment changed.
Saving outfit: Muscle
Outfit saved
Putting on outfit: Moxie
Equipment changed.
Maximizing...
131 combinations checked, best score 1277.0
Putting on velcro paddle ball...
Equipment changed.
Saving outfit: Moxie
Outfit saved
Putting on outfit: Gauntlet
Equipment changed.
Maximizing...
232 combinations checked, best score 4442.0
Putting on Uncle Hobo's highest bough...
Equipment changed.
Saving outfit: Gauntlet
Outfit saved
Putting on outfit: MPDrain
Equipment changed.
Maximizing...
128 combinations checked, best score 2767.0
Putting on honey dipper...
Equipment changed.
Saving outfit: MPDrain
Outfit saved
Putting on outfit: MP Regen
Equipment changed.
Maximizing...
112 combinations checked, best score 126.5
Putting on Uncle Hobo's highest bough...
Equipment changed.
Saving outfit: MP Regen
Outfit saved
Taking off Uncle Hobo's highest bough...
Equipment changed.
Putting on outfit: Damage
Equipment changed.
Maximizing...
248 combinations checked, best score 1928.0
Wielding Uncle Hobo's highest bough...
Equipment changed.
Holding Uncle Hobo's highest bough...
That's not an item, or it's not something you own.
Unable to meet all requirements via equipment changes.
See the Modifier Maximizer for further suggestions.

sorry for the long post
here's the zlib-settings (like I said, I'm new at scripts so this is freshly installed without any changes)

> zlib vars

Copy/paste any of the following lines into the CLI to edit settings:

zlib autoBasement_break_on_combat = false
zlib autoBasement_break_on_element = false
zlib autoBasement_break_on_floor = 500
zlib autoBasement_break_on_hp = false
zlib autoBasement_break_on_level = 30
zlib autoBasement_break_on_mox = false
zlib autoBasement_break_on_mp = false
zlib autoBasement_break_on_mp_amount = 2000
zlib autoBasement_break_on_mus = false
zlib autoBasement_break_on_mys = false
zlib autoBasement_break_on_reward = false
zlib autoBasement_break_on_stat = false
zlib autoBasement_combat_equipment = navel ring of navel gazing
zlib autoBasement_combat_stat = Muscle
zlib autoBasement_get_familiar_drops = false
zlib autoBasement_max_potion_price = 15000
zlib autoBasement_use_absolute_potions = false
zlib autoBasement_use_dr_lucifer = false
zlib autoBasement_use_dr_lucifer_amount = 1000
zlib autoBasement_use_percentage_potions = true
zlib automcd = true
zlib defaultoutfit = current
zlib is_100_run = none
zlib threshold = 4
zlib unknown_ml = 170
zlib verbosity = 3

I did have mafia set to buy items when necessary as well. Only thing I altered was the maximum potion cost, which I changed to 10000, although I redid the script without changing anything and it still didn't work.
 
Closeting the bough would almost certainly fix your problem.

I don't have one, I can't confirm/troubleshoot any maximizer difficulties.
 
1) Changing zlib variables must be done via zlib after the script has been run once (zlib <variable name> = <value>).

2) Do you have a disembodied hand? If so was the bough equipped on that (and not on you)?

Edit: Closeting the bough and restricting access to the closet would definitely work, but should not be needed. I thought I had fixed that... :)
Make sure you download the latest version from the 2nd post as well...
 
lol

Basement level 253: Monster
Putting on outfit: Damage
You are already wearing "Damage."
Putting Lending a Hand the Disembodied Hand back into terrarium...
Taking Sandy the Baby Sandworm out of terrarium...
Casting Cannelloni Cocoon 1 times...
You gain 1,748 hit points
Cannelloni Cocoon was successfully cast.

[5238] Fernswarthy's Basement (Level 253)
Encounter: The Ghost of Fernswarthy's great great great great great great great great great great Grandfather
You lose 723 hit points
You lose 702 hit points
You lose 696 hit points
You lose 19 hit points
You lose 720 hit points
You lose 745 hit points
You lose 747 hit points
You lose 719 hit points
You lose 746 hit points
You lose 737 hit points
You lose 740 hit points
lost the fight, quitting
Basement sucessfully automated for 0 out of 10 adventures.

so instead of closeting the bough, I just zapped my extra tinsel gloves into my third bough so it wouldn't have that problem of trying to switch into the main hand. I redownloaded the script FROM THE SECOND POST (I am not downloading the outdated script, and haven't been from the start), and placed it into my script folder and tried to run it from KoL Mafia, and now that it gets past the outfitting portion it just gets me beat up :(. I don't know what I'm doing wrong, I thought the script was supposed to automate the basement, but it just keeps not using the items that are there for it (scroll of ancient forbidden unspeakable evil). Am I supposed to do it manually or just tell KoLMafia to adventure 100 times in the basement by itself? Do I have to program something to let it know my settings or what..

Edit: Also after I redownloaded the script I changed all my settings using the method through the gCLI after running it once. I'm so confused x_x
 
You need to set up Mafia for combat yourself. You have to setup a CCS if you want to use those items. You can search this thread for some examples.
 
The script uses your CCS to do the fights, so if that is not set up to handle the basement monsters you are going to lose the fights unfortunately. I generally like to use divine items and hobopolis spells to kill the monsters (since I often did it as a Sauceror) but you need to find a way that works for the class and playstyle you like. For a SC attacking might work fine (apart from that ghost) where you should probably use some kind of spell.

Hmm... So you had 2 boughs then? I think my testing was only done when you had 1 bough. I'll look at that...
 
Thanks lots, I didn't even realize you could set custom combats to deal with different monsters in one script! I had to look about 10 pages in before I got to those..

Hopefully with this I can finish the basement by today and finally start on another run :D

Thanks again!

Edit: Found a bug!
[5304] Fernswarthy's Basement (Level 276)
Maximum MP Test: 4,278 current, 4,714 needed
You lose 7,569 hit points
Basement sucessfully automated for 41 out of 100 adventures.

it thought a gauntlet test was an MP test and I got beaten up from it x_x
 
Last edited:
How are you running the script? You should have seen the following message in the gCLI:
Code:
Basement level 276: MP Test
 
I'm running it through the dropdown under scripts and autoBasement.ash

It said in the gCLI that it's an MP test, but it's actually a gauntlet test, hence the amount of damage following that

edit:
woo.png

i'll figure out how to use scripts properly the next time I go for a telescope part again
it'd probably be easier MP-wise if I went sauceror next time I do :x
I got beaten up about 10 times but the script automated most of it! Thanks again~
 
Last edited:
Tested this script out last night and it worked great! I used it for about 200 levels and it took much less time than I would, futzing about in the relay browser.

I do have a quick question though... The script seems to insist on my using a sombrero after all my item drop familiars are done dropping items. Is there a way to specify a preferred familiar?

Thanks Winterbay, Rinn and all other responsible parties for this fine script.
 
The script tries to gain as many stats as possible unless you specify otherwise (i.e. by saying you want familiar drops). The only circumstance under which it will nto choose either an itemdropping familiar or a sombrero type familiar is when you have the zlib variable is_100_run set to something other than "none".

What familiar would you want it to use instead of the sombrero in this case and why?
 
Hmm... you already import zlib... why not use best_fam("stats") instead of hardcoding the sandworm and sombrero? That way, the pig, bat, pressie, and other familiars would be automatically considered.
 
I have a fully grown pressie, with a foil dish. I thought maybe your script wanted to use the sombrero because I have a hookah.

It's not a great big deal, but I was wondering.
 
Hmm... you already import zlib... why not use best_fam("stats") instead of hardcoding the sandworm and sombrero? That way, the pig, bat, pressie, and other familiars would be automatically considered.

1) Because I had no idea what that function does (or that it existed). My use of zlib is all picked up from batbrain really (and what was in the script already.

2) I guess at lower levels that other familiars could work, but isn't a sombrero type familiar very soon going to be better and I thought there were only two of those. Which on a closer look at the wiki turns out to be completely false. I'll look into that then :)
 
Easiest way to pull that is just to do use_familiar(best_fam("stats")); and it will switch to whatever your best familiar is for stats. If for some reason you don't have any, it'll leave you with your current familiar, so it shouldn't error out. :)

Positive: Checks weight, values, weighs them, and spits out a result. You don't need to add new familiars as they come out.
Negative: If the map manager isn't updating, people will wonder why you aren't adding the new familiars even though it's not you.
 
Negative: Doesn't seem to separate between sombrero and volleyball type mechanics and so will value a level 20 volleyball above a level 19 sombrero even though the ML in the basement is high enough that the difference will be quite marked (both valued at 40).
 
Back
Top