gCLI said:Restoring HP! Currently at 340 of 3795 HP, 35 of 7597 MP, current meat: 3086077 ... Target HP = 3795.
Using 16 magical mystery juice...
You gain 670 Mana Points
Finished using 16 magical mystery juice.
Casting Tongue of the Walrus 98 times...
You gain 3,431 hit points
Tongue of the Walrus was successfully cast.
Casting Tongue of the Walrus 1 times...
You gain 36 hit points
Tongue of the Walrus was successfully cast.
Restoring MP! Currently at 3795 of 3795 HP, 12 of 7597 MP, current meat: 3086077 ... Target MP = 250.
Using 6 magical mystery juice...
You gain 253 Mana Points
Finished using 6 magical mystery juice.
bale said:Since the scroll is more expensive than 600 meat (current mall = 795), it will prefer to use the MMJ and hope you make more meat by selling your scrolls.
In aftercore the script will use whatever it believes to be cheapest. Such limitations only exist for ronin/hardcore use. The script compares the cost of purchasing all possible restoratives and then uses whatever gives the best ratio of meat per mp. It assumes that if you have more expensive restoratives in your inventory you'll want to sell them in the mall for enough meat to purchase a better value.
if(contains_text(hpAutoRecoveryItems, "free disco rest")
&& (numeric_modifier("Base Resting MP") >= 10 || my_path() == "Bees Hate You"))
while(to_int(get_property("timesRested")) < disco && my_hp()<target
&& my_maxhp() - my_hp() >=rest_hp && (DiscoResting == "hp" || my_maxmp() - my_mp() >= rest_mp))
cli_execute("rest");
if(contains_text(mpAutoRecoveryItems, "free disco rest")
&& (numeric_modifier("Base Resting MP") >= 10 || my_path() == "Bees Hate You"))
while(to_int(get_property("timesRested")) < disco && my_mp()<target
&& my_maxmp() - my_mp() >=rest_mp && (DiscoResting == "mp" || (my_maxhp() - my_hp())/2 >= rest_hp))
cli_execute("rest");
(my_maxhp() - my_hp())/2 >= rest_hp)
(my_maxhp() - my_hp())*2 >= rest_hp)
That abort/failed is when I hit escape to stop it. The debug log was a stack overflow from it trying to cast DPN several hundred/thousand times.Restoring MP! Currently at 132 of 357 HP, 3 of 136 MP, current meat: 1 ... Target MP = 12.
Insufficient meat to fully restore MP without wasting restoratives!
Restoring MP! Currently at 132 of 357 HP, 3 of 136 MP, current meat: 1 ... Target MP = 12.
Insufficient meat to fully restore MP without wasting restoratives!
Restoring MP! Currently at 132 of 357 HP, 3 of 136 MP, current meat: 1 ... Target MP = 12.
Insufficient meat to fully restore MP without wasting restoratives!
Restoring MP! Currently at 132 of 357 HP, 3 of 136 MP, current meat: 1 ... Target MP = 12.
Insufficient meat to fully restore MP without wasting restoratives!
Restoring MP! Currently at 132 of 357 HP, 3 of 136 MP, current meat: 1 ... Target MP = 12.
Insufficient meat to fully restore MP without wasting restoratives!
Restoring MP! Currently at 132 of 357 HP, 3 of 136 MP, current meat: 1 ... Target MP = 12.
Insufficient meat to fully restore MP without wasting restoratives!
Restoring MP! Currently at 132 of 357 HP, 3 of 136 MP, current meat: 1 ... Target MP = 12.
Insufficient meat to fully restore MP without wasting restoratives!
Restoring MP! Currently at 132 of 357 HP, 3 of 136 MP, current meat: 1 ... Target MP = 12.
Insufficient meat to fully restore MP without wasting restoratives!
Restoring MP! Currently at 132 of 357 HP, 3 of 136 MP, current meat: 1 ... Target MP = 12.
Insufficient meat to fully restore MP without wasting restoratives!
Restoring MP! Currently at 132 of 357 HP, 3 of 136 MP, current meat: 1 ... Target MP = 12.
Insufficient meat to fully restore MP without wasting restoratives!
Restoring MP! Currently at 132 of 357 HP, 3 of 136 MP, current meat: 1 ... Target MP = 12.
Insufficient meat to fully restore MP without wasting restoratives!
Restoring MP! Currently at 132 of 357 HP, 3 of 136 MP, current meat: 1 ... Target MP = 12.
Insufficient meat to fully restore MP without wasting restoratives!
Unexpected error, debug log printed.
Unexpected error, debug log printed.
Script execution aborted
Autorecovery failed.
Could not restore enough mana to cast Disco Power Nap.
KoLmafia declares world peace.
So... apparently it will loop if trying to remove bad effects and there isn't enough meat to do it?Restore 9 MP at Doc Galaktik's
You gain 9 Muscularity Points
You spent 108 Meat
Cure purchased.
Casting Disco Power Nap 1 times...
You gain 40 hit points
You lose an effect: Tenuous Grip on Reality
Disco Power Nap was successfully cast.
Restoring HP! Currently at 172 of 357 HP, 0 of 136 MP, current meat: 393 ... Target HP = 340.
Restoring MP! Currently at 172 of 357 HP, 0 of 136 MP, current meat: 393 ... Target MP = 37.
Visiting Doc Galaktik...
Restore 32 MP at Doc Galaktik's
You gain 32 Muscularity Points
You spent 384 Meat
Cure purchased.
Insufficient meat to fully restore MP without wasting restoratives!
_meatperhp => 3.4285715
Casting Tongue of the Walrus 1 times...
You gain 34 hit points
Tongue of the Walrus was successfully cast.
First of all, do you have "Free disco rest" checked in the Mafia HP/MP Usage tab, or in relay_Universal_Recovery.ash, and what is "Use free disco rests for" set to in relay_Universal_Recovery.ash?
- You authorized Mafia to use free rests for HP and/or MP
- You have a dwelling OR you are in a BHY run
- You have free rests left
- You HP/MP is lower than the target HP/MP
- You will not waste HP/MP by getting more than your max from resting
- "Use free disco rests for" is set to HP/MP OR you won't waste MP when resting to gain HP OR you won't gain more than half your missing HP when resting to gain MP
Try deleting recoveryScript_map_v2.txt from Mafia's /data folder.