Universal Recovery Script

Uhh... have you tried it? (relay_Universal_Recovery.php should be the bit to use; can't remember if the script requires the "php" or not)
 
I use Mr. Script and when I first installed Bale's GUI of UR, I was about to file a bug report because it blocked my quick skill links in the relay browser, but if you'll notice, the bottom bar of the top menu is resizable, just click and drag it down to reveal what you need to reveal. At least this works for me in Firefox.
 
In mallmode, best MP restorative is: magical mystery juice @ 857.1428 meat total.
Mall price to restore 20MP is 0 meat.
Cast a healing skill.
Division by zero (Universal_recovery.ash, line 303)

This occurs while running slime.ash. HP is set to recover to 100% at 95% or below, and MP (which seems to be the problem) is set to recover to 50% at 20% or less. This is occurring after it casts cocoon (I think, that's what it's done in the past...) to restore HP. My MP was at 871/2283 afterwards, and therefore I don't see why it's trying to recover MP. I scrolled up and only saw the script's deliberations on what the best restoratives were, but if there's something else from logs I could post that would be helpful let me know. I'm using the latest version of this script, along with r8412 and an up to date version of Zlib. I'm a level 41 AT and I do have access to Gouda's.
 
Last edited:
It's apparently trying to use cocoon while your hp is at max already; don't know why it would need to, but you could just hack in a fix by adding a check for my_max_hp() == my_hp() on the previous line... but I'll let Bale look at doing that in an official way before giving specifics, in case there's a better fix.
 
Thanks Doodle

I guess I may as well post the whole thing uncut in case there's any chance it's helpful.

Edit: just to be 100% clear, the script is recovering my HP just fine, it's just not recognizing that it is. The second batch of CLI output is from when I manually adventure in the slime tube. The only difference that I notice is that in the second it notes that cocoon was cast at the end, and doesn't come up with an error

Edit2: Curiosity compelled me, and after a couple more tries, it appears this problem is intermittent. Namely, when I type in slime.ash 10, sometimes it will spend 1-3 adventures, healing between each successfully, before hitting the error an aborting.

Code:
[19176] The Slime Tube
Encounter: towering Slime leviathan
Round 0: laser bullet loses initiative!
Round 1: Trofflesby irritates the crap out of you and your opponent with his incessant high-pitched yapping.
You lose 4,029 hit points
Round 1: laser bullet attacks!
Round 2: slime5 takes 4141 damage.
You acquire an item: big slimy cyst
You gain 103 Beefiness
You gain 82 Enchantedness
You gain 183 Cheek
Calling Universal Recovery for type=HP, amount=0
Restoring HP! Currently at 438 of 4471 HP, 935 of 2283 MP, current meat: 13358790 ... Target HP = 4471.
To heal with Doc Galaktik would cost 40330.0 meat. Now to beat that price...
testing Doc Galaktik's Ailment Ointment...
Could heal 4033HP with 449 Doc Galaktik's Ailment Ointment for 26886.666 meat.
Doc Galaktik's Ailment Ointment is now the best for restoring HP.
testing Doc Galaktik's Homeopathic Elixir...
Could heal 4033HP with 213 Doc Galaktik's Homeopathic Elixir for 50943.156 meat.
testing Doc Galaktik's Pungent Unguent...
Could heal 4033HP with 1009 Doc Galaktik's Pungent Unguent for 30247.5 meat.
testing Doc Galaktik's Restorative Balm...
Could heal 4033HP with 289 Doc Galaktik's Restorative Balm for 34568.574 meat.
testing Medicinal Herb's medicinal herbs...
testing ancient Magi-Wipes...
Could heal 4033HP with 74 ancient Magi-Wipes for 16132.0 meat.
ancient Magi-Wipes is now the best for restoring HP.
testing ancient turtle shell powder...
Could heal 4033HP with 52 ancient turtle shell powder for 310230.78 meat.
testing bottle of Vangoghbitussin...
Could heal 4033HP with 41 bottle of Vangoghbitussin for 26819.451 meat.
testing bubbly potion...
Could heal 4033HP with 404 bubbly potion for 145188.0 meat.
testing cast...
Could heal 4033HP with 231 cast for 23045.713 meat.
testing cotton candy bale...
Could heal 4033HP with 66 cotton candy bale for 183616.25 meat.
testing cotton candy cone...
Could heal 4033HP with 104 cotton candy cone for 29678.744 meat.
testing cotton candy pillow...
Could heal 4033HP with 80 cotton candy pillow for 46656.273 meat.
testing cotton candy pinch...
Could heal 4033HP with 449 cotton candy pinch for 4436300.0 meat.
testing cotton candy plug...
Could heal 4033HP with 142 cotton candy plug for 608487.75 meat.
testing cotton candy skoshe...
Could heal 4033HP with 180 cotton candy skoshe for 215093.33 meat.
testing cotton candy smidgen...
Could heal 4033HP with 238 cotton candy smidgen for 1897882.4 meat.
testing filthy poultice...
Could heal 4033HP with 41 filthy poultice for 10082.5 meat.
filthy poultice is now the best for restoring HP.
testing forest tears...
Could heal 4033HP with 538 forest tears for 900703.3 meat.
testing gauze garter...
Could heal 4033HP with 41 gauze garter for 9921.181 meat.
gauze garter is now the best for restoring HP.
testing green pixel potion...
Could heal 4033HP with 81 green pixel potion for 15728.701 meat.
testing honey-dipped locust...
Could heal 4033HP with 116 honey-dipped locust for 26502.57 meat.
testing mummy wrapping...
Could heal 4033HP with 74 mummy wrapping for 14518.8 meat.
testing palm frond...
Could heal 4033HP with 202 palm frond for 20165.0 meat.
testing palm-frond fan...
Could heal 4033HP with 101 palm-frond fan for 28231.0 meat.
testing phonics down...
Could heal 4033HP with 85 phonics down for 21425.312 meat.
testing pixellated candy heart...
Could heal 4033HP with 897 pixellated candy heart for 851411.1 meat.
testing plump juicy grub...
testing really thick bandage...
Could heal 4033HP with 37 really thick bandage for 8982.591 meat.
really thick bandage is now the best for restoring HP.
testing red pixel potion...
Could heal 4033HP with 37 red pixel potion for 32813.953 meat.
testing scented massage oil...
Could heal 4033HP with 1 scented massage oil for 5900.0 meat.
scented massage oil is now the best for restoring HP.
testing scroll of drastic healing...
Could heal 4033HP with 1 scroll of drastic healing for 493.33334 meat.
scroll of drastic healing is now the best for restoring HP.
testing sugar shard...
Could heal 4033HP with 269 sugar shard for 26886.666 meat.
testing tiny house...
Could heal 4033HP with 184 tiny house for 39230.09 meat.
In mallmode, best HP restorative is: scroll of drastic healing @ 493.33334 meat total.
To heal with Doc Galaktik would cost 9690.0 meat. Now to beat that price...
testing Blatantly Canadian...
Could heal 570MP with 26 Blatantly Canadian for 5066.667 meat.
Blatantly Canadian is now the best for restoring MP.
testing Cherry Cloaca Cola...
Could heal 570MP with 72 Cherry Cloaca Cola for 5700.0 meat.
testing Cloaca-Cola...
Could heal 570MP with 48 Cloaca-Cola for 4940.0 meat.
Cloaca-Cola is now the best for restoring MP.
testing Diet Cloaca Cola...
Could heal 570MP with 72 Diet Cloaca Cola for 7125.0 meat.
testing Dyspepsi-Cola...
Could heal 570MP with 48 Dyspepsi-Cola for 4940.0 meat.
testing Knob Goblin seltzer...
Could heal 570MP with 57 Knob Goblin seltzer for 4560.0 meat.
Knob Goblin seltzer is now the best for restoring MP.
testing Knob Goblin superseltzer...
Could heal 570MP with 22 Knob Goblin superseltzer for 2744.4443 meat.
Knob Goblin superseltzer is now the best for restoring MP.
testing Monstar energy beverage...
Could heal 570MP with 8 Monstar energy beverage for 2622.0 meat.
Monstar energy beverage is now the best for restoring MP.
testing Mountain Stream soda...
Could heal 570MP with 76 Mountain Stream soda for 8816.0 meat.
testing Nardz energy beverage...
Could heal 570MP with 9 Nardz energy beverage for 2630.7693 meat.
testing New Cloaca-Cola...
Could heal 570MP with 4 New Cloaca-Cola for 24700.0 meat.
testing Regular Cloaca Cola...
Could heal 570MP with 72 Regular Cloaca Cola for 5700.0 meat.
testing Wint-O-Fresh mint...
Could heal 570MP with 143 Wint-O-Fresh mint for 14250.0 meat.
testing Wolfman Nardz...
Could heal 570MP with 3 Wolfman Nardz for 6612.0 meat.
testing ancient Magi-Wipes...
Could heal 570MP with 11 ancient Magi-Wipes for 2280.0 meat.
ancient Magi-Wipes is now the best for restoring MP.
testing banana spritzer...
Could heal 570MP with 9 banana spritzer for 43971.43 meat.
testing black cherry soda...
Could heal 570MP with 57 black cherry soda for 4560.0 meat.
testing blue pixel potion...
Could heal 570MP with 9 blue pixel potion for 2586.923 meat.
testing bottle of Monsieur Bubble...
Could heal 570MP with 11 bottle of Monsieur Bubble for 3005.4543 meat.
testing bottle of Vangoghbitussin...
Could heal 570MP with 6 bottle of Vangoghbitussin for 3790.4998 meat.
testing bubbly potion...
Could heal 570MP with 57 bubbly potion for 20520.0 meat.
testing carbonated soy milk...
Could heal 570MP with 8 carbonated soy milk for 3040.0 meat.
testing carbonated water lily...
Could heal 570MP with 9 carbonated water lily for 2367.6924 meat.
testing cotton candy bale...
Could heal 570MP with 10 cotton candy bale for 25951.219 meat.
testing cotton candy cone...
Could heal 570MP with 15 cotton candy cone for 4194.6157 meat.
testing cotton candy pillow...
Could heal 570MP with 12 cotton candy pillow for 6594.1177 meat.
testing cotton candy pinch...
Could heal 570MP with 48 cotton candy pinch for 470250.0 meat.
testing cotton candy plug...
Could heal 570MP with 20 cotton candy plug for 86000.0 meat.
testing cotton candy skoshe...
Could heal 570MP with 26 cotton candy skoshe for 30400.0 meat.
testing cotton candy smidgen...
Could heal 570MP with 34 cotton candy smidgen for 268235.28 meat.
testing delicious shimmering moth...
testing green pixel potion...
Could heal 570MP with 17 green pixel potion for 3175.7144 meat.
testing high-pressure seltzer bottle...
Could heal 570MP with 4 high-pressure seltzer bottle for 5051.8286 meat.
testing honey-dipped locust...
Could heal 570MP with 17 honey-dipped locust for 3800.0002 meat.
testing magical mystery juice...
Could heal 570MP with 9 magical mystery juice for 857.1428 meat.
magical mystery juice is now the best for restoring MP.
testing natural fennel soda...
Could heal 570MP with 6 natural fennel soda for 2850.0 meat.
testing palm frond...
Could heal 570MP with 29 palm frond for 2850.0 meat.
testing palm-frond fan...
Could heal 570MP with 15 palm-frond fan for 3990.0 meat.
testing phonics down...
Could heal 570MP with 12 phonics down for 3028.125 meat.
testing six-pack of New Cloaca-Cola...
Could heal 570MP with 1 six-pack of New Cloaca-Cola for 38000.0 meat.
testing soda water...
Could heal 570MP with 143 soda water for 9975.0 meat.
testing sugar shard...
Could heal 570MP with 76 sugar shard for 7600.0 meat.
testing tiny house...
Could heal 570MP with 26 tiny house for 5544.5454 meat.
testing tonic water...
Could heal 570MP with 15 tonic water for 31350.0 meat.
testing unrefined Mountain Stream syrup...
Could heal 570MP with 11 unrefined Mountain Stream syrup for 4145.4546 meat.
In mallmode, best MP restorative is: magical mystery juice @ 857.1428 meat total.
Mall price to restore 20MP is 0 meat.
Cast a healing skill.
_meatperhp => 0.0074572745
Casting Cannelloni Cocoon 1 times...
You gain 4,039 hit points
Cannelloni Cocoon was successfully cast.
Current HP: 4467, MP: 915
To heal with Doc Galaktik would cost 40.0 meat. Now to beat that price...
testing Doc Galaktik's Ailment Ointment...
Could heal 4HP with 1 Doc Galaktik's Ailment Ointment for 26.666666 meat.
Doc Galaktik's Ailment Ointment is now the best for restoring HP.
testing Doc Galaktik's Homeopathic Elixir...
Could heal 4HP with 1 Doc Galaktik's Homeopathic Elixir for 50.526318 meat.
testing Doc Galaktik's Pungent Unguent...
Could heal 4HP with 1 Doc Galaktik's Pungent Unguent for 30.0 meat.
testing Doc Galaktik's Restorative Balm...
Could heal 4HP with 1 Doc Galaktik's Restorative Balm for 34.285717 meat.
testing Medicinal Herb's medicinal herbs...
testing ancient Magi-Wipes...
Could heal 4HP with 1 ancient Magi-Wipes for 15.999999 meat.
ancient Magi-Wipes is now the best for restoring HP.
testing ancient turtle shell powder...
Could heal 4HP with 1 ancient turtle shell powder for 307.69232 meat.
testing bottle of Vangoghbitussin...
Could heal 4HP with 1 bottle of Vangoghbitussin for 26.599998 meat.
testing bubbly potion...
Could heal 4HP with 1 bubbly potion for 144.0 meat.
testing cast...
Could heal 4HP with 1 cast for 22.857143 meat.
testing cotton candy bale...
Could heal 4HP with 1 cotton candy bale for 182.11382 meat.
testing cotton candy cone...
Could heal 4HP with 1 cotton candy cone for 29.435898 meat.
testing cotton candy pillow...
Could heal 4HP with 1 cotton candy pillow for 46.274513 meat.
testing cotton candy pinch...
Could heal 4HP with 1 cotton candy pinch for 4400.0 meat.
testing cotton candy plug...
Could heal 4HP with 1 cotton candy plug for 603.5088 meat.
testing cotton candy skoshe...
Could heal 4HP with 1 cotton candy skoshe for 213.33334 meat.
testing cotton candy smidgen...
Could heal 4HP with 1 cotton candy smidgen for 1882.3529 meat.
testing filthy poultice...
Could heal 4HP with 1 filthy poultice for 10.0 meat.
filthy poultice is now the best for restoring HP.
testing forest tears...
Could heal 4HP with 1 forest tears for 893.3334 meat.
testing gauze garter...
Could heal 4HP with 1 gauze garter for 9.84 meat.
gauze garter is now the best for restoring HP.
testing green pixel potion...
Could heal 4HP with 1 green pixel potion for 15.599999 meat.
testing honey-dipped locust...
Could heal 4HP with 1 honey-dipped locust for 26.285715 meat.
testing mummy wrapping...
Could heal 4HP with 1 mummy wrapping for 14.4 meat.
testing palm frond...
Could heal 4HP with 1 palm frond for 20.0 meat.
testing palm-frond fan...
Could heal 4HP with 1 palm-frond fan for 28.0 meat.
testing phonics down...
Could heal 4HP with 1 phonics down for 21.25 meat.
testing pixellated candy heart...
Could heal 4HP with 1 pixellated candy heart for 844.44446 meat.
testing plump juicy grub...
testing really thick bandage...
Could heal 4HP with 1 really thick bandage for 8.909091 meat.
really thick bandage is now the best for restoring HP.
testing red pixel potion...
Could heal 4HP with 1 red pixel potion for 32.545452 meat.
testing scented massage oil...
Could heal 4HP with 1 scented massage oil for 5900.0 meat.
testing scroll of drastic healing...
Could heal 4HP with 1 scroll of drastic healing for 493.33334 meat.
testing sugar shard...
Could heal 4HP with 1 sugar shard for 26.666668 meat.
testing tiny house...
Could heal 4HP with 1 tiny house for 38.909092 meat.
In mallmode, best HP restorative is: really thick bandage @ 8.909091 meat total.
To heal with Doc Galaktik would cost 9690.0 meat. Now to beat that price...
testing Blatantly Canadian...
Could heal 570MP with 26 Blatantly Canadian for 5066.667 meat.
Blatantly Canadian is now the best for restoring MP.
testing Cherry Cloaca Cola...
Could heal 570MP with 72 Cherry Cloaca Cola for 5700.0 meat.
testing Cloaca-Cola...
Could heal 570MP with 48 Cloaca-Cola for 4940.0 meat.
Cloaca-Cola is now the best for restoring MP.
testing Diet Cloaca Cola...
Could heal 570MP with 72 Diet Cloaca Cola for 7125.0 meat.
testing Dyspepsi-Cola...
Could heal 570MP with 48 Dyspepsi-Cola for 4940.0 meat.
testing Knob Goblin seltzer...
Could heal 570MP with 57 Knob Goblin seltzer for 4560.0 meat.
Knob Goblin seltzer is now the best for restoring MP.
testing Knob Goblin superseltzer...
Could heal 570MP with 22 Knob Goblin superseltzer for 2744.4443 meat.
Knob Goblin superseltzer is now the best for restoring MP.
testing Monstar energy beverage...
Could heal 570MP with 8 Monstar energy beverage for 2622.0 meat.
Monstar energy beverage is now the best for restoring MP.
testing Mountain Stream soda...
Could heal 570MP with 76 Mountain Stream soda for 8816.0 meat.
testing Nardz energy beverage...
Could heal 570MP with 9 Nardz energy beverage for 2630.7693 meat.
testing New Cloaca-Cola...
Could heal 570MP with 4 New Cloaca-Cola for 24700.0 meat.
testing Regular Cloaca Cola...
Could heal 570MP with 72 Regular Cloaca Cola for 5700.0 meat.
testing Wint-O-Fresh mint...
Could heal 570MP with 143 Wint-O-Fresh mint for 14250.0 meat.
testing Wolfman Nardz...
Could heal 570MP with 3 Wolfman Nardz for 6612.0 meat.
testing ancient Magi-Wipes...
Could heal 570MP with 11 ancient Magi-Wipes for 2280.0 meat.
ancient Magi-Wipes is now the best for restoring MP.
testing banana spritzer...
Could heal 570MP with 9 banana spritzer for 43971.43 meat.
testing black cherry soda...
Could heal 570MP with 57 black cherry soda for 4560.0 meat.
testing blue pixel potion...
Could heal 570MP with 9 blue pixel potion for 2586.923 meat.
testing bottle of Monsieur Bubble...
Could heal 570MP with 11 bottle of Monsieur Bubble for 3005.4543 meat.
testing bottle of Vangoghbitussin...
Could heal 570MP with 6 bottle of Vangoghbitussin for 3790.4998 meat.
testing bubbly potion...
Could heal 570MP with 57 bubbly potion for 20520.0 meat.
testing carbonated soy milk...
Could heal 570MP with 8 carbonated soy milk for 3040.0 meat.
testing carbonated water lily...
Could heal 570MP with 9 carbonated water lily for 2367.6924 meat.
testing cotton candy bale...
Could heal 570MP with 10 cotton candy bale for 25951.219 meat.
testing cotton candy cone...
Could heal 570MP with 15 cotton candy cone for 4194.6157 meat.
testing cotton candy pillow...
Could heal 570MP with 12 cotton candy pillow for 6594.1177 meat.
testing cotton candy pinch...
Could heal 570MP with 48 cotton candy pinch for 470250.0 meat.
testing cotton candy plug...
Could heal 570MP with 20 cotton candy plug for 86000.0 meat.
testing cotton candy skoshe...
Could heal 570MP with 26 cotton candy skoshe for 30400.0 meat.
testing cotton candy smidgen...
Could heal 570MP with 34 cotton candy smidgen for 268235.28 meat.
testing delicious shimmering moth...
testing green pixel potion...
Could heal 570MP with 17 green pixel potion for 3175.7144 meat.
testing high-pressure seltzer bottle...
Could heal 570MP with 4 high-pressure seltzer bottle for 5051.8286 meat.
testing honey-dipped locust...
Could heal 570MP with 17 honey-dipped locust for 3800.0002 meat.
testing magical mystery juice...
Could heal 570MP with 9 magical mystery juice for 857.1428 meat.
magical mystery juice is now the best for restoring MP.
testing natural fennel soda...
Could heal 570MP with 6 natural fennel soda for 2850.0 meat.
testing palm frond...
Could heal 570MP with 29 palm frond for 2850.0 meat.
testing palm-frond fan...
Could heal 570MP with 15 palm-frond fan for 3990.0 meat.
testing phonics down...
Could heal 570MP with 12 phonics down for 3028.125 meat.
testing six-pack of New Cloaca-Cola...
Could heal 570MP with 1 six-pack of New Cloaca-Cola for 38000.0 meat.
testing soda water...
Could heal 570MP with 143 soda water for 9975.0 meat.
testing sugar shard...
Could heal 570MP with 76 sugar shard for 7600.0 meat.
testing tiny house...
Could heal 570MP with 26 tiny house for 5544.5454 meat.
testing tonic water...
Could heal 570MP with 15 tonic water for 31350.0 meat.
testing unrefined Mountain Stream syrup...
Could heal 570MP with 11 unrefined Mountain Stream syrup for 4145.4546 meat.
In mallmode, best MP restorative is: magical mystery juice @ 857.1428 meat total.
Mall price to restore 20MP is 0 meat.
Cast a healing skill.
Division by zero (Universal_recovery.ash, line 303)

Code:
[19184] The Slime Tube
Encounter: towering Slime colossus
Round 0: laser bullet loses initiative!
Round 1: Trofflesby irritates the crap out of you and your opponent with his incessant high-pitched yapping.
You lose 4,036 hit points
You lose 107 hit points
Round 1: laser bullet attacks!
Round 2: slime5 takes 4035 damage.
You acquire an item: slimy fermented bile bladder
You gain 103 Strengthliness
You gain 97 Mysteriousness
You gain 191 Smarm
Calling Universal Recovery for type=HP, amount=0
Restoring HP! Currently at 326 of 4471 HP, 880 of 2284 MP, current meat: 13358790 ... Target HP = 4471.
To heal with Doc Galaktik would cost 41450.0 meat. Now to beat that price...
testing Doc Galaktik's Ailment Ointment...
Could heal 4145HP with 461 Doc Galaktik's Ailment Ointment for 27633.332 meat.
Doc Galaktik's Ailment Ointment is now the best for restoring HP.
testing Doc Galaktik's Homeopathic Elixir...
Could heal 4145HP with 219 Doc Galaktik's Homeopathic Elixir for 52357.895 meat.
testing Doc Galaktik's Pungent Unguent...
Could heal 4145HP with 1037 Doc Galaktik's Pungent Unguent for 31087.5 meat.
testing Doc Galaktik's Restorative Balm...
Could heal 4145HP with 297 Doc Galaktik's Restorative Balm for 35528.574 meat.
testing Medicinal Herb's medicinal herbs...
testing ancient Magi-Wipes...
Could heal 4145HP with 76 ancient Magi-Wipes for 16580.0 meat.
ancient Magi-Wipes is now the best for restoring HP.
testing ancient turtle shell powder...
Could heal 4145HP with 54 ancient turtle shell powder for 318846.16 meat.
testing bottle of Vangoghbitussin...
Could heal 4145HP with 42 bottle of Vangoghbitussin for 27564.25 meat.
testing bubbly potion...
Could heal 4145HP with 415 bubbly potion for 149220.0 meat.
testing cast...
Could heal 4145HP with 237 cast for 23685.715 meat.
testing cotton candy bale...
Could heal 4145HP with 68 cotton candy bale for 188715.45 meat.
testing cotton candy cone...
Could heal 4145HP with 107 cotton candy cone for 30502.95 meat.
testing cotton candy pillow...
Could heal 4145HP with 82 cotton candy pillow for 47951.96 meat.
testing cotton candy pinch...
Could heal 4145HP with 461 cotton candy pinch for 4559500.0 meat.
testing cotton candy plug...
Could heal 4145HP with 146 cotton candy plug for 625386.0 meat.
testing cotton candy skoshe...
Could heal 4145HP with 185 cotton candy skoshe for 221066.67 meat.
testing cotton candy smidgen...
Could heal 4145HP with 244 cotton candy smidgen for 1950588.2 meat.
testing filthy poultice...
Could heal 4145HP with 42 filthy poultice for 10362.5 meat.
filthy poultice is now the best for restoring HP.
testing forest tears...
Could heal 4145HP with 553 forest tears for 925716.7 meat.
testing gauze garter...
Could heal 4145HP with 42 gauze garter for 10196.7 meat.
gauze garter is now the best for restoring HP.
testing green pixel potion...
Could heal 4145HP with 83 green pixel potion for 16165.5 meat.
testing honey-dipped locust...
Could heal 4145HP with 119 honey-dipped locust for 27238.572 meat.
testing mummy wrapping...
Could heal 4145HP with 76 mummy wrapping for 14922.001 meat.
testing palm frond...
Could heal 4145HP with 208 palm frond for 20725.0 meat.
testing palm-frond fan...
Could heal 4145HP with 104 palm-frond fan for 29015.0 meat.
testing phonics down...
Could heal 4145HP with 87 phonics down for 22020.312 meat.
testing pixellated candy heart...
Could heal 4145HP with 922 pixellated candy heart for 875055.5 meat.
testing plump juicy grub...
testing really thick bandage...
Could heal 4145HP with 38 really thick bandage for 9232.046 meat.
really thick bandage is now the best for restoring HP.
testing red pixel potion...
Could heal 4145HP with 38 red pixel potion for 33725.23 meat.
testing scented massage oil...
Could heal 4145HP with 1 scented massage oil for 5900.0 meat.
scented massage oil is now the best for restoring HP.
testing scroll of drastic healing...
Could heal 4145HP with 1 scroll of drastic healing for 493.33334 meat.
scroll of drastic healing is now the best for restoring HP.
testing sugar shard...
Could heal 4145HP with 277 sugar shard for 27633.334 meat.
testing tiny house...
Could heal 4145HP with 189 tiny house for 40319.543 meat.
In mallmode, best HP restorative is: scroll of drastic healing @ 493.33334 meat total.
To heal with Doc Galaktik would cost 9707.0 meat. Now to beat that price...
testing Blatantly Canadian...
Could heal 571MP with 26 Blatantly Canadian for 5075.5557 meat.
Blatantly Canadian is now the best for restoring MP.
testing Cherry Cloaca Cola...
Could heal 571MP with 72 Cherry Cloaca Cola for 5710.0 meat.
testing Cloaca-Cola...
Could heal 571MP with 48 Cloaca-Cola for 4948.6665 meat.
Cloaca-Cola is now the best for restoring MP.
testing Diet Cloaca Cola...
Could heal 571MP with 72 Diet Cloaca Cola for 7137.5 meat.
testing Dyspepsi-Cola...
Could heal 571MP with 48 Dyspepsi-Cola for 4948.6665 meat.
testing Knob Goblin seltzer...
Could heal 571MP with 58 Knob Goblin seltzer for 4568.0 meat.
Knob Goblin seltzer is now the best for restoring MP.
testing Knob Goblin superseltzer...
Could heal 571MP with 22 Knob Goblin superseltzer for 2749.2593 meat.
Knob Goblin superseltzer is now the best for restoring MP.
testing Monstar energy beverage...
Could heal 571MP with 8 Monstar energy beverage for 2626.5999 meat.
Monstar energy beverage is now the best for restoring MP.
testing Mountain Stream soda...
Could heal 571MP with 77 Mountain Stream soda for 8831.467 meat.
testing Nardz energy beverage...
Could heal 571MP with 9 Nardz energy beverage for 2635.3848 meat.
testing New Cloaca-Cola...
Could heal 571MP with 4 New Cloaca-Cola for 24743.332 meat.
testing Regular Cloaca Cola...
Could heal 571MP with 72 Regular Cloaca Cola for 5710.0 meat.
testing Wint-O-Fresh mint...
Could heal 571MP with 143 Wint-O-Fresh mint for 14275.0 meat.
testing Wolfman Nardz...
Could heal 571MP with 3 Wolfman Nardz for 6623.5996 meat.
testing ancient Magi-Wipes...
Could heal 571MP with 11 ancient Magi-Wipes for 2284.0 meat.
ancient Magi-Wipes is now the best for restoring MP.
testing banana spritzer...
Could heal 571MP with 9 banana spritzer for 44048.57 meat.
testing black cherry soda...
Could heal 571MP with 58 black cherry soda for 4568.0 meat.
testing blue pixel potion...
Could heal 571MP with 9 blue pixel potion for 2591.4617 meat.
testing bottle of Monsieur Bubble...
Could heal 571MP with 11 bottle of Monsieur Bubble for 3010.727 meat.
testing bottle of Vangoghbitussin...
Could heal 571MP with 6 bottle of Vangoghbitussin for 3797.1501 meat.
testing bubbly potion...
Could heal 571MP with 58 bubbly potion for 20556.0 meat.
testing carbonated soy milk...
Could heal 571MP with 8 carbonated soy milk for 3045.3333 meat.
testing carbonated water lily...
Could heal 571MP with 9 carbonated water lily for 2371.8462 meat.
testing cotton candy bale...
Could heal 571MP with 10 cotton candy bale for 25996.748 meat.
testing cotton candy cone...
Could heal 571MP with 15 cotton candy cone for 4201.974 meat.
testing cotton candy pillow...
Could heal 571MP with 12 cotton candy pillow for 6605.686 meat.
testing cotton candy pinch...
Could heal 571MP with 48 cotton candy pinch for 471075.0 meat.
testing cotton candy plug...
Could heal 571MP with 21 cotton candy plug for 86150.875 meat.
testing cotton candy skoshe...
Could heal 571MP with 26 cotton candy skoshe for 30453.332 meat.
testing cotton candy smidgen...
Could heal 571MP with 34 cotton candy smidgen for 268705.88 meat.
testing delicious shimmering moth...
testing green pixel potion...
Could heal 571MP with 17 green pixel potion for 3181.2856 meat.
testing high-pressure seltzer bottle...
Could heal 571MP with 4 high-pressure seltzer bottle for 5060.6914 meat.
testing honey-dipped locust...
Could heal 571MP with 17 honey-dipped locust for 3806.6665 meat.
testing magical mystery juice...
Could heal 571MP with 9 magical mystery juice for 858.6466 meat.
magical mystery juice is now the best for restoring MP.
testing natural fennel soda...
Could heal 571MP with 6 natural fennel soda for 2855.0 meat.
testing palm frond...
Could heal 571MP with 29 palm frond for 2855.0 meat.
testing palm-frond fan...
Could heal 571MP with 15 palm-frond fan for 3997.0 meat.
testing phonics down...
Could heal 571MP with 12 phonics down for 3033.4375 meat.
testing six-pack of New Cloaca-Cola...
Could heal 571MP with 1 six-pack of New Cloaca-Cola for 38066.664 meat.
testing soda water...
Could heal 571MP with 143 soda water for 9992.5 meat.
testing sugar shard...
Could heal 571MP with 77 sugar shard for 7613.333 meat.
testing tiny house...
Could heal 571MP with 26 tiny house for 5554.273 meat.
testing tonic water...
Could heal 571MP with 15 tonic water for 31405.0 meat.
testing unrefined Mountain Stream syrup...
Could heal 571MP with 11 unrefined Mountain Stream syrup for 4152.727 meat.
In mallmode, best MP restorative is: magical mystery juice @ 858.6466 meat total.
Mall price to restore 19MP is 0 meat.
Cast a healing skill.
_meatperhp => 0.006892986
Casting Cannelloni Cocoon 1 times...
You gain 4,147 hit points
Cannelloni Cocoon was successfully cast.
Current HP: 4473, MP: 860
My meat: 13358790. Should be successfully healed...
Calling Universal Recovery for type=MP, amount=0
 
Last edited:
StDoodle is correct about the error, but my concern is how that error could possibly occur. It shouldn't still be trying to heal if your HP is full.

Thank you for posting the full CLI log of that event since it is seriously odd. How could 438+4039 =? 4467 which is what happened when you cast Cocoon. Since 4467 HP is 10 HP shy of your target it then tries to continue healing, but since it really did heal up to 4477 HP it ends up in an error state. I'm going to look this over, but I suspect some odd mafia error is responsible since I cannot account for that math. In the end all I may be able to do is to add

PHP:
if(my_hp() >= my_maxhp()) return true

between lines 301 and 302. And that is annoying.
 
Something is puzzling me about DA's script output. It's probably irrelevant but when UR prints "Calling Universal Recovery" type and amount should both be stated, his is just stating type and the amount is coming out as 0. The amount should match whatever is the reported Target to restore. It works for me, but doesn't seem to be for him.
 
The script is being called with parameter 0 which means default healing. It only has a non-zero number when it is called with a specific target in mind.
 
Thanks for this script, it's been very helpful! I am having two small problems with it though. I have 3 free disco rests available, and no matter how I configure it, it won't use them to restore MP. I currently have it set up to restore up to 80% mana at 10% mana, with max MP of 630. Free disco rest is checked both in the relay interface and the KoL Mafia interface. The second "problem" is that I have 100 Marquis de Poivre sodas in my inventory, and it decides to buy and use ancient magi-wipes anyways. I have both checked in the KoL Mafia interface. I'm assuming I'm just missing some sort of configuration option, and any help is much appreciated!

edit: Well, after actually looking over the code, I'm assuming the following line is keeping free disco naps from happening, since I'm mostly at max HP all the time. I'll edit it and see how it goes tomorrow.

&& my_maxmp() - my_mp() >=rest_mp && (my_maxhp() - my_hp())/2 >= rest_hp)
 
Last edited:
You've got the gist of it. The script hates waste and so it won't use up a disco rest unless it restores HP as well as MP.

That's a problem that pops up from time to time. Now that I've got a UI to configure options, should I add "Only use Disco Rest if it grants HP as well as HP" as an option?
 
MP recovery amount wrong

I'm having a problem getting the script to function properly. It's saying that the goal MP is 250, even when I've got it set to restore up to 90% with 1600+ max mp.

I know this isn't nearly enough info for someone to provide an answer. If someone would let me know what information they need, I'll gladly track it down. For starters, I'm using version 3.61, Mafia version is KoLmafia-8413.jar. What else would be useful?

Edit: This is what I get. Currently set to Auto recover at 90%, up to 95%. I click on the link in my current mp number to restore, and...

> restore mp

Restoring MP! Currently at 2160 of 2415 HP, 154 of 1537 MP, current meat: 131836 ... Target MP = 155.
Searching for "carbonated water lily"...
Purchasing carbonated water lily (1 @ 170)...
You acquire an item: carbonated water lily
Purchases complete.
Using 1 carbonated water lily...
You gain 61 Mana Points
Finished using 1 carbonated water lily.
 
Last edited:
A problem is that clicking on your mp link for "restore mp" does not do what you think it does. It is not the same as automatic between battle healing. It only attempt to restore 1 more MP than you have.

In the CLI, try typing ash restore_mp(0) and let me know what that does. This command DOES do the same thing as between battle mp restoration.
 
Last edited:
Oops. Well, one assumption vanquished. I got:

> ash restore_mp(0)

Returned: true

No mp restore, though. My MP is happily sitting at 18.
 
Last edited:
Now that I've got a UI to configure options, should I add "Only use Disco Rest if it grants HP as well as HP" as an option?

I think it would be a solid option to allow for the user to choose between using disco rests for HP only, MP only, or both. The MP option is helpful for high moxie farming, and I can see HP only being useful for low level accounts that don't really have skills yet.

Also, any ideas on why it would buy MP restorers instead using Marquis de Poivre soda from my inventory? Would I need to change the final column in recoveryScript_map_v2.txt from false to true? It's a shot in the dark, but I'll probably try it tomorrow.
 
Valliant,

Some suggestions: Enable Verbosity 2 or 3 til you get this sorted out, change your restoration settings so that it restores to 100% and see if the results are different. I don't know why restore mp isn't working right for you as I've used it many times in the past with no issue. Granted I always recover to 100% and I haven't needed to do so in a while due to familiar/gear usage. I'll test this out myself shortly to see if 90-95% comes out wrong for me on my caster.

Edit: Just tested the restoration settings with my myst account and didn't have a problem with an explicit restore mp call (clicking the link in the relay browser to do so)

Code:
> ash my_mp()

Returned: 1180

> ash my_maxmp()

Returned: 1926

> restore mp

Calling Universal Recovery for type=MP, amount=1829
Restoring MP! Currently at 683 of 1098 HP, 1180 of 1926 MP, current meat: 93639 ... Target MP = 1830.
Snip snip snip
In mallmode, best MP restorative is: magical mystery juice @ 1340.2062 meat total.
Trying to use 14 magical mystery juice
Searching for "magical mystery juice"...
Purchasing magical mystery juice (14 @ 100)...
You acquire magical mystery juice (14)
You spent 1,400 Meat
Purchases complete.
Using 14 magical mystery juice...
You gain 677 Mana Points
Finished using 14 magical mystery juice.
Current HP: 683, MP: 1857
My meat: 92239. Should be successfully healed...

With mp restoration set to go to 95%, the preference can be seen:
Code:
mpAutoRecoveryTarget (user, now '0.95', default 0.3)
 
Last edited:
Verbosity? I am, unfortunately, still rather a noob in the ways of the more interesting and complex functions of KoLMafia. Might I have a link to an explanation?
 
And, when I tried ash restore_mp(0) again, it worked. Bah. It's still not restoring my MP when it gets low, though.

Would this answer any questions? It has been popping up in my CLI as I try to use a basement-diving script. Bad interaction?

mpAutoRecovery => -0.05
mpAutoRecoveryTarget => -0.05
 
Last edited:
And, when I tried ash restore_mp(0) again, it worked. Bah. It's still not restoring my MP when it gets low, though.

Bale's script has different levels of verbosity. Verbosity being extra information that is reported in the CLI when the script fires off. If you also downloaded the supplemental html form version of UR's interface and placed it in your relay folder, you can just click the level of verboseness you want to see and update and it will be applied. Otherwise, I think you'll have to type in the CLI the setting you would like.

Try typing:

set baleUr_Verbosity=2

That should get to a medium level of verboseness when the script runs. For a really good look at what is going on, albeit spammy, try setting it to 3, otherwise just set it to 1 which is probably what you're running right now.

Edit: How are you handling your adventures? Are you doing so in the relay browser manually or thru mafia while autoadventuring? If you're doing it manually in the relay browser and want the script to fire off, you'll want to check your mafia preferences and make sure "Maintain mana during manual adventuring" is enabled under the Browser section. Obviously also check the one for hp. If these things are not enabled, they will never fire off on their own while manually adventuring and you'll have to keep manually calling the script.
 
Last edited:
I'm currently using AutoBasement 2.0 to basement dive. I do have the preference set to mantain mana during manual adventuring. I set the verbosity to 3, and will post what I get out of it.
 
Back
Top