Universal Recovery Script

Terrabull

Member
Mafia had no qualms equipping the item from my closet then putting it back. Throwing it in the display case helped though. Now I can't use the modifier maximizer for that unless I remember to pull it out first. *sigh*
 

Bale

Minion
Universal recovery v 3.73 released!


Changelog:
Universal Recovery version 3.73 July 21, 2010
& relay UI version 1.13
  • Allow level 9 Accordion Thief to use Medicinal Herbs.
  • Added "Never abort automation, even if restoration fails" option for automating fiends.
  • Added "Never abort automation, even if restoration fails" option to relay_Universal_recovery v1.13

Download v3.73 here:
(Universal_Recovery.ash goes in the /scripts folder)​

Download relay UI v1.13 here:
(relay_Universal_Recovery.ash goes in the /relay folder)​

Note that the "Never abort automation, even if restoration fails" option was added primarily for fronobulax to make use of for ascend.ash compatibility, but anyone who wants to ensure that UR will never abort can make use of it. If that is set to true and UR fails to heal up to the requested level, instead of aborting, UR will set baleUr_Trouble to true. Obviously I don't endorse that for most people's use, but fronobulax thinks the option will help ascend.ash greatly so I hope to help out.

I may (and likely will) add more ascend.ash compatibility into the script. Such behavior will be triggered when told "Never abort automation, even if restoration fails."
 
Last edited:

mredge73

Member
PHP:
 > Calling Universal Recovery for type=HP, amount=0
 > Restoring HP! Currently at 1236 of 3668 HP, 2 of 201 MP, current meat: 38954041 ... Target HP = 3302.
 > Will need MP, so restoring it now to improve efficiency.
 > Restoring MP! Currently at 1236 of 3668 HP, 2 of 201 MP, current meat: 38954041 ... Target MP = 17.
 > To heal with Doc Galaktik would cost 255.0 meat. Now to beat that price...
> testing Blatantly Canadian...
 > Could heal 15MP with 1 Blatantly Canadian for 100.0 meat.
 > Blatantly Canadian is now the best for restoring MP.
> testing Cherry Cloaca Cola...
 > Could heal 15MP with 2 Cherry Cloaca Cola for 150.0 meat.
> testing Cloaca-Cola...
 > Could heal 15MP with 2 Cloaca-Cola for 130.0 meat.
> testing Diet Cloaca Cola...
 > Could heal 15MP with 2 Diet Cloaca Cola for 150.0 meat.
> testing Dyspepsi-Cola...
 > Could heal 15MP with 2 Dyspepsi-Cola for 130.0 meat.
> testing Knob Goblin seltzer...
 > Could heal 15MP with 2 Knob Goblin seltzer for 120.0 meat.
> testing Knob Goblin superseltzer...
 > Could heal 15MP with 1 Knob Goblin superseltzer for 110.00001 meat.
> testing Monstar energy beverage...
 > Could heal 15MP with 1 Monstar energy beverage for 95.0 meat.
 > Monstar energy beverage is now the best for restoring MP.
> testing Mountain Stream soda...
 > Could heal 15MP with 2 Mountain Stream soda for 232.0 meat.
> testing Nardz energy beverage...
 > Could heal 15MP with 1 Nardz energy beverage for 75.46154 meat.
 > Nardz energy beverage is now the best for restoring MP.
> testing New Cloaca-Cola...
 > Could heal 15MP with 1 New Cloaca-Cola for 350.0 meat.
> testing Regular Cloaca Cola...
 > Could heal 15MP with 2 Regular Cloaca Cola for 150.0 meat.
> testing Wint-O-Fresh mint...
 > Could heal 15MP with 4 Wint-O-Fresh mint for 375.0 meat.
> testing Wolfman Nardz...
 > Could heal 15MP with 1 Wolfman Nardz for 78.0 meat.
> testing ancient Magi-Wipes...
 > Could heal 15MP with 1 ancient Magi-Wipes for 47.727276 meat.
 > ancient Magi-Wipes is now the best for restoring MP.
> testing banana spritzer...
 > Could heal 15MP with 1 banana spritzer for 707.1429 meat.
> testing black cherry soda...
 > Could heal 15MP with 2 black cherry soda for 120.0 meat.
> testing blue pixel potion...
 > Could heal 15MP with 1 blue pixel potion for 160.38461 meat.
> testing bottle of Monsieur Bubble...
 > Could heal 15MP with 1 bottle of Monsieur Bubble for 155.45454 meat.
> testing bottle of Vangoghbitussin...
 > Could heal 15MP with 1 bottle of Vangoghbitussin for 82.65 meat.
> testing carbonated soy milk...
 > Could heal 15MP with 1 carbonated soy milk for 85.0 meat.
> testing carbonated water lily...
 > Could heal 15MP with 1 carbonated water lily for 39.23077 meat.
 > carbonated water lily is now the best for restoring MP.
> testing cotton candy bale...
 > Could heal 15MP with 1 cotton candy bale for 85.36585 meat.
> testing cotton candy cone...
 > Could heal 15MP with 1 cotton candy cone for 73.07693 meat.
> testing cotton candy pillow...
 > Could heal 15MP with 1 cotton candy pillow for 85.29412 meat.
> testing cotton candy pinch...
 > Could heal 15MP with 2 cotton candy pinch for 500.0 meat.
> testing cotton candy plug...
 > Could heal 15MP with 1 cotton candy plug for 1552.6316 meat.
> testing cotton candy skoshe...
 > Could heal 15MP with 1 cotton candy skoshe for 593.3334 meat.
> testing cotton candy smidgen...
 > Could heal 15MP with 1 cotton candy smidgen for 1500.0 meat.
> testing delicious shimmering moth...
> testing fizzy potion...
 > Could heal 15MP with 2 fizzy potion for 469.5 meat.
> testing green pixel potion...
 > Could heal 15MP with 1 green pixel potion for 213.85715 meat.
> testing high-pressure seltzer bottle...
 > Could heal 15MP with 1 high-pressure seltzer bottle for 110.571434 meat.
> testing honey-dipped locust...
 > Could heal 15MP with 1 honey-dipped locust for 100.0 meat.
> testing magical mystery juice...
> testing natural fennel soda...
 > Could heal 15MP with 1 natural fennel soda for 112.50001 meat.
> testing palm frond...
 > Could heal 15MP with 1 palm frond for 75.0 meat.
> testing palm-frond fan...
 > Could heal 15MP with 1 palm-frond fan for 75.0 meat.
> testing phonics down...
 > Could heal 15MP with 1 phonics down for 71.875 meat.
> testing six-pack of New Cloaca-Cola...
 > Could heal 15MP with 1 six-pack of New Cloaca-Cola for 466.6667 meat.
> testing soda water...
 > Could heal 15MP with 4 soda water for 262.5 meat.
> testing sugar shard...
 > Could heal 15MP with 2 sugar shard for 200.0 meat.
> testing tiny house...
 > Could heal 15MP with 1 tiny house for 145.90909 meat.
> testing tonic water...
 > Could heal 15MP with 1 tonic water for 675.0 meat.
> testing unrefined Mountain Stream syrup...
 > Could heal 15MP with 1 unrefined Mountain Stream syrup for 129.54546 meat.
 > In mallmode, best MP restorative is: carbonated water lily @ 39.23077 meat total.
 > Trying to use 1 carbonated water lily

buy 1 carbonated water lily for 170 each from 1230303 on 20100723
You acquire an item: carbonated water lily

use 1 carbonated water lily
You gain 65 Muscularity Points
 > Current HP: 1236, MP: 67
 > My meat: 38953871. Should be successfully healed...
 > MP restored. Returning to HP restoration.
 > To heal with Doc Galaktik would cost 20660.0 meat. Now to beat that price...
> testing Doc Galaktik's Ailment Ointment...
 > Could heal 2066HP with 230 Doc Galaktik's Ailment Ointment for 13773.333 meat.
 > Doc Galaktik's Ailment Ointment is now the best for restoring HP.
> testing Doc Galaktik's Homeopathic Elixir...
 > Could heal 2066HP with 109 Doc Galaktik's Homeopathic Elixir for 26096.842 meat.
> testing Doc Galaktik's Pungent Unguent...
 > Could heal 2066HP with 517 Doc Galaktik's Pungent Unguent for 15495.0 meat.
> testing Doc Galaktik's Restorative Balm...
 > Could heal 2066HP with 148 Doc Galaktik's Restorative Balm for 17708.57 meat.
> testing Medicinal Herb's medicinal herbs...
> testing ancient Magi-Wipes...
 > Could heal 2066HP with 38 ancient Magi-Wipes for 6573.636 meat.
 > ancient Magi-Wipes is now the best for restoring HP.
> testing ancient turtle shell powder...
 > Could heal 2066HP with 27 ancient turtle shell powder for 132435.89 meat.
> testing bottle of Vangoghbitussin...
 > Could heal 2066HP with 21 bottle of Vangoghbitussin for 11383.66 meat.
> testing cast...
 > Could heal 2066HP with 119 cast for 11805.715 meat.
> testing cotton candy bale...
 > Could heal 2066HP with 34 cotton candy bale for 11757.723 meat.
> testing cotton candy cone...
 > Could heal 2066HP with 53 cotton candy cone for 10065.128 meat.
> testing cotton candy pillow...
 > Could heal 2066HP with 41 cotton candy pillow for 11747.843 meat.
> testing cotton candy pinch...
 > Could heal 2066HP with 230 cotton candy pinch for 91822.23 meat.
> testing cotton candy plug...
 > Could heal 2066HP with 73 cotton candy plug for 213849.12 meat.
> testing cotton candy skoshe...
 > Could heal 2066HP with 92 cotton candy skoshe for 81721.77 meat.
> testing cotton candy smidgen...
 > Could heal 2066HP with 122 cotton candy smidgen for 206600.0 meat.
> testing filthy poultice...
 > Could heal 2066HP with 21 filthy poultice for 3512.2 meat.
 > filthy poultice is now the best for restoring HP.
> testing fizzy potion...
 > Could heal 2066HP with 207 fizzy potion for 64665.8 meat.
> testing forest tears...
 > Could heal 2066HP with 276 forest tears for 549280.56 meat.
> testing gauze garter...
 > Could heal 2066HP with 21 gauze garter for 3512.2 meat.
> testing green pixel potion...
 > Could heal 2066HP with 42 green pixel potion for 20618.68 meat.
> testing honey-dipped locust...
 > Could heal 2066HP with 60 honey-dipped locust for 13576.571 meat.
> testing mummy wrapping...
 > Could heal 2066HP with 38 mummy wrapping for 4394.9453 meat.
> testing palm frond...
 > Could heal 2066HP with 104 palm frond for 10330.0 meat.
> testing palm-frond fan...
 > Could heal 2066HP with 52 palm-frond fan for 10330.0 meat.
> testing phonics down...
 > Could heal 2066HP with 44 phonics down for 9899.584 meat.
> testing pixellated candy heart...
 > Could heal 2066HP with 460 pixellated candy heart for 188235.56 meat.
> testing plump juicy grub...
> testing really thick bandage...
 > Could heal 2066HP with 19 really thick bandage for 5634.5454 meat.
> testing red pixel potion...
 > Could heal 2066HP with 19 red pixel potion for 17373.182 meat.
> testing scented massage oil...
 > Could heal 2066HP with 1 scented massage oil for 5400.0 meat.
> testing scroll of drastic healing...
 > Could heal 2066HP with 1 scroll of drastic healing for 566.6667 meat.
 > scroll of drastic healing is now the best for restoring HP.
> testing sugar shard...
 > Could heal 2066HP with 138 sugar shard for 13773.334 meat.
> testing tiny house...
 > Could heal 2066HP with 94 tiny house for 20096.545 meat.
 > In mallmode, best HP restorative is: scroll of drastic healing @ 566.6667 meat total.
 > To heal with Doc Galaktik would cost 850.0 meat. Now to beat that price...
> testing Blatantly Canadian...
 > Could heal 50MP with 3 Blatantly Canadian for 333.33334 meat.
 > Blatantly Canadian is now the best for restoring MP.
> testing Cherry Cloaca Cola...
 > Could heal 50MP with 7 Cherry Cloaca Cola for 500.0 meat.
> testing Cloaca-Cola...
 > Could heal 50MP with 5 Cloaca-Cola for 433.3333 meat.
> testing Diet Cloaca Cola...
 > Could heal 50MP with 7 Diet Cloaca Cola for 500.0 meat.
> testing Dyspepsi-Cola...
 > Could heal 50MP with 5 Dyspepsi-Cola for 433.3333 meat.
> testing Knob Goblin seltzer...
 > Could heal 50MP with 5 Knob Goblin seltzer for 400.0 meat.
> testing Knob Goblin superseltzer...
 > Could heal 50MP with 2 Knob Goblin superseltzer for 366.66666 meat.
> testing Monstar energy beverage...
 > Could heal 50MP with 1 Monstar energy beverage for 316.6667 meat.
 > Monstar energy beverage is now the best for restoring MP.
> testing Mountain Stream soda...
 > Could heal 50MP with 7 Mountain Stream soda for 773.3333 meat.
> testing Nardz energy beverage...
 > Could heal 50MP with 1 Nardz energy beverage for 251.53847 meat.
 > Nardz energy beverage is now the best for restoring MP.
> testing New Cloaca-Cola...
 > Could heal 50MP with 1 New Cloaca-Cola for 1166.6667 meat.
> testing Regular Cloaca Cola...
 > Could heal 50MP with 7 Regular Cloaca Cola for 500.0 meat.
> testing Wint-O-Fresh mint...
 > Could heal 50MP with 13 Wint-O-Fresh mint for 1250.0 meat.
> testing Wolfman Nardz...
 > Could heal 50MP with 1 Wolfman Nardz for 260.0 meat.
> testing ancient Magi-Wipes...
 > Could heal 50MP with 1 ancient Magi-Wipes for 159.09091 meat.
 > ancient Magi-Wipes is now the best for restoring MP.
> testing banana spritzer...
 > Could heal 50MP with 1 banana spritzer for 2357.1428 meat.
> testing black cherry soda...
 > Could heal 50MP with 5 black cherry soda for 400.0 meat.
> testing blue pixel potion...
 > Could heal 50MP with 1 blue pixel potion for 534.6154 meat.
> testing bottle of Monsieur Bubble...
 > Could heal 50MP with 1 bottle of Monsieur Bubble for 518.1818 meat.
> testing bottle of Vangoghbitussin...
 > Could heal 50MP with 1 bottle of Vangoghbitussin for 275.5 meat.
> testing carbonated soy milk...
 > Could heal 50MP with 1 carbonated soy milk for 283.33334 meat.
> testing carbonated water lily...
 > Could heal 50MP with 1 carbonated water lily for 130.76923 meat.
 > carbonated water lily is now the best for restoring MP.
> testing cotton candy bale...
 > Could heal 50MP with 1 cotton candy bale for 284.55286 meat.
> testing cotton candy cone...
 > Could heal 50MP with 2 cotton candy cone for 243.58975 meat.
> testing cotton candy pillow...
 > Could heal 50MP with 1 cotton candy pillow for 284.31372 meat.
> testing cotton candy pinch...
 > Could heal 50MP with 5 cotton candy pinch for 1666.6666 meat.
> testing cotton candy plug...
 > Could heal 50MP with 2 cotton candy plug for 5175.4385 meat.
> testing cotton candy skoshe...
 > Could heal 50MP with 3 cotton candy skoshe for 1977.7778 meat.
> testing cotton candy smidgen...
 > Could heal 50MP with 3 cotton candy smidgen for 5000.0 meat.
> testing delicious shimmering moth...
> testing fizzy potion...
 > Could heal 50MP with 5 fizzy potion for 1565.0 meat.
> testing green pixel potion...
 > Could heal 50MP with 2 green pixel potion for 712.8572 meat.
> testing high-pressure seltzer bottle...
 > Could heal 50MP with 1 high-pressure seltzer bottle for 368.57144 meat.
> testing honey-dipped locust...
 > Could heal 50MP with 2 honey-dipped locust for 333.33334 meat.
> testing magical mystery juice...
> testing natural fennel soda...
 > Could heal 50MP with 1 natural fennel soda for 375.0 meat.
> testing palm frond...
 > Could heal 50MP with 3 palm frond for 250.0 meat.
> testing palm-frond fan...
 > Could heal 50MP with 2 palm-frond fan for 250.0 meat.
> testing phonics down...
 > Could heal 50MP with 2 phonics down for 239.58333 meat.
> testing six-pack of New Cloaca-Cola...
 > Could heal 50MP with 1 six-pack of New Cloaca-Cola for 1555.5555 meat.
> testing soda water...
 > Could heal 50MP with 13 soda water for 875.0 meat.
> testing sugar shard...
 > Could heal 50MP with 7 sugar shard for 666.6666 meat.
> testing tiny house...
 > Could heal 50MP with 3 tiny house for 486.36362 meat.
> testing tonic water...
 > Could heal 50MP with 2 tonic water for 2250.0 meat.
> testing unrefined Mountain Stream syrup...
 > Could heal 50MP with 1 unrefined Mountain Stream syrup for 431.8182 meat.
 > In mallmode, best MP restorative is: carbonated water lily @ 130.76923 meat total.
 > Mall price to restore 196MP is 513 meat.
 > Cast a healing skill.
 > To heal with Doc Galaktik would cost 2193.0 meat. Now to beat that price...
> testing Blatantly Canadian...
 > Could heal 129MP with 6 Blatantly Canadian for 859.99994 meat.
 > Blatantly Canadian is now the best for restoring MP.
> testing Cherry Cloaca Cola...
 > Could heal 129MP with 17 Cherry Cloaca Cola for 1290.0 meat.
> testing Cloaca-Cola...
 > Could heal 129MP with 11 Cloaca-Cola for 1118.0 meat.
> testing Diet Cloaca Cola...
 > Could heal 129MP with 17 Diet Cloaca Cola for 1290.0 meat.
> testing Dyspepsi-Cola...
 > Could heal 129MP with 11 Dyspepsi-Cola for 1118.0 meat.
> testing Knob Goblin seltzer...
 > Could heal 129MP with 13 Knob Goblin seltzer for 1032.0 meat.
> testing Knob Goblin superseltzer...
 > Could heal 129MP with 5 Knob Goblin superseltzer for 946.0 meat.
> testing Monstar energy beverage...
 > Could heal 129MP with 2 Monstar energy beverage for 817.0 meat.
 > Monstar energy beverage is now the best for restoring MP.
> testing Mountain Stream soda...
 > Could heal 129MP with 18 Mountain Stream soda for 1995.2001 meat.
> testing Nardz energy beverage...
 > Could heal 129MP with 2 Nardz energy beverage for 648.96924 meat.
 > Nardz energy beverage is now the best for restoring MP.
> testing New Cloaca-Cola...
 > Could heal 129MP with 1 New Cloaca-Cola for 3010.0 meat.
> testing Regular Cloaca Cola...
 > Could heal 129MP with 17 Regular Cloaca Cola for 1290.0 meat.
> testing Wint-O-Fresh mint...
 > Could heal 129MP with 33 Wint-O-Fresh mint for 3225.0 meat.
> testing Wolfman Nardz...
 > Could heal 129MP with 1 Wolfman Nardz for 670.8 meat.
> testing ancient Magi-Wipes...
 > Could heal 129MP with 3 ancient Magi-Wipes for 410.45453 meat.
 > ancient Magi-Wipes is now the best for restoring MP.
> testing banana spritzer...
 > Could heal 129MP with 2 banana spritzer for 6081.4287 meat.
> testing black cherry soda...
 > Could heal 129MP with 13 black cherry soda for 1032.0 meat.
> testing blue pixel potion...
 > Could heal 129MP with 2 blue pixel potion for 1379.3076 meat.
> testing bottle of Monsieur Bubble...
 > Could heal 129MP with 3 bottle of Monsieur Bubble for 1336.909 meat.
> testing bottle of Vangoghbitussin...
 > Could heal 129MP with 2 bottle of Vangoghbitussin for 710.79 meat.
> testing carbonated soy milk...
 > Could heal 129MP with 2 carbonated soy milk for 731.0 meat.
> testing carbonated water lily...
 > Could heal 129MP with 2 carbonated water lily for 337.3846 meat.
 > carbonated water lily is now the best for restoring MP.
> testing cotton candy bale...
 > Could heal 129MP with 3 cotton candy bale for 734.1463 meat.
> testing cotton candy cone...
 > Could heal 129MP with 4 cotton candy cone for 628.46155 meat.
> testing cotton candy pillow...
 > Could heal 129MP with 3 cotton candy pillow for 733.5294 meat.
> testing cotton candy pinch...
 > Could heal 129MP with 11 cotton candy pinch for 4300.0 meat.
> testing cotton candy plug...
 > Could heal 129MP with 5 cotton candy plug for 13352.631 meat.
> testing cotton candy skoshe...
 > Could heal 129MP with 6 cotton candy skoshe for 5102.6665 meat.
> testing cotton candy smidgen...
 > Could heal 129MP with 8 cotton candy smidgen for 12900.0 meat.
> testing delicious shimmering moth...
> testing fizzy potion...
 > Could heal 129MP with 13 fizzy potion for 4037.7 meat.
> testing green pixel potion...
 > Could heal 129MP with 4 green pixel potion for 1839.1714 meat.
> testing high-pressure seltzer bottle...
 > Could heal 129MP with 1 high-pressure seltzer bottle for 950.9143 meat.
> testing honey-dipped locust...
 > Could heal 129MP with 4 honey-dipped locust for 860.0 meat.
> testing magical mystery juice...
> testing natural fennel soda...
 > Could heal 129MP with 2 natural fennel soda for 967.5 meat.
> testing palm frond...
 > Could heal 129MP with 7 palm frond for 645.0 meat.
> testing palm-frond fan...
 > Could heal 129MP with 4 palm-frond fan for 645.0 meat.
> testing phonics down...
 > Could heal 129MP with 3 phonics down for 618.125 meat.
> testing six-pack of New Cloaca-Cola...
 > Could heal 129MP with 1 six-pack of New Cloaca-Cola for 4013.3333 meat.
> testing soda water...
 > Could heal 129MP with 33 soda water for 2257.5 meat.
> testing sugar shard...
 > Could heal 129MP with 18 sugar shard for 1720.0001 meat.
> testing tiny house...
 > Could heal 129MP with 6 tiny house for 1254.8182 meat.
> testing tonic water...
 > Could heal 129MP with 4 tonic water for 5805.0 meat.
> testing unrefined Mountain Stream syrup...
 > Could heal 129MP with 3 unrefined Mountain Stream syrup for 1114.0908 meat.
 > In mallmode, best MP restorative is: carbonated water lily @ 337.3846 meat total.
 > Trying to use 2 carbonated water lily

buy 2 carbonated water lily for 170 each from 1230303 on 20100723
You acquire carbonated water lily (2)

use 2 carbonated water lily
You gain 125 Muscularity Points
 > Current HP: 1236, MP: 192
 > To heal with Doc Galaktik would cost 68.0 meat. Now to beat that price...
> testing Blatantly Canadian...
 > Could heal 4MP with 1 Blatantly Canadian for 26.666668 meat.
 > Blatantly Canadian is now the best for restoring MP.
> testing Cherry Cloaca Cola...
 > Could heal 4MP with 1 Cherry Cloaca Cola for 40.0 meat.
> testing Cloaca-Cola...
 > Could heal 4MP with 1 Cloaca-Cola for 34.666668 meat.
> testing Diet Cloaca Cola...
 > Could heal 4MP with 1 Diet Cloaca Cola for 40.0 meat.
> testing Dyspepsi-Cola...
 > Could heal 4MP with 1 Dyspepsi-Cola for 34.666668 meat.
> testing Knob Goblin seltzer...
 > Could heal 4MP with 1 Knob Goblin seltzer for 32.0 meat.
> testing Knob Goblin superseltzer...
 > Could heal 4MP with 1 Knob Goblin superseltzer for 29.333334 meat.
> testing Monstar energy beverage...
 > Could heal 4MP with 1 Monstar energy beverage for 25.333334 meat.
 > Monstar energy beverage is now the best for restoring MP.
> testing Mountain Stream soda...
 > Could heal 4MP with 1 Mountain Stream soda for 61.86667 meat.
> testing Nardz energy beverage...
 > Could heal 4MP with 1 Nardz energy beverage for 20.123077 meat.
 > Nardz energy beverage is now the best for restoring MP.
> testing New Cloaca-Cola...
 > Could heal 4MP with 1 New Cloaca-Cola for 93.333336 meat.
> testing Regular Cloaca Cola...
 > Could heal 4MP with 1 Regular Cloaca Cola for 40.0 meat.
> testing Wint-O-Fresh mint...
 > Could heal 4MP with 1 Wint-O-Fresh mint for 100.0 meat.
> testing Wolfman Nardz...
 > Could heal 4MP with 1 Wolfman Nardz for 20.800001 meat.
> testing ancient Magi-Wipes...
 > Could heal 4MP with 1 ancient Magi-Wipes for 12.727272 meat.
 > ancient Magi-Wipes is now the best for restoring MP.
> testing banana spritzer...
 > Could heal 4MP with 1 banana spritzer for 188.57143 meat.
> testing black cherry soda...
 > Could heal 4MP with 1 black cherry soda for 32.0 meat.
> testing blue pixel potion...
 > Could heal 4MP with 1 blue pixel potion for 42.76923 meat.
> testing bottle of Monsieur Bubble...
 > Could heal 4MP with 1 bottle of Monsieur Bubble for 41.454544 meat.
> testing bottle of Vangoghbitussin...
 > Could heal 4MP with 1 bottle of Vangoghbitussin for 22.039999 meat.
> testing carbonated soy milk...
 > Could heal 4MP with 1 carbonated soy milk for 22.666668 meat.
> testing carbonated water lily...
 > Could heal 4MP with 1 carbonated water lily for 10.461538 meat.
 > carbonated water lily is now the best for restoring MP.
> testing cotton candy bale...
 > Could heal 4MP with 1 cotton candy bale for 22.764227 meat.
> testing cotton candy cone...
 > Could heal 4MP with 1 cotton candy cone for 19.487179 meat.
> testing cotton candy pillow...
 > Could heal 4MP with 1 cotton candy pillow for 22.745098 meat.
> testing cotton candy pinch...
 > Could heal 4MP with 1 cotton candy pinch for 133.33334 meat.
> testing cotton candy plug...
 > Could heal 4MP with 1 cotton candy plug for 414.0351 meat.
> testing cotton candy skoshe...
 > Could heal 4MP with 1 cotton candy skoshe for 158.22223 meat.
> testing cotton candy smidgen...
 > Could heal 4MP with 1 cotton candy smidgen for 400.0 meat.
> testing delicious shimmering moth...
> testing fizzy potion...
 > Could heal 4MP with 1 fizzy potion for 125.200005 meat.
> testing green pixel potion...
 > Could heal 4MP with 1 green pixel potion for 57.028572 meat.
> testing high-pressure seltzer bottle...
 > Could heal 4MP with 1 high-pressure seltzer bottle for 29.485714 meat.
> testing honey-dipped locust...
 > Could heal 4MP with 1 honey-dipped locust for 26.666668 meat.
> testing magical mystery juice...
> testing natural fennel soda...
 > Could heal 4MP with 1 natural fennel soda for 30.0 meat.
> testing palm frond...
 > Could heal 4MP with 1 palm frond for 20.0 meat.
> testing palm-frond fan...
 > Could heal 4MP with 1 palm-frond fan for 20.0 meat.
> testing phonics down...
 > Could heal 4MP with 1 phonics down for 19.166668 meat.
> testing six-pack of New Cloaca-Cola...
 > Could heal 4MP with 1 six-pack of New Cloaca-Cola for 124.44445 meat.
> testing soda water...
 > Could heal 4MP with 1 soda water for 70.0 meat.
> testing sugar shard...
 > Could heal 4MP with 1 sugar shard for 53.333336 meat.
> testing tiny house...
 > Could heal 4MP with 1 tiny house for 38.909092 meat.
> testing tonic water...
 > Could heal 4MP with 1 tonic water for 180.0 meat.
> testing unrefined Mountain Stream syrup...
 > Could heal 4MP with 1 unrefined Mountain Stream syrup for 34.545452 meat.
 > In mallmode, best MP restorative is: carbonated water lily @ 10.461538 meat total.
 > Trying to use 1 carbonated water lily

buy 1 carbonated water lily for 170 each from 1230303 on 20100723
You acquire an item: carbonated water lily

use 1 carbonated water lily
You gain 64 Muscularity Points
 > Current HP: 1236, MP: 201
 > Current HP: 1236, MP: 201
 > To heal with Doc Galaktik would cost 20660.0 meat. Now to beat that price...
> testing Doc Galaktik's Ailment Ointment...
 > Could heal 2066HP with 230 Doc Galaktik's Ailment Ointment for 13773.333 meat.
 > Doc Galaktik's Ailment Ointment is now the best for restoring HP.
> testing Doc Galaktik's Homeopathic Elixir...
 > Could heal 2066HP with 109 Doc Galaktik's Homeopathic Elixir for 26096.842 meat.
> testing Doc Galaktik's Pungent Unguent...
 > Could heal 2066HP with 517 Doc Galaktik's Pungent Unguent for 15495.0 meat.
> testing Doc Galaktik's Restorative Balm...
 > Could heal 2066HP with 148 Doc Galaktik's Restorative Balm for 17708.57 meat.
> testing Medicinal Herb's medicinal herbs...
> testing ancient Magi-Wipes...
 > Could heal 2066HP with 38 ancient Magi-Wipes for 6573.636 meat.
 > ancient Magi-Wipes is now the best for restoring HP.
> testing ancient turtle shell powder...
 > Could heal 2066HP with 27 ancient turtle shell powder for 132435.89 meat.
> testing bottle of Vangoghbitussin...
 > Could heal 2066HP with 21 bottle of Vangoghbitussin for 11383.66 meat.
> testing cast...
 > Could heal 2066HP with 119 cast for 11805.715 meat.
> testing cotton candy bale...
 > Could heal 2066HP with 34 cotton candy bale for 11757.723 meat.
> testing cotton candy cone...
 > Could heal 2066HP with 53 cotton candy cone for 10065.128 meat.
> testing cotton candy pillow...
 > Could heal 2066HP with 41 cotton candy pillow for 11747.843 meat.
> testing cotton candy pinch...
 > Could heal 2066HP with 230 cotton candy pinch for 91822.23 meat.
> testing cotton candy plug...
 > Could heal 2066HP with 73 cotton candy plug for 213849.12 meat.
> testing cotton candy skoshe...
 > Could heal 2066HP with 92 cotton candy skoshe for 81721.77 meat.
> testing cotton candy smidgen...
 > Could heal 2066HP with 122 cotton candy smidgen for 206600.0 meat.
> testing filthy poultice...
 > Could heal 2066HP with 21 filthy poultice for 3512.2 meat.
 > filthy poultice is now the best for restoring HP.
> testing fizzy potion...
 > Could heal 2066HP with 207 fizzy potion for 64665.8 meat.
> testing forest tears...
 > Could heal 2066HP with 276 forest tears for 549280.56 meat.
> testing gauze garter...
 > Could heal 2066HP with 21 gauze garter for 3512.2 meat.
> testing green pixel potion...
 > Could heal 2066HP with 42 green pixel potion for 20618.68 meat.
> testing honey-dipped locust...
 > Could heal 2066HP with 60 honey-dipped locust for 13576.571 meat.
> testing mummy wrapping...
 > Could heal 2066HP with 38 mummy wrapping for 4394.9453 meat.
> testing palm frond...
 > Could heal 2066HP with 104 palm frond for 10330.0 meat.
> testing palm-frond fan...
 > Could heal 2066HP with 52 palm-frond fan for 10330.0 meat.
> testing phonics down...
 > Could heal 2066HP with 44 phonics down for 9899.584 meat.
> testing pixellated candy heart...
 > Could heal 2066HP with 460 pixellated candy heart for 188235.56 meat.
> testing plump juicy grub...
> testing really thick bandage...
 > Could heal 2066HP with 19 really thick bandage for 5634.5454 meat.
> testing red pixel potion...
 > Could heal 2066HP with 19 red pixel potion for 17373.182 meat.
> testing scented massage oil...
 > Could heal 2066HP with 1 scented massage oil for 5400.0 meat.
> testing scroll of drastic healing...
 > Could heal 2066HP with 1 scroll of drastic healing for 566.6667 meat.
 > scroll of drastic healing is now the best for restoring HP.
> testing sugar shard...
 > Could heal 2066HP with 138 sugar shard for 13773.334 meat.
> testing tiny house...
 > Could heal 2066HP with 94 tiny house for 20096.545 meat.
 > In mallmode, best HP restorative is: scroll of drastic healing @ 566.6667 meat total.
 > To heal with Doc Galaktik would cost 850.0 meat. Now to beat that price...
> testing Blatantly Canadian...
 > Could heal 50MP with 3 Blatantly Canadian for 333.33334 meat.
 > Blatantly Canadian is now the best for restoring MP.
> testing Cherry Cloaca Cola...
 > Could heal 50MP with 7 Cherry Cloaca Cola for 500.0 meat.
> testing Cloaca-Cola...
 > Could heal 50MP with 5 Cloaca-Cola for 433.3333 meat.
> testing Diet Cloaca Cola...
 > Could heal 50MP with 7 Diet Cloaca Cola for 500.0 meat.
> testing Dyspepsi-Cola...
 > Could heal 50MP with 5 Dyspepsi-Cola for 433.3333 meat.
> testing Knob Goblin seltzer...
 > Could heal 50MP with 5 Knob Goblin seltzer for 400.0 meat.
> testing Knob Goblin superseltzer...
 > Could heal 50MP with 2 Knob Goblin superseltzer for 366.66666 meat.
> testing Monstar energy beverage...
 > Could heal 50MP with 1 Monstar energy beverage for 316.6667 meat.
 > Monstar energy beverage is now the best for restoring MP.
> testing Mountain Stream soda...
 > Could heal 50MP with 7 Mountain Stream soda for 773.3333 meat.
> testing Nardz energy beverage...
 > Could heal 50MP with 1 Nardz energy beverage for 251.53847 meat.
 > Nardz energy beverage is now the best for restoring MP.
> testing New Cloaca-Cola...
 > Could heal 50MP with 1 New Cloaca-Cola for 1166.6667 meat.
> testing Regular Cloaca Cola...
 > Could heal 50MP with 7 Regular Cloaca Cola for 500.0 meat.
> testing Wint-O-Fresh mint...
 > Could heal 50MP with 13 Wint-O-Fresh mint for 1250.0 meat.
> testing Wolfman Nardz...
 > Could heal 50MP with 1 Wolfman Nardz for 260.0 meat.
> testing ancient Magi-Wipes...
 > Could heal 50MP with 1 ancient Magi-Wipes for 159.09091 meat.
 > ancient Magi-Wipes is now the best for restoring MP.
> testing banana spritzer...
 > Could heal 50MP with 1 banana spritzer for 2357.1428 meat.
> testing black cherry soda...
 > Could heal 50MP with 5 black cherry soda for 400.0 meat.
> testing blue pixel potion...
 > Could heal 50MP with 1 blue pixel potion for 534.6154 meat.
> testing bottle of Monsieur Bubble...
 > Could heal 50MP with 1 bottle of Monsieur Bubble for 518.1818 meat.
> testing bottle of Vangoghbitussin...
 > Could heal 50MP with 1 bottle of Vangoghbitussin for 275.5 meat.
> testing carbonated soy milk...
 > Could heal 50MP with 1 carbonated soy milk for 283.33334 meat.
> testing carbonated water lily...
 > Could heal 50MP with 1 carbonated water lily for 130.76923 meat.
 > carbonated water lily is now the best for restoring MP.
> testing cotton candy bale...
 > Could heal 50MP with 1 cotton candy bale for 284.55286 meat.
> testing cotton candy cone...
 > Could heal 50MP with 2 cotton candy cone for 243.58975 meat.
> testing cotton candy pillow...
 > Could heal 50MP with 1 cotton candy pillow for 284.31372 meat.
> testing cotton candy pinch...
 > Could heal 50MP with 5 cotton candy pinch for 1666.6666 meat.
> testing cotton candy plug...
 > Could heal 50MP with 2 cotton candy plug for 5175.4385 meat.
> testing cotton candy skoshe...
 > Could heal 50MP with 3 cotton candy skoshe for 1977.7778 meat.
> testing cotton candy smidgen...
 > Could heal 50MP with 3 cotton candy smidgen for 5000.0 meat.
> testing delicious shimmering moth...
> testing fizzy potion...
 > Could heal 50MP with 5 fizzy potion for 1565.0 meat.
> testing green pixel potion...
 > Could heal 50MP with 2 green pixel potion for 712.8572 meat.
> testing high-pressure seltzer bottle...
 > Could heal 50MP with 1 high-pressure seltzer bottle for 368.57144 meat.
> testing honey-dipped locust...
 > Could heal 50MP with 2 honey-dipped locust for 333.33334 meat.
> testing magical mystery juice...
> testing natural fennel soda...
 > Could heal 50MP with 1 natural fennel soda for 375.0 meat.
> testing palm frond...
 > Could heal 50MP with 3 palm frond for 250.0 meat.
> testing palm-frond fan...
 > Could heal 50MP with 2 palm-frond fan for 250.0 meat.
> testing phonics down...
 > Could heal 50MP with 2 phonics down for 239.58333 meat.
> testing six-pack of New Cloaca-Cola...
 > Could heal 50MP with 1 six-pack of New Cloaca-Cola for 1555.5555 meat.
> testing soda water...
 > Could heal 50MP with 13 soda water for 875.0 meat.
> testing sugar shard...
 > Could heal 50MP with 7 sugar shard for 666.6666 meat.
> testing tiny house...
 > Could heal 50MP with 3 tiny house for 486.36362 meat.
> testing tonic water...
 > Could heal 50MP with 2 tonic water for 2250.0 meat.
> testing unrefined Mountain Stream syrup...
 > Could heal 50MP with 1 unrefined Mountain Stream syrup for 431.8182 meat.
 > In mallmode, best MP restorative is: carbonated water lily @ 130.76923 meat total.
 > Mall price to restore 196MP is 513 meat.
 > Cast a healing skill.

cast 20 Tongue of the Walrus
You gain 711 hit points
 > Calling Universal Recovery for type=MP, amount=80
 > Restoring MP! Currently at 1947 of 3668 HP, 1 of 201 MP, current meat: 38953361 ... Target MP = 81.
 > To heal with Doc Galaktik would cost 1360.0 meat. Now to beat that price...
> testing Blatantly Canadian...
 > Could heal 80MP with 4 Blatantly Canadian for 533.3333 meat.
 > Blatantly Canadian is now the best for restoring MP.
> testing Cherry Cloaca Cola...
 > Could heal 80MP with 10 Cherry Cloaca Cola for 800.0 meat.
> testing Cloaca-Cola...
 > Could heal 80MP with 7 Cloaca-Cola for 693.3333 meat.
> testing Diet Cloaca Cola...
 > Could heal 80MP with 10 Diet Cloaca Cola for 800.0 meat.
> testing Dyspepsi-Cola...
 > Could heal 80MP with 7 Dyspepsi-Cola for 693.3333 meat.
> testing Knob Goblin seltzer...
 > Could heal 80MP with 8 Knob Goblin seltzer for 640.0 meat.
> testing Knob Goblin superseltzer...
 > Could heal 80MP with 3 Knob Goblin superseltzer for 586.6666 meat.
> testing Monstar energy beverage...
 > Could heal 80MP with 2 Monstar energy beverage for 506.6667 meat.
 > Monstar energy beverage is now the best for restoring MP.
> testing Mountain Stream soda...
 > Could heal 80MP with 11 Mountain Stream soda for 1237.3334 meat.
> testing Nardz energy beverage...
 > Could heal 80MP with 2 Nardz energy beverage for 402.46155 meat.
 > Nardz energy beverage is now the best for restoring MP.
> testing New Cloaca-Cola...
 > Could heal 80MP with 1 New Cloaca-Cola for 1866.6667 meat.
> testing Regular Cloaca Cola...
 > Could heal 80MP with 10 Regular Cloaca Cola for 800.0 meat.
> testing Wint-O-Fresh mint...
 > Could heal 80MP with 20 Wint-O-Fresh mint for 2000.0 meat.
> testing Wolfman Nardz...
 > Could heal 80MP with 1 Wolfman Nardz for 416.0 meat.
> testing ancient Magi-Wipes...
 > Could heal 80MP with 2 ancient Magi-Wipes for 254.54546 meat.
 > ancient Magi-Wipes is now the best for restoring MP.
> testing banana spritzer...
 > Could heal 80MP with 2 banana spritzer for 3771.4287 meat.
> testing black cherry soda...
 > Could heal 80MP with 8 black cherry soda for 640.0 meat.
> testing blue pixel potion...
 > Could heal 80MP with 2 blue pixel potion for 855.38464 meat.
> testing bottle of Monsieur Bubble...
 > Could heal 80MP with 2 bottle of Monsieur Bubble for 829.09094 meat.
> testing bottle of Vangoghbitussin...
 > Could heal 80MP with 1 bottle of Vangoghbitussin for 440.80002 meat.
> testing carbonated soy milk...
 > Could heal 80MP with 2 carbonated soy milk for 453.33334 meat.
> testing carbonated water lily...
 > Could heal 80MP with 2 carbonated water lily for 209.23077 meat.
 > carbonated water lily is now the best for restoring MP.
> testing cotton candy bale...
 > Could heal 80MP with 2 cotton candy bale for 455.28455 meat.
> testing cotton candy cone...
 > Could heal 80MP with 3 cotton candy cone for 389.74362 meat.
> testing cotton candy pillow...
 > Could heal 80MP with 2 cotton candy pillow for 454.90198 meat.
> testing cotton candy pinch...
 > Could heal 80MP with 7 cotton candy pinch for 2666.6665 meat.
> testing cotton candy plug...
 > Could heal 80MP with 3 cotton candy plug for 8280.702 meat.
> testing cotton candy skoshe...
 > Could heal 80MP with 4 cotton candy skoshe for 3164.4446 meat.
> testing cotton candy smidgen...
 > Could heal 80MP with 5 cotton candy smidgen for 8000.0005 meat.
> testing delicious shimmering moth...
> testing fizzy potion...
 > Could heal 80MP with 8 fizzy potion for 2504.0 meat.
> testing green pixel potion...
 > Could heal 80MP with 3 green pixel potion for 1140.5715 meat.
> testing high-pressure seltzer bottle...
 > Could heal 80MP with 1 high-pressure seltzer bottle for 589.7143 meat.
> testing honey-dipped locust...
 > Could heal 80MP with 3 honey-dipped locust for 533.3333 meat.
> testing magical mystery juice...
> testing natural fennel soda...
 > Could heal 80MP with 1 natural fennel soda for 600.0 meat.
> testing palm frond...
 > Could heal 80MP with 4 palm frond for 400.0 meat.
> testing palm-frond fan...
 > Could heal 80MP with 2 palm-frond fan for 400.0 meat.
> testing phonics down...
 > Could heal 80MP with 2 phonics down for 383.3333 meat.
> testing six-pack of New Cloaca-Cola...
 > Could heal 80MP with 1 six-pack of New Cloaca-Cola for 2488.889 meat.
> testing soda water...
 > Could heal 80MP with 20 soda water for 1400.0 meat.
> testing sugar shard...
 > Could heal 80MP with 11 sugar shard for 1066.6667 meat.
> testing tiny house...
 > Could heal 80MP with 4 tiny house for 778.1818 meat.
> testing tonic water...
 > Could heal 80MP with 2 tonic water for 3600.0 meat.
> testing unrefined Mountain Stream syrup...
 > Could heal 80MP with 2 unrefined Mountain Stream syrup for 690.9091 meat.
 > In mallmode, best MP restorative is: carbonated water lily @ 209.23077 meat total.
 > Trying to use 2 carbonated water lily

buy 2 carbonated water lily for 170 each from 1230303 on 20100723
You acquire carbonated water lily (2)

use 2 carbonated water lily
You gain 127 Muscularity Points
 > Current HP: 1947, MP: 128
 > My meat: 38953021. Should be successfully healed...

cast 8 Tongue of the Walrus
You gain 277 hit points
 > Current HP: 2224, MP: 48
 > To heal with Doc Galaktik would cost 10780.0 meat. Now to beat that price...
> testing Doc Galaktik's Ailment Ointment...
 > Could heal 1078HP with 120 Doc Galaktik's Ailment Ointment for 7186.6665 meat.
 > Doc Galaktik's Ailment Ointment is now the best for restoring HP.
> testing Doc Galaktik's Homeopathic Elixir...
 > Could heal 1078HP with 57 Doc Galaktik's Homeopathic Elixir for 13616.843 meat.
> testing Doc Galaktik's Pungent Unguent...
 > Could heal 1078HP with 270 Doc Galaktik's Pungent Unguent for 8085.0 meat.
> testing Doc Galaktik's Restorative Balm...
 > Could heal 1078HP with 77 Doc Galaktik's Restorative Balm for 9240.0 meat.
> testing Medicinal Herb's medicinal herbs...
> testing ancient Magi-Wipes...
 > Could heal 1078HP with 20 ancient Magi-Wipes for 3430.0 meat.
 > ancient Magi-Wipes is now the best for restoring HP.
> testing ancient turtle shell powder...
 > Could heal 1078HP with 14 ancient turtle shell powder for 69102.56 meat.
> testing bottle of Vangoghbitussin...
 > Could heal 1078HP with 11 bottle of Vangoghbitussin for 5939.78 meat.
> testing cast...
 > Could heal 1078HP with 62 cast for 6160.0 meat.
> testing cotton candy bale...
 > Could heal 1078HP with 18 cotton candy bale for 6134.9595 meat.
> testing cotton candy cone...
 > Could heal 1078HP with 28 cotton candy cone for 5251.795 meat.
> testing cotton candy pillow...
 > Could heal 1078HP with 22 cotton candy pillow for 6129.8037 meat.
> testing cotton candy pinch...
 > Could heal 1078HP with 120 cotton candy pinch for 47911.113 meat.
> testing cotton candy plug...
 > Could heal 1078HP with 38 cotton candy plug for 111582.46 meat.
> testing cotton candy skoshe...
 > Could heal 1078HP with 48 cotton candy skoshe for 42640.887 meat.
> testing cotton candy smidgen...
 > Could heal 1078HP with 64 cotton candy smidgen for 107800.0 meat.
> testing filthy poultice...
 > Could heal 1078HP with 11 filthy poultice for 1832.6 meat.
 > filthy poultice is now the best for restoring HP.
> testing fizzy potion...
 > Could heal 1078HP with 108 fizzy potion for 33741.402 meat.
> testing forest tears...
 > Could heal 1078HP with 144 forest tears for 286604.28 meat.
> testing gauze garter...
 > Could heal 1078HP with 11 gauze garter for 1832.6 meat.
> testing green pixel potion...
 > Could heal 1078HP with 22 green pixel potion for 10758.439 meat.
> testing honey-dipped locust...
 > Could heal 1078HP with 31 honey-dipped locust for 7084.0 meat.
> testing mummy wrapping...
 > Could heal 1078HP with 20 mummy wrapping for 2293.2 meat.
> testing palm frond...
 > Could heal 1078HP with 54 palm frond for 5390.0 meat.
> testing palm-frond fan...
 > Could heal 1078HP with 27 palm-frond fan for 5390.0 meat.
> testing phonics down...
 > Could heal 1078HP with 23 phonics down for 5165.417 meat.
> testing pixellated candy heart...
 > Could heal 1078HP with 240 pixellated candy heart for 98217.78 meat.
> testing plump juicy grub...
> testing really thick bandage...
 > Could heal 1078HP with 10 really thick bandage for 2940.0 meat.
> testing red pixel potion...
 > Could heal 1078HP with 10 red pixel potion for 9065.0 meat.
> testing scented massage oil...
 > Could heal 1078HP with 1 scented massage oil for 5400.0 meat.
> testing scroll of drastic healing...
 > Could heal 1078HP with 1 scroll of drastic healing for 566.6667 meat.
 > scroll of drastic healing is now the best for restoring HP.
> testing sugar shard...
 > Could heal 1078HP with 72 sugar shard for 7186.667 meat.
> testing tiny house...
 > Could heal 1078HP with 49 tiny house for 10486.0 meat.
 > In mallmode, best HP restorative is: scroll of drastic healing @ 566.6667 meat total.
 > Trying to use 1 scroll of drastic healing

buy 1 scroll of drastic healing for 850 each from 1986733 on 20100723
You acquire an item: scroll of drastic healing

use 1 scroll of drastic healing
 > Current HP: 3668, MP: 48
 > My meat: 38952171. Should be successfully healed...
 > Calling Universal Recovery for type=MP, amount=0
I do think I am very confused here
It looks like it is running multiple instances of Universal Recovery at one time so it is hard for me to follow.

Looks like it:
Heals MP
Uses MP to heal HP
Heals MP
Uses MP to heal HP
Heals MP
Uses Scroll of drastic healing to heal HP

It could have saved me some meat by using the scroll first then healing MP, right?
 

slyz

Developer
It could have saved me some meat by using the scroll first then healing MP, right?
People were complaining that UR would restore HP (with a scroll for example), then restore MP with an item that also restores HP, thus wasting the HP part of the MP restore. This is why a bit of MP is restored before the actual HP restoring process starts.

What happened was:
Code:
1) Restored MP to your minimum MP target (in case some HP is restored in the process)
2) Looks for the cheapest HP restore you can buy in the mall (in the case, scroll of drastic healing @ 566.6667 meat)
3) Looks up the price of buying enough MP to restore with your cheapest skill (Tongue of the Walrus): [B]Mall price to restore 196MP is 513 meat.[/B]
4) Decides that using the skill is cheaper
-> restores MP
-> checks if HP was restored, and if casting is still the cheapest option
-> casts 20 Tongue
The script then cycles from 2 to 4 until HP is healed.

The problem comes from the script thinking that it takes 20 casts of Tongue to restore the target HP. This comes from line 627:
PHP:
q_skill = cast_quant(best_skill, target).ceil();
cast_quant() returns either the number of casts needed to meet the target, either the maximum number of casts that you can do with your current Max MP. The problem is that, when you compare the price of different options, it should only return the total number of casts needed. I guess cast_quant() could be replaced with:
PHP:
// How many times do I need to cast the skill?
float cast_quant_total(skill it, int target){
	if(it == $skill[none] || skills[it].mp > my_maxmp()) return 0;
	float q = to_float(target - my_hp())/ skills[it].ave;
	return max(q, 1.0);
}

float cast_quant(skill it, int target){
	float q = min( cast_quant_total(it,target), floor(my_maxmp() / skills[it].mp) );
	return max(q, 1.0);
}
Then Bale would have to go through all the places where cast_quant() is called, and decide if cast_quant_total() is supposed to be called instead.

EDIT:
In this case, it's just a matter of changing lines 472-477 to the snippet above, and then replacing q_skill by cast_quant_total(best_skill, target).ceil() in line 635
 
Last edited:

Bale

Minion
That's kinda nice. I wish I'd realized that previously. You've really got a handle on this script.

Universal recovery v 3.73 released!


Changelog:
Universal Recovery version 3.74 July 24, 2010
  • Fix a bug in mallmode that caused mis-evaluation of multiple casting of heal skills past MaxMP.
    Okay, it's hard to explain, but slyz fixed it.
 
Last edited:

Bale

Minion
Just noticed that slyz's fix allows a division by 0 error. Fixed it. If you downloaded in the last 30 minutes (and you have no healing skills), you'll want to re-download.
 

icon315

Member
ok i keep getting:
Restoring MP! Currently at 1125 of 1125 HP, 751 of 1126 MP, current meat: 190750 ... Target MP = 563.

but it doesn't heal in any way
 

Bale

Minion
Actuall, slyz, he's got a point. That's the message at the top of mp_heal() heal which should only be called if((objective != 0 && my_mp() <= amount) || (objective == 0 && my_mp()<= mp_autoheal)) or if mp is needed while healing hp. Something is wrong.

icon315, could you copy-paste your CLI around that area so I can see how/why UR was called. Also, tell me relevant information about your healing settings: Are you in aftercore, what are your MP restoration trigger and target level and what healing skills do you possess?
 

icon315

Member
i think i figured it out, the mp auto heal trigger was set to 80%, but the heal to was set to 50%
 
Last edited:
I've been using this script for a long time, and I'd just like to say thanks for it, and for continuing to actually support and fix bugs on it! Can't say how much it's helped my runs
 

Bale

Minion
It's been a while since I've gotten gratitude instead of bug reports. I appreciate your feelings. You're very welcome.
 

fronobulax

Developer
Staff member
It's been a while since I've gotten gratitude instead of bug reports. I appreciate your feelings. You're very welcome.
Well I really like it and I hope all my comments have been viewed as praise combined with feature requests and not Bug Reports ;-)

While I have your attention...

I did notice the following when running from the relay browser. I think I would have expected Trouble to be true after the failure to restore.

Code:
Restoring HP! Currently at 1 of 38 HP, 67 of 93 MP, current meat: 40 ... Target HP = 29.
Insufficient meat to fully restore HP without wasting restoratives!
baleUr_Trouble => true
Did not fully restore HP for some reason.
baleUr_Trouble => false

Thanks.
 

Bale

Minion
I did notice the following when running from the relay browser. I think I would have expected Trouble to be true after the failure to restore.

Oh heck. I should have expected THAT! What a silly error. What happened is that it failed to restore HP and set baleUr_Trouble to true. Then it checked for Mp restoration and everything was happy~ happy~ so it set it false. LoL! That makes the setting rather pointless. I'm going to have to replace the flag with two separate flags: baleUr_HPtrouble and baleUr_MPtrouble. K? Until I release you can copy-paste this into the script at line 1589-1594:

Code:
		if(!restore(type, amount)) {
			set_property("baleUr_"+type+"trouble", "true");
			print("Did not fully restore "+ type + " for some reason.", "red");
		} else if(have_effect($effect[Beaten Up])>0) {
			set_property("baleUr_"+type+"trouble", "true");
		} else set_property("baleUr_"+type+"trouble", "false");



My gratitude to you is continuous, consider it a new "thank you" post every time you visit the forum.

I do, I do. I know that nobody would report bugs unless the script was helping them. It was just rather nice to hear someone explicitly say it.
 
Last edited:

Terrabull

Member
Heh, I would probably be a little less likely to only report bugs if i wasn't the bug-solver for my clan.
I have recommended this script to several of my clan mates and flat out told them "Download Universal Recovery, or I'm not going to help you solve your restoration problems."
I haven't used Mafia's built in one in so long I'm starting to forget how it works.
 

Veracity

Developer
Staff member
I haven't used Mafia's built in one in so long I'm starting to forget how it works.
Works well enough for me. I don't need no stinkin' 3rd party add-ons. I play KoLmafia the way the designers INTENDED it to be played!

Wait. Haven't I heard people use that same argument as a reason to reject using KoLmaia as opposed to playing raw KoL in their browser?

;)
 
Top