autoBasement.ash - Better basement automation

Not entirely true in this case since autoBasement turns off your normal restoration settings and does a "restore_hp(my_maxhp())" which I guess would trigger this problem.
 
Only in conjunction with allowing changing gear. So autoBasement probably needs to turn that off as well and they just need to deal with not getting the 5% discount temporarily.
 
r13:
> call scripts\autoBasement.ash

Cannot apply operator || to ( ( it[] == "FDKOL Tent" ) || ( it[] == "A. W. O. L. Quartermaster" ) ) (boolean) and it[] (coinmaster) (autoBasement.ash, line 243)

Fix - replace line 243 with
if(it.seller == $coinmaster[FDKOL Tent] || it.seller == $coinmaster[A. W. O. L. Quartermaster] || it.seller == $coinmaster[Fudge Wand])
(last comparison was missing one '=')
 
I've encountered gauntlet overbuffing issue in r13 (it buffed to 13k HP on 2,5k HP test), looks like you didn't squash it completely.
 
r15 should hopefully fix that for real. It's no use comparing the real value of the damage absorption when we are speculating, need to use numeric_modifier("_spec") for that...
 
I think we can call the script relatively safe to use now. I've updated the second post to point towards the SVN instead of the forum.
 
The script is failing to buff my hp to being able to survive the beast with N eyes. This might have something to do with it's acquiring the Juiced Newton effect. I'm level 31 Pastamancer, so autoBasement_combat_stat is set to mys. Earlier in the basement I tried setting it to mus, but it was pointlessly overbuffing mus because it still needed to cast Weapon of the Pastalord. I'm using the svn version.
Verbosity 9 log:
Code:
[COLOR=olive]> call scripts\autoAdventure\autoBasement.ash[/COLOR]

[COLOR=green]Caching      outfits...[/COLOR]
Putting on outfit: Mysticality
[COLOR=red]KoLmafia      declares world peace.[/COLOR]

[COLOR=olive]> zlib verbosity =      9[/COLOR]

Previous value of verbosity: 3
Changed to 9.

[COLOR=olive]>      call scripts\autoAdventure\autoBasement.ash[/COLOR]

[COLOR=green]Caching      outfits...[/COLOR]
Retrieving equipment...

Hat: The      Necbromancer's Hat
Weapon: scratch 'n' sniff sword
Off-hand: Glass      Balls of the Goblin King
Shirt: letterman's jacket
Pants: sugar      shorts
Container: Misty Robe

Acc. 1: cursed scrunchie
Acc. 2:      astral bracer
Acc. 3: amber aviator shades

Pet: Hovering      Sombrero (28 lbs)
Item: tiny maracas

Sticker 1: scratch 'n'      sniff wrestler sticker (-1)
Sticker 2: scratch 'n' sniff wrestler      sticker (-1)
Sticker 3: scratch 'n' sniff wrestler sticker (-1)
Maximizing...
210      combinations checked, best score 3,906.00
Putting on lucky bottlecap...
Equipment      changed.
Saving outfit: Mysticality
Outfit saved
Putting on      outfit: Muscle
Equipment changed.
Retrieving equipment...

Hat:      hardened slime hat
Weapon: scratch 'n' sniff sword
Off-hand:      battered hubcap
Shirt: letterman's jacket
Pants: sugar shorts
Container:      barskin cloak

Acc. 1: cursed scrunchie
Acc. 2: Slow Talkin'      Elliot's dogtags
Acc. 3: Mr. Accessory

Pet: Hovering Sombrero      (28 lbs)
Item: tiny maracas

Sticker 1: scratch 'n' sniff      wrestler sticker (-1)
Sticker 2: scratch 'n' sniff wrestler sticker (-1)
Sticker      3: scratch 'n' sniff wrestler sticker (-1)
Maximizing...
180      combinations checked, best score 1,058.00
Putting on lucky bottlecap...
Equipment      changed.
Saving outfit: Muscle
Outfit saved
Putting on outfit:      Moxie
Equipment changed.
Retrieving equipment...

Hat:      fireman's helmet
Weapon: scratch 'n' sniff sword
Off-hand: wicker      shield
Shirt: letterman's jacket
Pants: sugar shorts
Container:      Misty Cape

Acc. 1: cursed scrunchie
Acc. 2: Pokëmann figurine:      Moog
Acc. 3: frayed rope belt

Pet: Hovering Sombrero (28 lbs)
Item:      tiny maracas

Sticker 1: scratch 'n' sniff wrestler sticker (-1)
Sticker      2: scratch 'n' sniff wrestler sticker (-1)
Sticker 3: scratch 'n' sniff      wrestler sticker (-1)
Maximizing...
107 combinations checked, best      score 971.00
Saving outfit: Moxie
Outfit saved
Putting on outfit:      Gauntlet
Equipment changed.
Retrieving equipment...

Hat:      hardened slime hat
Weapon: scratch 'n' sniff sword
Off-hand:      battered hubcap
Shirt: letterman's jacket
Pants: sugar shorts
Container:      barskin cloak

Acc. 1: hopping socks (2)
Acc. 2: slime-covered      necklace (2)
Acc. 3: slime-covered necklace (2)

Pet: Hovering      Sombrero (28 lbs)
Item: tiny maracas

Sticker 1: scratch 'n'      sniff wrestler sticker (-1)
Sticker 2: scratch 'n' sniff wrestler      sticker (-1)
Sticker 3: scratch 'n' sniff wrestler sticker (-1)
Maximizing...
1426      combinations checked, best score 1,863.00
Saving outfit: Gauntlet
Outfit      saved
Putting on outfit: MPDrain
Equipment changed.
Retrieving      equipment...

Hat: The Necbromancer's Hat
Weapon: scratch 'n'      sniff sword
Off-hand: eelskin shield
Shirt: letterman's jacket
Pants:      sugar shorts
Container: Misty Robe

Acc. 1: hopping socks (2)
Acc.      2: cursed scrunchie
Acc. 3: astral bracer

Pet: Hovering Sombrero      (28 lbs)
Item: tiny maracas

Sticker 1: scratch 'n' sniff      wrestler sticker (-1)
Sticker 2: scratch 'n' sniff wrestler sticker (-1)
Sticker      3: scratch 'n' sniff wrestler sticker (-1)
Maximizing...
112      combinations checked, best score 6,024.00
Saving outfit: MPDrain
Outfit      saved
Putting on outfit: MP Regen
Equipment changed.
Retrieving      equipment...

Hat: Colander of Em-er'il
Weapon: Staff of the      Soupbone
Off-hand: Whatsian Ionic Pliers
Shirt: snailmail hauberk
Pants:      spangly mariachi pants
Container: Misty Robe

Acc. 1: fudgecycle
Acc.      2: Bandolier of the Spaghetti Elemental (3)
Acc. 3: energy drink IV (9)

Pet:      Hovering Sombrero (28 lbs)
Item: tiny maracas

Sticker 1: scratch      'n' sniff wrestler sticker (-1)
Sticker 2: scratch 'n' sniff wrestler      sticker (-1)
Sticker 3: scratch 'n' sniff wrestler sticker (-1)
Maximizing...
80      combinations checked, best score 66.00
Saving outfit: MP Regen
Outfit      saved
Putting on outfit: Damage
Equipment changed.
Retrieving      equipment...

Hat: The Necbromancer's Hat
Weapon: scratch 'n'      sniff sword
Off-hand: Glass Balls of the Goblin King
Shirt:      letterman's jacket
Pants: sugar shorts
Container: Misty Robe

Acc.      1: cursed scrunchie
Acc. 2: astral bracer
Acc. 3: amber aviator      shades

Pet: Hovering Sombrero (28 lbs)
Item: tiny maracas

Sticker      1: scratch 'n' sniff wrestler sticker (-1)
Sticker 2: scratch 'n' sniff      wrestler sticker (-1)
Sticker 3: scratch 'n' sniff wrestler sticker (-1)
Maximizing...
210      combinations checked, best score 3,906.00
Putting on lucky bottlecap...
Equipment      changed.
Saving outfit: Damage
Outfit saved
Putting on outfit:      Elemental Resistance
Equipment changed.
Retrieving equipment...

Hat:      hardened slime hat
Weapon: titanium assault umbrella
Off-hand:      six-rainbow shield
Shirt: shark jumper
Pants: The Necbromancer's      Shorts
Container: palm-frond cloak

Acc. 1: The Lost Glasses
Acc.      2: spark plug earring
Acc. 3: round green sunglasses (3)

Pet:      Hovering Sombrero (28 lbs)
Item: tiny maracas

Sticker 1: scratch      'n' sniff wrestler sticker (-1)
Sticker 2: scratch 'n' sniff wrestler      sticker (-1)
Sticker 3: scratch 'n' sniff wrestler sticker (-1)
Maximizing...
68      combinations checked, best score 88.00
Saving outfit: Elemental      Resistance
Outfit saved
[COLOR=green]Outfits caching complete![/COLOR]
Refreshing      closet...
Examining consumables in closet...
Examining equipment in      closet...
Examining miscellaneous items in closet...
Updating      inventory...
[COLOR=blue]Basement level 253: Monster[/COLOR]
Putting      on outfit: Damage
Equipment changed.
Putting Quinten the Hovering      Sombrero back into terrarium...
Taking Quinten the Hovering Sombrero      out of terrarium...
[COLOR=#66CC00]Restoring HP! Currently at 37      of 1063 HP, 963 of 5859 MP, current meat: 9568149 ... Target HP = 1063.[/COLOR]
Casting      Cannelloni Cocoon 1 times...
You gain 1,026 hit points
Cannelloni      Cocoon was successfully cast.

[7843] Fernswarthy's Basement (Level      253)
Encounter: The Beast with 4,630 Eyes
Round 0: frodobatman loses      initiative!
Round 1: beast with x eyes takes 4 damage.
Round 1:      beast with x eyes takes 3 damage.
Round 1: beast with x eyes takes 10      damage.
Round 1: beast with x eyes takes 5 damage.
You lose 1,441      hit points
[COLOR=red]lost the fight, quitting[/COLOR]
[COLOR=red]Basement      sucessfully automated for 0 out of 1 adventures. If the script failed due      to being unable to buff you high enough you can either try to level up      some or raise "autoBasement_max_potion_price" to a higher value.[/COLOR]
 
Right. Basically, my point is that init isn't actually useful in that scenario unless you intend to run away from it or something.
 
Right, so init is not always useful but HP is. I'll see what I can do about that. Need to estimate the potential damage taken and make sure we have enough hp to cover that first hit.
 
Right, new version committed with the following changes:
Attempt to make sure we have at least 10% more HP than we would be hit for by the next monster if we get hit
Add new zlib variable autoBasement_combat_maximizer_string which will augment the choosen combat-stat if wanted
Add zlib as a dependency
 
1) Please, is there a way to get it to not use a scratch 'n' sniff sword for Mysticality? I've done the nemesis quest and I have the Windsor Pan of the Source; if that isn't equipped, I lose the Saucemageddon skill. I also invariably get a "You don't have the item you're trying to equip" error when it tries to equip it.

2) Can I make it use a familiar for non-elemental tests besides the Hovering Sombrero?

3) It quits saying it can't buff my stat high enough, even though the potions recommended by the maximizer are all in my inventory, and my potion price limit is set to 20K meat, which is higher than the price of any of the listed potions in the mall.
 
0) I seem to have committed the wrong thing, new commit made with the changes as laid down.

1) You can add your Windsor Pan of the Sauce to your combat items list which should make it equip it for all combats. YOu could also add "spell damage" to the new setting presented above to make the Pan more interesting (but may choose something else so if you really want it add it to the combat item list). ALso: Could you copy some output around where it fails to equip your weapon?

2) It will ignore your familiar for all tests other than the elemental test and fights unless you have a disembodied hand. SO if you get the sombrero for a fight it will keep thatuntil the next elemental test. What would you want instead? You can get it to circulate through your item dropping familiars during fights which will lead to a higher variance at least :)

3) Could you give me some output around that? Preferably with a verbosity of 7 or more so I can see what is happening?
 
3) Could you give me some output around that? Preferably with a verbosity of 7 or more so I can see what is happening?

I also saw this - where it seemed to be using something else besides my potion price limit to decide not to buy potions - but my that character finished the telescope weeks ago and the next character who could try just started a HCO run so it will be a few days.
 
Latest revision. If autoBasement_combat_maximizer_string is empty, then maximizer receives a malformed string, like this:
Mysticality, , -familiar
I've fixed it in local copy by replacing line 402 with this:
string combat_maximizer_string = "";
if (length(autoBasement_combat_maximizer_string) > 0)
{
combat_maximizer_string = ", " + autoBasement_combat_maximizer_string;
}
command = combat_stat.to_string() + combat_maximizer_string;
 
Issue during elemental test, cold+sleaze. Script acquired Coldform and then decided that it still needs cold resistance:
Basement level 131: Cold & Sleaze Elemental Resistance Test
Putting on outfit: Elemental Resistance
Equipment changed.
Maximizing...
8952 combinations checked, best score 37.59
Searching for "bottle of antifreeze"...
Search complete.
Wielding lawn dart...
Equipment changed.
Holding lawn dart...
Equipment changed.
Putting on Unspeakable Earring...
Equipment changed.
Putting on slime-covered necklace...
Equipment changed.
Putting Hank 'Draco' Cryptwind the Artistic Goth Kid back into terrarium...
Taking Sleazy-weazy the Exotic Parrot out of terrarium...
ittah bittah hookah is better than (none). Switching items...
Stealing ittah bittah hookah from Trodden the Pair of Stomping Boots...
Putting on ittah bittah hookah...
Equipment changed.
Searching for "phial of coldness"...
Search complete.
Searching for "cold powder"...
Search complete.
Verifying ingredients for phial of coldness (1)...
Creating phial of coldness (1)...
You acquire phial of coldness (3)
Successfully created phial of coldness (3)
Using 1 phial of coldness...
You acquire an effect: Coldform (duration: 15 Adventures)
Finished using 1 phial of coldness.
Searching for "bottle of antifreeze"...
Search complete.
Purchasing bottle of antifreeze (1 @ 8,000)...
You acquire an item: bottle of antifreeze
Purchases complete.
Using 1 bottle of antifreeze...
You acquire an effect: Fever From the Flavor (duration: 10 Adventures)
Finished using 1 bottle of antifreeze.
 
I modified my copy to refuse to use goofballs. I'm not sure how others feel about that. It's not the withdrawal that bothers me, it's the fact I have a limited supply of them.
 
Back
Top