Have you configured it to tell it what to use? It uses what it is in your healing settings in mafia
Are you sure? it has its own separate settings page though, and the items it is using don't even exist in the configuration for mafia baseline "restore hp" script.
Anyways, yes I have configured the baseline mafia options.
This is not a configuration issue it is a fundamental issue with the script as it harkens back to something I have noticed long long ago and was told to just get more +HP/MP skills permed. And that is no big deal since I was only losing a trivial amount of meat per heal, and in truth it was not a big deal.
Namely, it was using tongue of the walrus to cure ~2 HP instead of lasagna bandages; yes, tongue of the walrus is more efficient if both heal their average quantity, but when you are close to your HP cap then it is a waste to use the higher MP cost option
For people who have permed the healing skills and have a bunch of +maxHP / +maxMP skills permed this is less of an issue, the script will just use the skills. (still an issue because it is buying inefficient stuff instead of the cheapest option, wasting some small amount of meat.
For a brand new player lacking in perms this is really bad, bankrupting them for no reason. A +1000 HP item is assumed to actually heal you for 1000 HP, regardless of the fact that your maxHP is measured in two digits.
Anyways, things (that I remember) that needs to be fixed in this script are:
1. When calculating an item's efficiency, the "restored HP/MP" value used in the calculation should be whichever is lower between:
a. the amount that item or skill it can hypothetically restore
b. [maxHP-currentHP]. (or MP if restoring MP)
2. When looking at the mall, consider items which recover both HP and MP. Currently they are totally ignored. This results in a case of "item A: recover 100 HP and 100 MP for 100 meat" being ignored in favor of "item B: recover 50 MP for 100 meat". Even though the latter is half the efficiency.
Sure, writing a system that actually accounts for the value of both the HP AND the MP is complicated; but also not necessary, simply ignore no what is not being restored. this will improve efficiency.
3. include a sanity check that aborts and reports if meat per HP is ridiculously high. (say, over 10 meat per HP? maybe over 20?)
I have never made a mafia script before... but I have dabbled in other stuff like javascript. I will give it a try later.