Universal Recovery Script

Bale

Minion
It might help if I knew what the red message says. I can only guess that you don't have any meat and it is trying to purchase them. That's just a guess though.
 

stannius

Member
Sorry, here's the exact message:

Code:
[color=aqua]Restoring MP! Currently at 262 of 262 HP, 192 of 744 MP, current meat: 518831 ... Target MP 
= 224.[/color]
[color=red]You need 1 more six-pack of New Cloaca-Cola to continue.[/color]
Searching for "magical mystery juice"...
Purchasing magical mystery juice (2 @ 100)...
You acquire magical mystery juice (2)
You spent 200 Meat
Purchases complete.
Using 2 magical mystery juice...
You gain 52 Mana Points
Finished using 2 magical mystery juice.
_meatpermp => 3.6363637

I am in aftercore, with "Buy items from the mall whenever needed" turned off. I turned it on and this message stopped appearing. It still didn't buy any six packs. (It bought and used magi-wipes.)

This is not a critical issue - despite the red "error" message, the script continues and works beautifully!
 
This is not a critical issue - despite the red "error" message, the script continues and works beautifully!

Correction: this is a critical issue.

I have a number of experimental farming multis ("experimental" means they're not abusive) that I keep in a clan all of their own (to share a mall multi), and I'll often purchase restoratives in bulk for them to pull from the clan stash. Well, tonight, when we ran out of six-packs of New Cloaca-Cola (actually, we never had any to begin with, so I guess it was a change in the mall price that triggered this), all [multi] of them had a meltdown (in multiple instances of 8707 & 8708):

Code:
[COLOR="red"]You need 1 more six-pack of New Cloaca-Cola to continue.
You need 1 more six-pack of New Cloaca-Cola to continue.
You need 1 more six-pack of New Cloaca-Cola to continue.
You need 1 more six-pack of New Cloaca-Cola to continue.
You need 1 more six-pack of New Cloaca-Cola to continue.
You need 1 more six-pack of New Cloaca-Cola to continue.
You need 1 more six-pack of New Cloaca-Cola to continue.
You need 1 more six-pack of New Cloaca-Cola to continue.
You need 1 more six-pack of New Cloaca-Cola to continue.
You need 1 more six-pack of New Cloaca-Cola to continue.
You need 1 more six-pack of New Cloaca-Cola to continue.
You need 1 more six-pack of New Cloaca-Cola to continue.
You need 1 more six-pack of New Cloaca-Cola to continue.
You need 1 more six-pack of New Cloaca-Cola to continue.
You need 1 more six-pack of New Cloaca-Cola to continue.
You need 1 more six-pack of New Cloaca-Cola to continue.
You need 1 more six-pack of New Cloaca-Cola to continue.
You need 1 more six-pack of New Cloaca-Cola to continue.
You need 1 more six-pack of New Cloaca-Cola to continue.
You need 1 more six-pack of New Cloaca-Cola to continue.
You need 1 more six-pack of New Cloaca-Cola to continue.
You need 1 more six-pack of New Cloaca-Cola to continue.
You need 1 more six-pack of New Cloaca-Cola to continue.
You need 1 more six-pack of New Cloaca-Cola to continue.
You need 1 more six-pack of New Cloaca-Cola to continue.
You need 1 more six-pack of New Cloaca-Cola to continue.
You need 1 more six-pack of New Cloaca-Cola to continue.
You need 1 more six-pack of New Cloaca-Cola to continue.
You need 1 more six-pack of New Cloaca-Cola to continue.
You need 1 more six-pack of New Cloaca-Cola to continue.
You need 1 more six-pack of New Cloaca-Cola to continue.
You need 1 more six-pack of New Cloaca-Cola to continue.
You need 1 more six-pack of New Cloaca-Cola to continue.
You need 1 more six-pack of New Cloaca-Cola to continue.
You need 1 more six-pack of New Cloaca-Cola to continue.
You need 1 more six-pack of New Cloaca-Cola to continue.
You need 1 more six-pack of New Cloaca-Cola to continue.
You need 1 more six-pack of New Cloaca-Cola to continue.
You need 1 more six-pack of New Cloaca-Cola to continue.
You need 1 more six-pack of New Cloaca-Cola to continue.
You need 1 more six-pack of New Cloaca-Cola to continue.
You need 1 more six-pack of New Cloaca-Cola to continue.
You need 1 more six-pack of New Cloaca-Cola to continue.
You need 1 more six-pack of New Cloaca-Cola to continue.
You need 1 more six-pack of New Cloaca-Cola to continue.
You need 1 more six-pack of New Cloaca-Cola to continue.
You need 1 more six-pack of New Cloaca-Cola to continue.
You need 1 more six-pack of New Cloaca-Cola to continue.
You need 1 more six-pack of New Cloaca-Cola to continue.
You need 1 more six-pack of New Cloaca-Cola to continue.
You need 1 more six-pack of New Cloaca-Cola to continue.
You need 1 more six-pack of New Cloaca-Cola to continue.
You need 1 more six-pack of New Cloaca-Cola to continue.
You need 1 more six-pack of New Cloaca-Cola to continue.
You need 1 more six-pack of New Cloaca-Cola to continue.
You need 1 more six-pack of New Cloaca-Cola to continue.
You need 1 more six-pack of New Cloaca-Cola to continue.
You need 1 more six-pack of New Cloaca-Cola to continue.
You need 1 more six-pack of New Cloaca-Cola to continue.
You need 1 more six-pack of New Cloaca-Cola to continue.
You need 1 more six-pack of New Cloaca-Cola to continue.
You need 1 more six-pack of New Cloaca-Cola to continue.
You need 1 more six-pack of New Cloaca-Cola to continue.
You need 1 more six-pack of New Cloaca-Cola to continue.
You need 1 more six-pack of New Cloaca-Cola to continue.
You need 1 more six-pack of New Cloaca-Cola to continue.
You need 1 more six-pack of New Cloaca-Cola to continue.
You need 1 more six-pack of New Cloaca-Cola to continue.
You need 1 more six-pack of New Cloaca-Cola to continue.
You need 1 more six-pack of New Cloaca-Cola to continue.
You need 1 more six-pack of New Cloaca-Cola to continue.
You need 1 more six-pack of New Cloaca-Cola to continue.
You need 1 more six-pack of New Cloaca-Cola to continue.
You need 1 more six-pack of New Cloaca-Cola to continue.
You need 1 more six-pack of New Cloaca-Cola to continue.
You need 1 more six-pack of New Cloaca-Cola to continue.
You need 1 more six-pack of New Cloaca-Cola to continue.
You need 1 more six-pack of New Cloaca-Cola to continue.
You need 1 more six-pack of New Cloaca-Cola to continue.
You need 1 more six-pack of New Cloaca-Cola to continue.
You need 1 more six-pack of New Cloaca-Cola to continue.
You need 1 more six-pack of New Cloaca-Cola to continue.
You need 1 more six-pack of New Cloaca-Cola to continue.
You need 1 more six-pack of New Cloaca-Cola to continue.
You need 1 more six-pack of New Cloaca-Cola to continue.
You need 1 more six-pack of New Cloaca-Cola to continue.
You need 1 more six-pack of New Cloaca-Cola to continue.
You need 1 more six-pack of New Cloaca-Cola to continue.
You need 1 more six-pack of New Cloaca-Cola to continue.
You need 1 more six-pack of New Cloaca-Cola to continue.
You need 1 more six-pack of New Cloaca-Cola to continue.
You need 1 more six-pack of New Cloaca-Cola to continue.
You need 1 more six-pack of New Cloaca-Cola to continue.
You need 1 more six-pack of New Cloaca-Cola to continue.
You need 1 more six-pack of New Cloaca-Cola to continue.
You need 1 more six-pack of New Cloaca-Cola to continue.
You need 1 more six-pack of New Cloaca-Cola to continue.
You need 1 more six-pack of New Cloaca-Cola to continue.
You need 1 more six-pack of New Cloaca-Cola to continue.
You need 1 more six-pack of New Cloaca-Cola to continue.
You need 1 more six-pack of New Cloaca-Cola to continue.
You need 1 more six-pack of New Cloaca-Cola to continue.
You need 1 more six-pack of New Cloaca-Cola to continue.
You need 1 more six-pack of New Cloaca-Cola to continue.
You need 1 more six-pack of New Cloaca-Cola to continue.
You need 1 more six-pack of New Cloaca-Cola to continue.
You need 1 more six-pack of New Cloaca-Cola to continue.
You need 1 more six-pack of New Cloaca-Cola to continue.
You need 1 more six-pack of New Cloaca-Cola to continue.
You need 1 more six-pack of New Cloaca-Cola to continue.
You need 1 more six-pack of New Cloaca-Cola to continue.
You need 1 more six-pack of New Cloaca-Cola to continue.
You need 1 more six-pack of New Cloaca-Cola to continue.
You need 1 more six-pack of New Cloaca-Cola to continue.
You need 1 more six-pack of New Cloaca-Cola to continue.
You need 1 more six-pack of New Cloaca-Cola to continue.
You need 1 more six-pack of New Cloaca-Cola to continue.
You need 1 more six-pack of New Cloaca-Cola to continue.
You need 1 more six-pack of New Cloaca-Cola to continue.
You need 1 more six-pack of New Cloaca-Cola to continue.
You need 1 more six-pack of New Cloaca-Cola to continue.
You need 1 more six-pack of New Cloaca-Cola to continue.
You need 1 more six-pack of New Cloaca-Cola to continue.
You need 1 more six-pack of New Cloaca-Cola to continue.
You need 1 more six-pack of New Cloaca-Cola to continue.
You need 1 more six-pack of New Cloaca-Cola to continue.
You need 1 more six-pack of New Cloaca-Cola to continue.
You need 1 more six-pack of New Cloaca-Cola to continue.
You need 1 more six-pack of New Cloaca-Cola to continue.[/COLOR]

Were any of the multis out of meat? No. Were any of them out of restoratives? No (for example, one of the multis has over 1K sugar shards in inventory, an item which they all generate nightly, and I have persistently been unable to get Universal Recovery to use, along with over 500 Marquis de Poivre soda, same issue, alone with a single can of New Cloaca-Cola, and 4 cans of Knob Goblin superseltzer). My settings were to allow UR to purchase freely, as well as to prefer using inventory instead of the mall, regardless of value. When I removed the second setting, UR began purchasing restorative in the mall (not six-packs of New Cloaca-Cola, I might add).

So, what needs to be done to a) keep UR from freaking out about some particular restorable to the exclusion of all others, and b), since I'm here, how do I get UR to make use of my large quantities of Marquis de Poivre soda and sugar shards, which have minimal autosell value, and have no other value but to be used as restorables, prior to any other restorable for which I have to shell out meat?
 

xKiv

Active member
(snip)
b), since I'm here, how do I get UR to make use of my large quantities of Marquis de Poivre soda and sugar shards, which have minimal autosell value, and have no other value but to be used as restorables, prior to any other restorable for which I have to shell out meat?

Marquis de Poivre soda cannot be traded in the mall, so maybe it doesn't work for that reason? Or maybe UR thinks that 1 meat for 1 MP is not good enough, in which case you *would* want to autosell them to get more meat for more effective restorers.
Sugar shards cannot be autosold, but can be traded (but, apparently, there are none actually sold).
 

Bale

Minion
I'll try to find some time to work on your problem later. First please copy-paste what the CLI says when you type these commands:

Code:
get autoSatisfyWithMall
get autoSatisfyWithNPCs
get baleUr_Purchase
get baleUr_UseInventoryInMallmode

Incidentally, it won't use the soda because it cannot be traded in the mall, but perhaps that is wrong and should be fixed.

It won't use the sugar shards because it is checking their mall value to decide if you should use them. Perhaps you should sell them in the mall and buy better restoratives with that meat.
 
Last edited:

lostcalpolydude

Developer
Staff member
It won't use the sugar shards because it is checking their mall value to decide if you should use them. Perhaps you should sell them in the mall and buy better restoratives with that meat.

That's like telling someone to put their castle items in the mall to sell. They'll just sit there and collect dust.
 

Theraze

Active member
Well, if you put one in the mall for cheap, it'll knock down the mall price and make it more okay to be used... Just do one though, not the pile. :)
 

lostcalpolydude

Developer
Staff member
Like castle items, there are a bunch at mall minimum already. It can't go down. They aren't worth mall minimum, in other words, which is why an exception could be useful in this case.
 

Bale

Minion
Well, if you put one in the mall for cheap, it'll knock down the mall price and make it more okay to be used... Just do one though, not the pile. :)

Not really. Mall price on sugar shards is already at minimum.... Ick. They just don't restore much. Only 744 are at minimum price though, so they are not like castle items!
 

halfvoid

Member
Well, if you put one in the mall for cheap, it'll knock down the mall price and make it more okay to be used... Just do one though, not the pile. :)

I've had shards in the mall before without selling for about a year. I dump mine in bunches of 100 to kbay now. At least i get SOMETHING for them that way.
 

Theraze

Active member
How about another zlib boolean to make that items that you have in inventory that are selling for min value in the mall have a value of 1 as long as they're in your inventory. No buying masses of shards because of this, but use up the garbage you've got.
 

Bale

Minion
That sounds like a reasonable solution, actually. You might have noticed I haven't updated the script for a while. I'm not going to implement that tonight, but I'll try to make some time to dig back into this script soon so that I can get to work on coding your idea and trying to find a solution to Morgan's strange problem. Neither of those is simple. :)

Just know that I'm not ignoring it.
 

StDoodle

Minion
Bale! As much as a limit to anti-anti-antidotes kept on hand may be my "pet" request, here's one that would be more useful to the general user-base:

In the relay script, display a notification regarding whether the script is currently set as your recovery script, with an option to toggle it on or off! Thanks!
 

Winterbay

Active member
In the relay script, display a notification regarding whether the script is currently set as your recovery script, with an option to toggle it on or off! Thanks!

That would be great seeing as my mafia ricently lost its settings and I didnt' realise that for about 2 days :)
(You should not force exit Mafia when it is trying to do seomthign, so totally a user error I believe)
 

Bale

Minion
In the relay script, display a notification regarding whether the script is currently set as your recovery script, with an option to toggle it on or off! Thanks!

That is a good idea. I'll implement it when I get back to working on this script.
 

ammy55

New member
i found a small flaw today. when i healed the script used my free disco nap and then a medicinal herbs

> restore hp

_meatpermp => 10.0
_meatperhp => 4.0
_version_BalesUniversalRecovery => 3.76
Restoring HP! Currently at 11 of 129 HP, 1 of 71 MP, current meat: 2028 ... Target HP = 129.
Restoring MP! Currently at 11 of 129 HP, 1 of 71 MP, current meat: 2028 ... Target MP = 4.
Campground request 1 of 1 in progress...

[686] Rest in your dwelling
You gain 10 hit points
You gain 10 Muscularity Points

Using 1 Medicinal Herb's medicinal herbs...
You gain 108 hit points
Finished using 1 Medicinal Herb's medicinal herbs.
 

Bale

Minion
Sigh. Yeah. Fixing that is a lot harder than you'd think because it is caused by avoiding other problems.

The script is filled with little annoying bugs like that. I really need to get back to developing this script... That day will come.
 

StDoodle

Minion
Bale; got Really Quite Poisoned by a Black Widow yesterday, and it didn't slow me up in the slightest. :p

(Edit to add; wasn't using your script / other healing in combat, as I was testing some junk.)
 
Top