Universal Recovery Script

Bale

Minion
Um, yeah. I hadn't paid enough attention to that recent change since I've had other interests lately. I'll take care of it right now.


Universal recovery v 3.10.9 released!


Changelog:
version 3.10.9 February 28, 2013
  • Resting beats you back down now.
  • Fix longstanding bug with disco resting not being used


Download Universal Recovery v3.10.9 here: View attachment 7453
(Universal_Recovery.ash goes in the /scripts folder)​
 

AlbinoRhino

Active member
Hi Bale,
I wish I had thought to post this earlier. Sorry.

But ... a couple of other newer things you may want to consider for the next version:

Space Tours Tripple (#6027), from A-boo peak, will cure Beaten Up as well. (Although, it's also a combat stun, so maybe one would prefer to use it for that.)

creepy ginger ale (#6037), from twin peak, restores 35-45 MP.
 

Bale

Minion
For now I'm not going to implement the Tripple since it is a combat item. Items like the Tripple and Okee-Dokee soda with other practical uses I don't think should get used up by automation, against your possible best interest.


AlbinoRhino said:
creepy ginger ale (#6037), from twin peak, restores 35-45 MP.

O! Thank you! I'll add it to the data file right now. UR will download that information and start using them after rollover. Thanks to the magic of zarqon's map manager you won't need to update UR to start using your creepy ginger ale.
 

livercat

Member
For now I'm not going to implement the Tripple since it is a combat item. Items like the Tripple and Okee-Dokee soda with other practical uses I don't think should get used up by automation, against your possible best interest.
Do you avoid adding support for CSA all-purpose soap for the similar reasons (as soap also removes negative effects)? I've been using modified version (post #1884) with no apparent issues, but I might be missing some aspects.

Also, minor nitpick in line 666: "vale" should be "value"
PHP:
// It will heal from the mall using the best vale for restoratives.
 

Bale

Minion
Do you avoid adding support for CSA all-purpose soap for the similar reasons (as soap also removes negative effects)?

Correct. If something has a significant other effect, powerful enough that it could be considered a primary effect, I don't want it mindlessly used for recovery. Though perhaps I should consider them for softcore usage? That would mean another field in the datafile though.

Also, minor nitpick in line 666: "vale" should be "value"

Only a cruel person would use my willingness to comment against me.
 

Magus_Prime

Well-known member
My character was beaten up and I wasn't able to autorecover. UR is set to allow use of the campground, which should have removed beaten up. I even had free rests remaining. The hot tub was also available.

The version of UR I was running at the time was 3.10.8.

From Bale in the BBB thread:
I'm a little bit more puzzled that it didn't use the hot tub. That makes no sense to me. Are you sure it is configured to allow use of the hot tub?

I'm positive. After UR didn't cure beaten-up I double checked both the availability of Hot Tub rests, I had used one at the time, and I checked the UR was still set to use them: which it was. I also checked whether KoLMafia was still set to auto-remove malignant status effects and it was.

There may be some strange interaction going on here between BBB, UR, and KolMafia. I've had the unable to recover from beaten-up issue before and it always seems to happen when I'm in a path run where the "normal" healing options aren't available.
 
Last edited:

Winterbay

Active member
I do believe it is recommended that the "remove malignant status effects" is unticked when using UR, but I may remember incorrectly.
 

Magus_Prime

Well-known member
As a test I unset auto-remove malignant status effects and hit what may be the same issue. This time I was in the relay browser and looking for ore in the Itznotyerzitz Mine. A cave-in caused me to be beaten up and I got:

Between battle actions failed. Click the image if you'd like to continue anyway.
in the relay browser.

BBB is my between battle actions script. At the time I had 8 free campground rests available and all five hot tub uses.

Versions: KoLMafia r11943, BBB is 2.6 with the mods I noted in post 441 in the thread, and UR is 3.10.9.

I then set KoLMafia back to auto-remove malignant status effects, got another cave-in, and had the same thing happen.

Any thoughts?
 

fronobulax

Developer
Staff member
I updated UR, ran, got beaten up because there seems to be some issue with the day of the dead monsters, and then kept getting autoadventure failing with "Script aborted". I finally figured out that UR (which is the only thing that even remotely qualifies as a BBS for this character) was the problem. I manually removed Beaten Up and I was able to proceed. I wonder if we need a wiki article on Beaten Up and the automation options to remove it?
 

Bale

Minion
The version of UR I was running at the time was 3.10.8.

That old version would not have used a campground rest to recover from Beaten Up. Version 3.10.9 would have.

It could also be "Bale" ...

Fine! I fixed the vale=value bug in my local copy. I'm not going to make a release for this, but you'll see it fixed whenever I have a better reason to update UR.


I do believe it is recommended that the "remove malignant status effects" is unticked when using UR, but I may remember incorrectly.

I do recommend that. I very strongly recommend that, but I doubt it caused this problem.
 
Last edited:

Terrabull

Member
UR just used up my scented massage oils, all three of them. I looked and the box is not checked in mafia's interface, or the relay interface.

This is all it said in the cli the last time it happened:
Restoring HP! Currently at 23 of 187 HP, 129 of 332 MP, current meat: 19638 ... Target HP = 187.
Using 1 scented massage oil...
You gain 164 hit points
Finished using 1 scented massage oil.
 
Last edited:

MgDark

New member
My UR keeps buying Red Potions from mall but for some reason he cant drink it, i also have setup the option to "use inventory instead of mall regardless of value"
He buys 1 pot, for some reason he cant drink it, and buy another and another. I checked manually and im able to use them.
Restoring HP! Currently at 75 of 105 HP, 252 of 296 MP, current meat: 638919 ... Target HP = 100.
In mallmode, best HP restorative is: red pixel potion @ 0.22727272727272727 meat total.
Trying to use 1 red pixel potion
Searching for "red pixel potion"...
Search complete.
Purchasing red pixel potion (1 @ 1,800)...
You acquire an item: red pixel potion
Purchases complete.
Current HP: 75, MP: 252
In mallmode, best HP restorative is: red pixel potion @ 0.22727272727272727 meat total.
Trying to use 1 red pixel potion
Using cached search results for red pixel potion...
Purchasing red pixel potion (1 @ 1,800)...
You acquire an item: red pixel potion
Purchases complete.
Current HP: 75, MP: 252
In mallmode, best HP restorative is: red pixel potion @ 0.22727272727272727 meat total.
Trying to use 1 red pixel potion
Using cached search results for red pixel potion...
Purchasing red pixel potion (1 @ 1,800)...
You acquire an item: red pixel potion
Purchases complete.
Current HP: 75, MP: 252
My meat: 633519. Sadly I think healing failed...
Did not fully restore HP for some reason.

>>>> SUPER VERBOSE SETTING <<<<

Calling Universal Recovery 3.10.9 for type=HP, amount=99
Restoring HP! Currently at 75 of 105 HP, 252 of 296 MP, current meat: 626319 ... Target HP = 100.
To heal with Doc Galaktik would cost 250.0 meat. Now to beat that price...
testing ancient Magi-Wipes...
Could heal 25HP with 1 ancient Magi-Wipes for 81.81818181818181 meat.
ancient Magi-Wipes is now the best for restoring HP.
testing ancient turtle shell powder...
Could heal 25HP with 1 ancient turtle shell powder for 2612.1794871794873 meat.
testing bottle of Vangoghbitussin...
Could heal 25HP with 1 bottle of Vangoghbitussin for 324.75 meat.
testing Camp Scout pup tent...
Could heal 25HP with 1 Camp Scout pup tent for 14.75 meat.
Camp Scout pup tent is now the best for restoring HP.
testing cast...
Could heal 25HP with 2 cast for 142.85714285714286 meat.
testing cotton candy bale...
Could heal 25HP with 1 cotton candy bale for 965.4471544715446 meat.
testing cotton candy cone...
Could heal 25HP with 1 cotton candy cone for 256.4102564102564 meat.
testing cotton candy pillow...
Could heal 25HP with 1 cotton candy pillow for 98.0392156862745 meat.
testing cotton candy pinch...
Could heal 25HP with 3 cotton candy pinch for 388.88888888888886 meat.
testing cotton candy plug...
Could heal 25HP with 1 cotton candy plug for 438.59649122807014 meat.
testing cotton candy skoshe...
Could heal 25HP with 2 cotton candy skoshe for 566.6666666666667 meat.
testing cotton candy smidgen...
Could heal 25HP with 2 cotton candy smidgen for 1000.0000000000001 meat.
testing dark potion...
Could heal 25HP with 3 dark potion for 2.5 meat.
dark potion is now the best for restoring HP.
testing Doc Galaktik's Ailment Ointment...
Could heal 25HP with 3 Doc Galaktik's Ailment Ointment for 166.66666666666666 meat.
testing Doc Galaktik's Homeopathic Elixir...
Could heal 25HP with 2 Doc Galaktik's Homeopathic Elixir for 315.7894736842105 meat.
testing Doc Galaktik's Pungent Unguent...
Could heal 25HP with 7 Doc Galaktik's Pungent Unguent for 187.5 meat.
testing Doc Galaktik's Restorative Balm...
Could heal 25HP with 2 Doc Galaktik's Restorative Balm for 214.2857142857143 meat.
testing elven medi-pack...
Could heal 25HP with 1 elven medi-pack for 83.33333333333334 meat.
testing filthy poultice...
Could heal 25HP with 1 filthy poultice for 0.25 meat.
filthy poultice is now the best for restoring HP.
testing forest tears...
Could heal 25HP with 4 forest tears for 2666.666666666667 meat.
testing gauze garter...
Could heal 25HP with 1 gauze garter for 42.5 meat.
testing green pixel potion...
Could heal 25HP with 1 green pixel potion for 200.0 meat.
testing honey-dipped locust...
Could heal 25HP with 1 honey-dipped locust for 164.28571428571428 meat.
testing Medicinal Herb's medicinal herbs...
Cannot use Medicinal Herb's medicinal herbs.
testing mummy wrapping...
Could heal 25HP with 1 mummy wrapping for 0.45454545454545453 meat.
testing Notes from the Elfpocalypse, Chapter I...
Could heal 25HP with 1 Notes from the Elfpocalypse, Chapter I for 142.85714285714286 meat.
testing Notes from the Elfpocalypse, Chapter II...
Could heal 25HP with 1 Notes from the Elfpocalypse, Chapter II for 142.85714285714286 meat.
testing Notes from the Elfpocalypse, Chapter III...
Could heal 25HP with 1 Notes from the Elfpocalypse, Chapter III for 142.85714285714286 meat.
testing Notes from the Elfpocalypse, Chapter IV...
Could heal 25HP with 1 Notes from the Elfpocalypse, Chapter IV for 142.85714285714286 meat.
testing Notes from the Elfpocalypse, Chapter V...
Could heal 25HP with 1 Notes from the Elfpocalypse, Chapter V for 142.85714285714286 meat.
testing Notes from the Elfpocalypse, Chapter VI...
Could heal 25HP with 1 Notes from the Elfpocalypse, Chapter VI for 142.85714285714286 meat.
testing palm frond...
Could heal 25HP with 2 palm frond for 1.25 meat.
testing palm-frond fan...
Could heal 25HP with 1 palm-frond fan for 106.25 meat.
testing phonics down...
Could heal 25HP with 1 phonics down for 119.79166666666667 meat.
testing pixellated candy heart...
Could heal 25HP with 6 pixellated candy heart for 3888.8888888888887 meat.
testing plump juicy grub...
testing Pokëmann band-aid...
Could heal 25HP with 1 Pokëmann band-aid for 31.25 meat.
testing really thick bandage...
Could heal 25HP with 1 really thick bandage for 181.8181818181818 meat.
testing red pixel potion...
Could heal 25HP with 1 red pixel potion for 0.22727272727272727 meat.
red pixel potion is now the best for restoring HP.
testing scented massage oil...
Could heal 25HP with 1 scented massage oil for 5600.0 meat.
testing scroll of drastic healing...
Could heal 25HP with 1 scroll of drastic healing for 367.3333333333333 meat.
testing sugar shard...
Could heal 25HP with 2 sugar shard for 166.66666666666669 meat.
testing tiny house...
Could heal 25HP with 2 tiny house for 1.1363636363636365 meat.
In mallmode, best HP restorative is: red pixel potion @ 0.22727272727272727 meat total.
Trying to use 1 red pixel potion
Searching for "red pixel potion"...
Search complete.
Purchasing red pixel potion (1 @ 1,800)...
You acquire an item: red pixel potion
Purchases complete.
Current HP: 75, MP: 252
To heal with Doc Galaktik would cost 250.0 meat. Now to beat that price...
testing ancient Magi-Wipes...
Could heal 25HP with 1 ancient Magi-Wipes for 81.81818181818181 meat.
ancient Magi-Wipes is now the best for restoring HP.
testing ancient turtle shell powder...
Could heal 25HP with 1 ancient turtle shell powder for 2612.1794871794873 meat.
testing bottle of Vangoghbitussin...
Could heal 25HP with 1 bottle of Vangoghbitussin for 324.75 meat.
testing Camp Scout pup tent...
Could heal 25HP with 1 Camp Scout pup tent for 14.75 meat.
Camp Scout pup tent is now the best for restoring HP.
testing cast...
Could heal 25HP with 2 cast for 142.85714285714286 meat.
testing cotton candy bale...
Could heal 25HP with 1 cotton candy bale for 965.4471544715446 meat.
testing cotton candy cone...
Could heal 25HP with 1 cotton candy cone for 256.4102564102564 meat.
testing cotton candy pillow...
Could heal 25HP with 1 cotton candy pillow for 98.0392156862745 meat.
testing cotton candy pinch...
Could heal 25HP with 3 cotton candy pinch for 388.88888888888886 meat.
testing cotton candy plug...
Could heal 25HP with 1 cotton candy plug for 438.59649122807014 meat.
testing cotton candy skoshe...
Could heal 25HP with 2 cotton candy skoshe for 566.6666666666667 meat.
testing cotton candy smidgen...
Could heal 25HP with 2 cotton candy smidgen for 1000.0000000000001 meat.
testing dark potion...
Could heal 25HP with 3 dark potion for 2.5 meat.
dark potion is now the best for restoring HP.
testing Doc Galaktik's Ailment Ointment...
Could heal 25HP with 3 Doc Galaktik's Ailment Ointment for 166.66666666666666 meat.
testing Doc Galaktik's Homeopathic Elixir...
Could heal 25HP with 2 Doc Galaktik's Homeopathic Elixir for 315.7894736842105 meat.
testing Doc Galaktik's Pungent Unguent...
Could heal 25HP with 7 Doc Galaktik's Pungent Unguent for 187.5 meat.
testing Doc Galaktik's Restorative Balm...
Could heal 25HP with 2 Doc Galaktik's Restorative Balm for 214.2857142857143 meat.
testing elven medi-pack...
Could heal 25HP with 1 elven medi-pack for 83.33333333333334 meat.
testing filthy poultice...
Could heal 25HP with 1 filthy poultice for 0.25 meat.
filthy poultice is now the best for restoring HP.
testing forest tears...
Could heal 25HP with 4 forest tears for 2666.666666666667 meat.
testing gauze garter...
Could heal 25HP with 1 gauze garter for 42.5 meat.
testing green pixel potion...
Could heal 25HP with 1 green pixel potion for 200.0 meat.
testing honey-dipped locust...
Could heal 25HP with 1 honey-dipped locust for 164.28571428571428 meat.
testing Medicinal Herb's medicinal herbs...
Cannot use Medicinal Herb's medicinal herbs.
testing mummy wrapping...
Could heal 25HP with 1 mummy wrapping for 0.45454545454545453 meat.
testing Notes from the Elfpocalypse, Chapter I...
Could heal 25HP with 1 Notes from the Elfpocalypse, Chapter I for 142.85714285714286 meat.
testing Notes from the Elfpocalypse, Chapter II...
Could heal 25HP with 1 Notes from the Elfpocalypse, Chapter II for 142.85714285714286 meat.
testing Notes from the Elfpocalypse, Chapter III...
Could heal 25HP with 1 Notes from the Elfpocalypse, Chapter III for 142.85714285714286 meat.
testing Notes from the Elfpocalypse, Chapter IV...
Could heal 25HP with 1 Notes from the Elfpocalypse, Chapter IV for 142.85714285714286 meat.
testing Notes from the Elfpocalypse, Chapter V...
Could heal 25HP with 1 Notes from the Elfpocalypse, Chapter V for 142.85714285714286 meat.
testing Notes from the Elfpocalypse, Chapter VI...
Could heal 25HP with 1 Notes from the Elfpocalypse, Chapter VI for 142.85714285714286 meat.
testing palm frond...
Could heal 25HP with 2 palm frond for 1.25 meat.
testing palm-frond fan...
Could heal 25HP with 1 palm-frond fan for 106.25 meat.
testing phonics down...
Could heal 25HP with 1 phonics down for 119.79166666666667 meat.
testing pixellated candy heart...
Could heal 25HP with 6 pixellated candy heart for 3888.8888888888887 meat.
testing plump juicy grub...
testing Pokëmann band-aid...
Could heal 25HP with 1 Pokëmann band-aid for 31.25 meat.
testing really thick bandage...
Could heal 25HP with 1 really thick bandage for 181.8181818181818 meat.
testing red pixel potion...
Could heal 25HP with 1 red pixel potion for 0.22727272727272727 meat.
red pixel potion is now the best for restoring HP.
testing scented massage oil...
Could heal 25HP with 1 scented massage oil for 5600.0 meat.
testing scroll of drastic healing...
Could heal 25HP with 1 scroll of drastic healing for 367.3333333333333 meat.
testing sugar shard...
Could heal 25HP with 2 sugar shard for 166.66666666666669 meat.
testing tiny house...
Could heal 25HP with 2 tiny house for 1.1363636363636365 meat.
In mallmode, best HP restorative is: red pixel potion @ 0.22727272727272727 meat total.
Trying to use 1 red pixel potion
Using cached search results for red pixel potion...
Purchasing red pixel potion (1 @ 1,800)...
You acquire an item: red pixel potion
Purchases complete.
Current HP: 75, MP: 252
To heal with Doc Galaktik would cost 250.0 meat. Now to beat that price...
testing ancient Magi-Wipes...
Could heal 25HP with 1 ancient Magi-Wipes for 81.81818181818181 meat.
ancient Magi-Wipes is now the best for restoring HP.
testing ancient turtle shell powder...
Could heal 25HP with 1 ancient turtle shell powder for 2612.1794871794873 meat.
testing bottle of Vangoghbitussin...
Could heal 25HP with 1 bottle of Vangoghbitussin for 324.75 meat.
testing Camp Scout pup tent...
Could heal 25HP with 1 Camp Scout pup tent for 14.75 meat.
Camp Scout pup tent is now the best for restoring HP.
testing cast...
Could heal 25HP with 2 cast for 142.85714285714286 meat.
testing cotton candy bale...
Could heal 25HP with 1 cotton candy bale for 965.4471544715446 meat.
testing cotton candy cone...
Could heal 25HP with 1 cotton candy cone for 256.4102564102564 meat.
testing cotton candy pillow...
Could heal 25HP with 1 cotton candy pillow for 98.0392156862745 meat.
testing cotton candy pinch...
Could heal 25HP with 3 cotton candy pinch for 388.88888888888886 meat.
testing cotton candy plug...
Could heal 25HP with 1 cotton candy plug for 438.59649122807014 meat.
testing cotton candy skoshe...
Could heal 25HP with 2 cotton candy skoshe for 566.6666666666667 meat.
testing cotton candy smidgen...
Could heal 25HP with 2 cotton candy smidgen for 1000.0000000000001 meat.
testing dark potion...
Could heal 25HP with 3 dark potion for 2.5 meat.
dark potion is now the best for restoring HP.
testing Doc Galaktik's Ailment Ointment...
Could heal 25HP with 3 Doc Galaktik's Ailment Ointment for 166.66666666666666 meat.
testing Doc Galaktik's Homeopathic Elixir...
Could heal 25HP with 2 Doc Galaktik's Homeopathic Elixir for 315.7894736842105 meat.
testing Doc Galaktik's Pungent Unguent...
Could heal 25HP with 7 Doc Galaktik's Pungent Unguent for 187.5 meat.
testing Doc Galaktik's Restorative Balm...
Could heal 25HP with 2 Doc Galaktik's Restorative Balm for 214.2857142857143 meat.
testing elven medi-pack...
Could heal 25HP with 1 elven medi-pack for 83.33333333333334 meat.
testing filthy poultice...
Could heal 25HP with 1 filthy poultice for 0.25 meat.
filthy poultice is now the best for restoring HP.
testing forest tears...
Could heal 25HP with 4 forest tears for 2666.666666666667 meat.
testing gauze garter...
Could heal 25HP with 1 gauze garter for 42.5 meat.
testing green pixel potion...
Could heal 25HP with 1 green pixel potion for 200.0 meat.
testing honey-dipped locust...
Could heal 25HP with 1 honey-dipped locust for 164.28571428571428 meat.
testing Medicinal Herb's medicinal herbs...
Cannot use Medicinal Herb's medicinal herbs.
testing mummy wrapping...
Could heal 25HP with 1 mummy wrapping for 0.45454545454545453 meat.
testing Notes from the Elfpocalypse, Chapter I...
Could heal 25HP with 1 Notes from the Elfpocalypse, Chapter I for 142.85714285714286 meat.
testing Notes from the Elfpocalypse, Chapter II...
Could heal 25HP with 1 Notes from the Elfpocalypse, Chapter II for 142.85714285714286 meat.
testing Notes from the Elfpocalypse, Chapter III...
Could heal 25HP with 1 Notes from the Elfpocalypse, Chapter III for 142.85714285714286 meat.
testing Notes from the Elfpocalypse, Chapter IV...
Could heal 25HP with 1 Notes from the Elfpocalypse, Chapter IV for 142.85714285714286 meat.
testing Notes from the Elfpocalypse, Chapter V...
Could heal 25HP with 1 Notes from the Elfpocalypse, Chapter V for 142.85714285714286 meat.
testing Notes from the Elfpocalypse, Chapter VI...
Could heal 25HP with 1 Notes from the Elfpocalypse, Chapter VI for 142.85714285714286 meat.
testing palm frond...
Could heal 25HP with 2 palm frond for 1.25 meat.
testing palm-frond fan...
Could heal 25HP with 1 palm-frond fan for 106.25 meat.
testing phonics down...
Could heal 25HP with 1 phonics down for 119.79166666666667 meat.
testing pixellated candy heart...
Could heal 25HP with 6 pixellated candy heart for 3888.8888888888887 meat.
testing plump juicy grub...
testing Pokëmann band-aid...
Could heal 25HP with 1 Pokëmann band-aid for 31.25 meat.
testing really thick bandage...
Could heal 25HP with 1 really thick bandage for 181.8181818181818 meat.
testing red pixel potion...
Could heal 25HP with 1 red pixel potion for 0.22727272727272727 meat.
red pixel potion is now the best for restoring HP.
testing scented massage oil...
Could heal 25HP with 1 scented massage oil for 5600.0 meat.
testing scroll of drastic healing...
Could heal 25HP with 1 scroll of drastic healing for 367.3333333333333 meat.
testing sugar shard...
Could heal 25HP with 2 sugar shard for 166.66666666666669 meat.
testing tiny house...
Could heal 25HP with 2 tiny house for 1.1363636363636365 meat.
In mallmode, best HP restorative is: red pixel potion @ 0.22727272727272727 meat total.
Trying to use 1 red pixel potion
Using cached search results for red pixel potion...
Purchasing red pixel potion (1 @ 1,800)...
You acquire an item: red pixel potion
Purchases complete.
Current HP: 75, MP: 252
My meat: 620919. Sadly I think healing failed...
Did not fully restore HP for some reason.
 
Last edited:

Theraze

Active member
Well, you never actually want to use that "use inventory instead" unless you're okay with it considering anything you have at least 1 of to be free. As in, acquiring another 300 red pixel potions? No cost.

That's a setting you should only ever use if you disable using the mall and NPCs.
 

Winterbay

Active member
I added it to the data file just now (hopefully in the correct format), I used a slightly larger window than the one on the wiki since it was not finihsed spading so I set it to 300-400 with a 350 average for both.
 
Top