Universal Recovery Script

Bale

Minion
Thanks. I'm seeing something weird so you've posted enough logs for now. Give me a bit to figure out how to diagnose it and then I'll post another build for you to test.

PS. Could you please edit in [code] [/code] tags around your posts so that they don't take up so much space on the page? Thanks.
 

Spiny

Member
Thanks. I'm seeing something weird so you've posted enough logs for now. Give me a bit to figure out how to diagnose it and then I'll post another build for you to test.

PS. Could you please edit in [code] [/code] tags around your posts so that they don't take up so much space on the page? Thanks.

I originally had [code] [/code] but then one needed to scroll side to side to get to the up and down scroller, it was annoying for me to read that way, but I'll throw them back in.

-Spiny

Edit: code blocks look good now... no idea why they were huge before when I had them tagged as such.
 
Last edited:

Bale

Minion
After a lot of consideration I think I may have found the problem, or at least this should point me in the right direction. (fingers crossed)

Spiny, please take this special release I made just for you and use it without any modifications. Please post the output if it doesn't perform properly. It's clear you know how to test it.
 
Last edited:

Spiny

Member
After a lot of consideration I think I may have found the problem, or at least this should point me in the right direction. (fingers crossed)

Spiny, please take this special release I made just for you and use it without any modifications. Please post the output if it doesn't perform properly. It's clear you know how to test it.

LOL the output is so long it scrolled off the screen!

With 0 on-hand meat, the following is how each variation of restore mana, restore hp, and restore both begin. Please note these are my most recent tests. I initially had 580 of 1615 MP which got slightly restored in a test midway, but as I couldn't see the beginning of the initial tests, I did these for illustration:

Code:
> restore mana

Restoring MP! Currently at 413 of 1076 HP, 613 of 1615 MP... Target MP = 1615, current meat: 0.
To heal with Doc Galaktik would cost 0.0 meat. Now to beat that price...
testing... Blatantly Canadian
Heal 1002MP with a Blatantly Canadian for 6680.0 meat.
testing... Cherry Cloaca Cola
Heal 1002MP with a Cherry Cloaca Cola for 12525.0 meat.
testing... Cloaca-Cola
Heal 1002MP with a Cloaca-Cola for 9519.0 meat.
testing... Diet Cloaca Cola
Heal 1002MP with a Diet Cloaca Cola for 12525.0 meat.
testing... Doc Galaktik's Ailment Ointment
testing... Doc Galaktik's Homeopathic Elixir
KoLmafia declares world peace.

> restore hp

Restoring HP! Currently at 413 of 1076 HP, 613 of 1615 MP... Target HP = 1076, current meat: 0.
Restoring MP! Currently at 413 of 1076 HP, 613 of 1615 MP... Target MP = 807, current meat: 0.
To heal with Doc Galaktik would cost 0.0 meat. Now to beat that price...
testing... Blatantly Canadian
Heal 1002MP with a Blatantly Canadian for 6680.0 meat.
KoLmafia declares world peace.

> restore both

Restoring HP! Currently at 413 of 1076 HP, 613 of 1615 MP... Target HP = 1076, current meat: 0.
Restoring MP! Currently at 413 of 1076 HP, 613 of 1615 MP... Target MP = 807, current meat: 0.
To heal with Doc Galaktik would cost 0.0 meat. Now to beat that price...
testing... Blatantly Canadian
Heal 1002MP with a Blatantly Canadian for 6680.0 meat.
KoLmafia declares world peace.

Were I to continue each search with 0 meat on-hand (these were run before the above hence different values of my_mp):

Code:
> restore mana 

Restoring MP! Currently at 413 of 1076 HP, 580 of 1615 MP... Target MP = 1615, current meat: 0.
To heal with Doc Galaktik would cost 0.0 meat. Now to beat that price...
testing... blah blah
Heal 1035MP with blah blah
In mallmode, best item is: Doc Galaktik's services. Huh?
Restoring with Doc Galaktik
Current HP: 413, MP: 580
To heal with Doc Galaktik would cost 0.0 meat. Now to beat that price...
testing blah blah
Heal 1035MP with blah blah
In mallmode, best item is: Doc Galaktik's services. Huh?
Restoring with Doc Galaktik
Current HP: 413, MP: 580
To heal with Doc Galaktik would cost 0.0 meat. Now to beat that price...
testing... blah blah
Heal 1035MP with blah blah
In mallmode, best item is: Doc Galaktik's services. Huh?
Restoring with Doc Galaktik
Current HP: 413, MP: 580
My meat: 0. Sadly I think healing failed...
Did not fully restore MP for some reason.

> restore hp
Testing blah blah blah...
Heal 1035MP with blah blah blah
In mallmode, best item is: Doc Galaktik's services. Huh?
Restoring with Doc Galaktik
Current HP: 413, MP: 580
Testing blah blah blah
Heal 663HP with blah blah blah
In mallmode, best item is: Doc Galaktik's services. Huh?
Restoring with Doc Galaktik
Current HP: 413, MP: 580
My meat: 0. Sadly I think healing failed...
Did not fully restore HP for some reason.
I don't have a continued log of restore both.

After taking 400 meat from closet, expected this would get me healed with scroll of drastic healing (Heal 663HP with a scroll of drastic healing for 300.0 meat.), but instead I spent 396 meat for 33 MP at Galaktiks!:

Code:
> restore hp
lots that scrolled off
testing blah blah
Heal 1035MP with blah blah
In mallmode, best item is: Doc Galaktik's services. Huh?
Restoring with Doc Galaktik
Visiting Doc Galaktik...

Restore 33 MP at Doc Galaktik's
You gain 33 Mojo Points
Cure purchased.
Current HP: 413, MP: 613
To heal with Doc Galaktik would cost 0.0 meat. Now to beat that price...
testing... blah blah
Heal 1002MP with blah blah
In mallmode, best item is: Doc Galaktik's services. Huh?
Restoring with Doc Galaktik
Current HP: 413, MP: 613
To heal with Doc Galaktik would cost 0.0 meat. Now to beat that price...
Cycle of MP restorative checking repeats again
In mallmode, best item is: Doc Galaktik's services. Huh?
Restoring with Doc Galaktik
Current HP: 413, MP: 613
My meat: 4. Sadly I think healing failed...
To heal with Doc Galaktik would cost 0.0 meat. Now to beat that price...
HP restoratives get checked here finally resulting in
In mallmode, best item is: Doc Galaktik's services. Huh?
Restoring with Doc Galaktik
Current HP: 413, MP: 613
My meat: 4. Sadly I think healing failed...
Did not fully restore HP for some reason.

Trying to catch the beginning of this, I repeated the process of taking 400 meat from closet and running the beginning of the script and aborting after each restoration option:

Code:
> restore hp

Restoring HP! Currently at 413 of 1076 HP, 613 of 1615 MP... Target HP = 1076, current meat: 400.
Restoring MP! Currently at 413 of 1076 HP, 613 of 1615 MP... Target MP = 807, current meat: 400.
To heal with Doc Galaktik would cost 396.0 meat. Now to beat that price...
testing... Blatantly Canadian
Heal 1002MP with a Blatantly Canadian for 6680.0 meat.
KoLmafia declares world peace.

> restore mana

Restoring MP! Currently at 413 of 1076 HP, 613 of 1615 MP... Target MP = 1615, current meat: 400.
To heal with Doc Galaktik would cost 396.0 meat. Now to beat that price...
testing... Blatantly Canadian
Heal 1002MP with a Blatantly Canadian for 6680.0 meat.
KoLmafia declares world peace.

> restore both

Restoring HP! Currently at 413 of 1076 HP, 613 of 1615 MP... Target HP = 1076, current meat: 400.
Restoring MP! Currently at 413 of 1076 HP, 613 of 1615 MP... Target MP = 807, current meat: 400.
To heal with Doc Galaktik would cost 396.0 meat. Now to beat that price...
testing... Blatantly Canadian
Heal 1002MP with a Blatantly Canadian for 6680.0 meat.
KoLmafia declares world peace.

Observations:

Restore hp is behaving like restore both should in terms of checking hp and mp restoratives.
Both restore hp and restore both are initially targetting the incorrect MP target. It is correctly targetted in restore mana.
It used to be alright to have 400 meat on-hand and know that a scroll of drastic healing would be used with restore hp, now apparently it's off to Galaktiks with me. Think I said that above, but it's here again for good measure ;)

After all that, I took 5000 meat from my closet to see if restoration with decent amount of meat on-hand still works ;)

Code:
> restore both

Restoring HP! Currently at 413 of 1076 HP, 613 of 1615 MP... Target HP = 1076, current meat: 5000.
Restoring MP! Currently at 413 of 1076 HP, 613 of 1615 MP... Target MP = 807, current meat: 5000.
To heal with Doc Galaktik would cost 4992.0 meat. Now to beat that price...
testing... Blatantly Canadian
Heal 1002MP with a Blatantly Canadian for 6680.0 meat.
testing... Cherry Cloaca Cola
Heal 1002MP with a Cherry Cloaca Cola for 12525.0 meat.
testing... Cloaca-Cola
Heal 1002MP with a Cloaca-Cola for 9519.0 meat.
testing... Diet Cloaca Cola
Heal 1002MP with a Diet Cloaca Cola for 12525.0 meat.
testing... Doc Galaktik's Ailment Ointment
testing... Doc Galaktik's Homeopathic Elixir
testing... Doc Galaktik's Pungent Unguent
testing... Doc Galaktik's Restorative Balm
testing... Dyspepsi-Cola
Heal 1002MP with a Dyspepsi-Cola for 8684.0 meat.
testing... Knob Goblin seltzer
Heal 1002MP with a Knob Goblin seltzer for 8016.0 meat.
testing... Knob Goblin superseltzer
Heal 1002MP with a Knob Goblin superseltzer for 3711.111 meat.
Knob Goblin superseltzer is now the best for restoring MP.
testing... Marquis de Poivre soda
Heal 1002MP with a Marquis de Poivre soda for -28.62857 meat.
testing... Medicinal Herb's medicinal herbs
testing... Monstar energy beverage
Heal 1002MP with a Monstar energy beverage for 4676.0 meat.
testing... Mountain Stream soda
Heal 1002MP with a Mountain Stream soda for 15497.601 meat.
testing... Nardz energy beverage
Heal 1002MP with a Nardz energy beverage for 3761.3538 meat.
testing... New Cloaca-Cola
Heal 1002MP with a New Cloaca-Cola for 25377.32 meat.
testing... Regular Cloaca Cola
Heal 1002MP with a Regular Cloaca Cola for 12525.0 meat.
testing... Wint-O-Fresh mint
Heal 1002MP with a Wint-O-Fresh mint for 25050.0 meat.
testing... Xlyinia's notebook
testing... ancient Magi-Wipes
Heal 1002MP with a ancient Magi-Wipes for 2732.7273 meat.
ancient Magi-Wipes is now the best for restoring MP.
testing... ancient turtle shell powder
testing... black cherry soda
Heal 1002MP with a black cherry soda for 8016.0 meat.
testing... blue pixel potion
Heal 1002MP with a blue pixel potion for 13873.846 meat.
testing... bottle of Monsieur Bubble
Heal 1002MP with a bottle of Monsieur Bubble for 3461.4546 meat.
testing... bottle of Vangoghbitussin
Heal 1002MP with a bottle of Vangoghbitussin for 10020.0 meat.
testing... carbonated soy milk
Heal 1002MP with a carbonated soy milk for 5945.1997 meat.
testing... carbonated water lily
Heal 1002MP with a carbonated water lily for 3083.077 meat.
testing... cast
testing... cotton candy bale
Heal 1002MP with a cotton candy bale for 17107.316 meat.
testing... cotton candy cone
Heal 1002MP with a cotton candy cone for 15415.385 meat.
testing... cotton candy pillow
Heal 1002MP with a cotton candy pillow for 13752.941 meat.
testing... cotton candy pinch
Heal 1002MP with a cotton candy pinch for 329825.0 meat.
testing... cotton candy plug
Heal 1002MP with a cotton candy plug for 122173.68 meat.
testing... cotton candy skoshe
Heal 1002MP with a cotton candy skoshe for 21376.0 meat.
testing... cotton candy smidgen
Heal 1002MP with a cotton candy smidgen for 23576.47 meat.
testing... delicious shimmering moth
testing... filthy poultice
testing... forest tears
testing... gauze garter
testing... green pixel potion
Heal 1002MP with a green pixel potion for 15745.714 meat.
testing... high-pressure seltzer bottle
Heal 1002MP with a high-pressure seltzer bottle for 4008.0 meat.
testing... honey-dipped locust
Heal 1002MP with a honey-dipped locust for 6680.0 meat.
testing... magical mystery juice
Heal 1002MP with a magical mystery juice for 2745.2056 meat.
testing... mummy wrapping
testing... murky potion
Heal 1002MP with a murky potion for 30060.0 meat.
testing... natural fennel soda
Heal 1002MP with a natural fennel soda for 7965.9004 meat.
testing... palm frond
Heal 1002MP with a palm frond for 5010.0 meat.
testing... palm-frond fan
Heal 1002MP with a palm-frond fan for 16032.0 meat.
testing... personal massager
testing... phonics down
Heal 1002MP with a phonics down for 4801.25 meat.
testing... pixellated candy heart
testing... plump juicy grub
testing... really thick bandage
testing... red pixel potion
testing... scented massage oil
testing... scroll of drastic healing
testing... six-pack of New Cloaca-Cola
Heal 1002MP with a six-pack of New Cloaca-Cola for 23380.0 meat.
testing... soda water
Heal 1002MP with a soda water for 17535.0 meat.
testing... tiny house
Heal 1002MP with a tiny house for 9746.728 meat.
testing... tonic water
Heal 1002MP with a tonic water for 51352.5 meat.
testing... unrefined Mountain Stream syrup
Heal 1002MP with a unrefined Mountain Stream syrup for 7287.2725 meat.
In mallmode, best item is: ancient Magi-Wipes @ 2732.7273
Using 19 ancient Magi-Wipes
Using 19 ancient Magi-Wipes...
You gain 1,039 hit points
You gain 1,055 Mojo Points
Finished using 19 ancient Magi-Wipes.
Current HP: 1076, MP: 1615
My meat: 5000. Should be successfully healed...
Restoring MP! Currently at 1076 of 1076 HP, 1615 of 1615 MP... Target MP = 1615, current meat: 5000.

In sum... I don't know that this new version is better than the old version, but maybe you'll find something out from all this :)

-Spiny
 

Bale

Minion
AH! I GOT IT!

Thank you so much!

Edit: Spiny, I'm 98% certain that v3.3 will solve your problem so please try it out for me. If you want to turn on verbose mode, there are variables in the options section. Don't forget to modify line 93 for your particular requirements.
 
Last edited:

Bale

Minion
Universal recovery v 3.3 released!


Changelog:
version 3.3 August 18, 2009
  • Enough little bugfixes that at least one of them was probably bothering someone
  • Optional verbose mode
 
Last edited:

Spiny

Member
Hrmmm... definitely different functionality than the prior version...

You have indeed fixed the scripts desire to go to Galaktiks with no meat on-hand though...

With 0 meat on-hand, on this restore mana attempt, Galaktik is now getting a price assigned, before it was getting 0, so this aspect is definitely working now:

Code:
> restore mana

Restoring MP! Currently at 421 of 2093 HP, 2 of 1074 MP... Target MP = 1074, current meat: 0.
To heal with Doc Galaktik would cost 12864.0 meat. Now to beat that price...
testing... Blatantly Canadian
Could heal 1072MP with 48 Blatantly Canadian for 7146.6665 meat.
Blatantly Canadian is now the best for restoring MP.
testing... Cherry Cloaca Cola
Could heal 1072MP with 134 Cherry Cloaca Cola for 13400.0 meat.
testing... Cloaca-Cola
Could heal 1072MP with 90 Cloaca-Cola for 10184.0 meat.
testing... Diet Cloaca Cola
Could heal 1072MP with 134 Diet Cloaca Cola for 13400.0 meat.
testing... Doc Galaktik's Ailment Ointment
testing... Doc Galaktik's Homeopathic Elixir
testing... Doc Galaktik's Pungent Unguent
testing... Doc Galaktik's Restorative Balm
testing... Dyspepsi-Cola
Could heal 1072MP with 90 Dyspepsi-Cola for 9290.667 meat.
testing... Knob Goblin seltzer
Could heal 1072MP with 108 Knob Goblin seltzer for 8576.0 meat.
testing... Knob Goblin superseltzer
Could heal 1072MP with 40 Knob Goblin superseltzer for 3970.3706 meat.
Knob Goblin superseltzer is now the best for restoring MP.
testing... Marquis de Poivre soda
Searching for Marquis de Poivre soda...
Could heal 1072MP with 31 Marquis de Poivre soda for -30.62857 meat.
testing... Medicinal Herb's medicinal herbs
testing... Monstar energy beverage
Could heal 1072MP with 15 Monstar energy beverage for 7861.333 meat.
testing... Mountain Stream soda
Could heal 1072MP with 143 Mountain Stream soda for 16580.268 meat.
testing... Nardz energy beverage
Could heal 1072MP with 17 Nardz energy beverage for 4024.123 meat.
testing... New Cloaca-Cola
Could heal 1072MP with 8 New Cloaca-Cola for 26935.787 meat.
testing... Regular Cloaca Cola
Could heal 1072MP with 134 Regular Cloaca Cola for 13400.0 meat.
testing... Wint-O-Fresh mint
Could heal 1072MP with 268 Wint-O-Fresh mint for 26800.0 meat.
testing... Xlyinia's notebook
testing... ancient Magi-Wipes
Could heal 1072MP with 20 ancient Magi-Wipes for 2923.6365 meat.
ancient Magi-Wipes is now the best for restoring MP.
testing... ancient turtle shell powder
testing... black cherry soda
Could heal 1072MP with 108 black cherry soda for 8576.0 meat.
testing... blue pixel potion
Could heal 1072MP with 17 blue pixel potion for 14760.615 meat.
testing... bottle of Monsieur Bubble
Could heal 1072MP with 20 bottle of Monsieur Bubble for 3021.091 meat.
testing... bottle of Vangoghbitussin
Could heal 1072MP with 11 bottle of Vangoghbitussin for 10602.08 meat.
testing... carbonated soy milk
Could heal 1072MP with 15 carbonated soy milk for 6432.0 meat.
testing... carbonated water lily
Could heal 1072MP with 17 carbonated water lily for 2803.6924 meat.
carbonated water lily is now the best for restoring MP.
testing... cast
testing... cotton candy bale
Could heal 1072MP with 18 cotton candy bale for 18302.44 meat.
testing... cotton candy cone
Could heal 1072MP with 28 cotton candy cone for 16492.307 meat.
testing... cotton candy pillow
Could heal 1072MP with 22 cotton candy pillow for 14713.726 meat.
testing... cotton candy pinch
Could heal 1072MP with 90 cotton candy pinch for 352866.7 meat.
testing... cotton candy plug
Could heal 1072MP with 38 cotton candy plug for 130708.77 meat.
testing... cotton candy skoshe
Could heal 1072MP with 48 cotton candy skoshe for 22869.332 meat.
testing... cotton candy smidgen
Could heal 1072MP with 64 cotton candy smidgen for 25223.53 meat.
testing... delicious shimmering moth
testing... filthy poultice
testing... forest tears
testing... gauze garter
testing... green pixel potion
Could heal 1072MP with 31 green pixel potion for 15926.856 meat.
testing... high-pressure seltzer bottle
Could heal 1072MP with 7 high-pressure seltzer bottle for 3675.4285 meat.
testing... honey-dipped locust
Could heal 1072MP with 32 honey-dipped locust for 7146.6665 meat.
testing... magical mystery juice
Could heal 1072MP with 30 magical mystery juice for 2936.9863 meat.
testing... mummy wrapping
testing... murky potion
Could heal 1072MP with 108 murky potion for 32160.0 meat.
testing... natural fennel soda
Could heal 1072MP with 11 natural fennel soda for 8576.0 meat.
testing... palm frond
Could heal 1072MP with 54 palm frond for 6700.0 meat.
testing... palm-frond fan
Could heal 1072MP with 27 palm-frond fan for 15410.0 meat.
testing... personal massager
testing... phonics down
Could heal 1072MP with 23 phonics down for 5136.667 meat.
testing... pixellated candy heart
testing... plump juicy grub
testing... really thick bandage
testing... red pixel potion
testing... scented massage oil
testing... scroll of drastic healing
testing... six-pack of New Cloaca-Cola
Could heal 1072MP with 2 six-pack of New Cloaca-Cola for 25013.332 meat.
testing... soda water
Could heal 1072MP with 268 soda water for 18760.0 meat.
testing... tiny house
Could heal 1072MP with 49 tiny house for 10427.636 meat.
testing... tonic water
Could heal 1072MP with 27 tonic water for 54940.0 meat.
testing... unrefined Mountain Stream syrup
Could heal 1072MP with 20 unrefined Mountain Stream syrup for 7796.364 meat.
In mallmode, best item is: carbonated water lily @ 2803.6924
Using 17 carbonated water lily
Running out of meat! Time to take some out of the closet...

In the result of the above, it is the first time I have ever seen the "time to take meat out of closet message", so this too is making progress. It reports the correct value of the restorative it wants to use, so this is cool too. The line that perplexes me is "Using 17 carbonated water lily" If it's not actually using them, due to not having them, it probably shouldn't say "using" but having it tell me how many it would use is awesome :) I can live with this statement as is if there's no easy way to distinguish actually using something vs wanting to use something as far as a printed message goes.

I ran another test, this time with restore both. For whatever reason, the restore both continues to have an incorrect MP target printed.:

Code:
> restore both

Restoring HP! Currently at 421 of 2093 HP, 2 of 1074 MP... Target HP = 2093, current meat: 0.
Restoring MP! Currently at 421 of 2093 HP, 2 of 1074 MP... Target MP = 537, current meat: 0.
To heal with Doc Galaktik would cost 12864.0 meat. Now to beat that price...
testing... Blatantly Canadian
Could heal 1072MP with 48 Blatantly Canadian for 7146.6665 meat.
Blatantly Canadian is now the best for restoring MP.
testing... Cherry Cloaca Cola
Could heal 1072MP with 134 Cherry Cloaca Cola for 13400.0 meat.
testing... Cloaca-Cola
Could heal 1072MP with 90 Cloaca-Cola for 10184.0 meat.
testing... Diet Cloaca Cola
Could heal 1072MP with 134 Diet Cloaca Cola for 13400.0 meat.
testing... Doc Galaktik's Ailment Ointment
testing... Doc Galaktik's Homeopathic Elixir
testing... Doc Galaktik's Pungent Unguent
testing... Doc Galaktik's Restorative Balm
testing... Dyspepsi-Cola
Could heal 1072MP with 90 Dyspepsi-Cola for 9290.667 meat.
testing... Knob Goblin seltzer
Could heal 1072MP with 108 Knob Goblin seltzer for 8576.0 meat.
testing... Knob Goblin superseltzer
Could heal 1072MP with 40 Knob Goblin superseltzer for 3970.3706 meat.
Knob Goblin superseltzer is now the best for restoring MP.
testing... Marquis de Poivre soda
Could heal 1072MP with 31 Marquis de Poivre soda for -30.62857 meat.
testing... Medicinal Herb's medicinal herbs
testing... Monstar energy beverage
Could heal 1072MP with 15 Monstar energy beverage for 7861.333 meat.
testing... Mountain Stream soda
Could heal 1072MP with 143 Mountain Stream soda for 16580.268 meat.
testing... Nardz energy beverage
Could heal 1072MP with 17 Nardz energy beverage for 4024.123 meat.
testing... New Cloaca-Cola
Could heal 1072MP with 8 New Cloaca-Cola for 26935.787 meat.
testing... Regular Cloaca Cola
Could heal 1072MP with 134 Regular Cloaca Cola for 13400.0 meat.
testing... Wint-O-Fresh mint
Could heal 1072MP with 268 Wint-O-Fresh mint for 26800.0 meat.
testing... Xlyinia's notebook
testing... ancient Magi-Wipes
Could heal 1072MP with 20 ancient Magi-Wipes for 2923.6365 meat.
ancient Magi-Wipes is now the best for restoring MP.
testing... ancient turtle shell powder
testing... black cherry soda
Could heal 1072MP with 108 black cherry soda for 8576.0 meat.
testing... blue pixel potion
Could heal 1072MP with 17 blue pixel potion for 14760.615 meat.
testing... bottle of Monsieur Bubble
Could heal 1072MP with 20 bottle of Monsieur Bubble for 3021.091 meat.
testing... bottle of Vangoghbitussin
Could heal 1072MP with 11 bottle of Vangoghbitussin for 10602.08 meat.
testing... carbonated soy milk
Could heal 1072MP with 15 carbonated soy milk for 6432.0 meat.
testing... carbonated water lily
Could heal 1072MP with 17 carbonated water lily for 2803.6924 meat.
carbonated water lily is now the best for restoring MP.
testing... cast
testing... cotton candy bale
Could heal 1072MP with 18 cotton candy bale for 18302.44 meat.
testing... cotton candy cone
Could heal 1072MP with 28 cotton candy cone for 16492.307 meat.
testing... cotton candy pillow
Could heal 1072MP with 22 cotton candy pillow for 14713.726 meat.
testing... cotton candy pinch
Could heal 1072MP with 90 cotton candy pinch for 352866.7 meat.
testing... cotton candy plug
Could heal 1072MP with 38 cotton candy plug for 130708.77 meat.
testing... cotton candy skoshe
Could heal 1072MP with 48 cotton candy skoshe for 22869.332 meat.
testing... cotton candy smidgen
Could heal 1072MP with 64 cotton candy smidgen for 25223.53 meat.
testing... delicious shimmering moth
testing... filthy poultice
testing... forest tears
testing... gauze garter
testing... green pixel potion
Could heal 1072MP with 31 green pixel potion for 15926.856 meat.
testing... high-pressure seltzer bottle
Could heal 1072MP with 7 high-pressure seltzer bottle for 3675.4285 meat.
testing... honey-dipped locust
Could heal 1072MP with 32 honey-dipped locust for 7146.6665 meat.
testing... magical mystery juice
Could heal 1072MP with 30 magical mystery juice for 2936.9863 meat.
testing... mummy wrapping
testing... murky potion
Could heal 1072MP with 108 murky potion for 32160.0 meat.
testing... natural fennel soda
Could heal 1072MP with 11 natural fennel soda for 8576.0 meat.
testing... palm frond
Could heal 1072MP with 54 palm frond for 6700.0 meat.
testing... palm-frond fan
Could heal 1072MP with 27 palm-frond fan for 15410.0 meat.
testing... personal massager
testing... phonics down
Could heal 1072MP with 23 phonics down for 5136.667 meat.
testing... pixellated candy heart
testing... plump juicy grub
testing... really thick bandage
testing... red pixel potion
testing... scented massage oil
testing... scroll of drastic healing
testing... six-pack of New Cloaca-Cola
Could heal 1072MP with 2 six-pack of New Cloaca-Cola for 25013.332 meat.
testing... soda water
Could heal 1072MP with 268 soda water for 18760.0 meat.
testing... tiny house
Could heal 1072MP with 49 tiny house for 10427.636 meat.
testing... tonic water
Could heal 1072MP with 27 tonic water for 54940.0 meat.
testing... unrefined Mountain Stream syrup
Could heal 1072MP with 20 unrefined Mountain Stream syrup for 7796.364 meat.
In mallmode, best item is: carbonated water lily @ 2803.6924
Using 17 carbonated water lily
Running out of meat! Time to take some out of the closet..

The result of the above test is if it can't restore the MP, it doesn't consider to restore HP. I suppose there is some sense to that, especially for players who want to use healing skills. The player would then choose restore mana or restore HP or do some variation of manual restoration.

With 0 meat on-hand restore hp... worked! :D This is with my AT. I still want to test this with my TT, I'd like to see her use the scroll as well, rather than use a bunch of Tongue of the Walrus, but til I test this on her, I don't know what the result would be.

Code:
> restore hp

Restoring HP! Currently at 1421 of 2093 HP, 1002 of 1074 MP... Target HP = 2093, current meat: 0.
To heal with Doc Galaktik would cost 4032.0 meat. Now to beat that price...
testing... Blatantly Canadian
testing... Cherry Cloaca Cola
testing... Cloaca-Cola
testing... Diet Cloaca Cola
testing... Doc Galaktik's Ailment Ointment
Could heal 672HP with 75 Doc Galaktik's Ailment Ointment for 4480.0 meat.
testing... Doc Galaktik's Homeopathic Elixir
Could heal 672HP with 36 Doc Galaktik's Homeopathic Elixir for 8488.421 meat.
testing... Doc Galaktik's Pungent Unguent
Could heal 672HP with 168 Doc Galaktik's Pungent Unguent for 5040.0 meat.
testing... Doc Galaktik's Restorative Balm
Could heal 672HP with 48 Doc Galaktik's Restorative Balm for 5760.0 meat.
testing... Dyspepsi-Cola
testing... Knob Goblin seltzer
testing... Knob Goblin superseltzer
testing... Marquis de Poivre soda
testing... Medicinal Herb's medicinal herbs
testing... Monstar energy beverage
testing... Mountain Stream soda
testing... Nardz energy beverage
testing... New Cloaca-Cola
testing... Regular Cloaca Cola
testing... Wint-O-Fresh mint
testing... Xlyinia's notebook
testing... ancient Magi-Wipes
Could heal 672HP with 13 ancient Magi-Wipes for 1832.7273 meat.
ancient Magi-Wipes is now the best for restoring HP.
testing... ancient turtle shell powder
Could heal 672HP with 9 ancient turtle shell powder for 80123.08 meat.
testing... black cherry soda
testing... blue pixel potion
testing... bottle of Monsieur Bubble
testing... bottle of Vangoghbitussin
Could heal 672HP with 7 bottle of Vangoghbitussin for 6646.0796 meat.
testing... carbonated soy milk
testing... carbonated water lily
testing... cast
Could heal 672HP with 39 cast for 3840.0002 meat.
testing... cotton candy bale
Could heal 672HP with 11 cotton candy bale for 11473.171 meat.
testing... cotton candy cone
Could heal 672HP with 18 cotton candy cone for 10338.462 meat.
testing... cotton candy pillow
Could heal 672HP with 14 cotton candy pillow for 9223.529 meat.
testing... cotton candy pinch
Could heal 672HP with 75 cotton candy pinch for 294933.3 meat.
testing... cotton candy plug
Could heal 672HP with 24 cotton candy plug for 81936.84 meat.
testing... cotton candy skoshe
Could heal 672HP with 30 cotton candy skoshe for 14336.0 meat.
testing... cotton candy smidgen
Could heal 672HP with 40 cotton candy smidgen for 15811.765 meat.
testing... delicious shimmering moth
testing... filthy poultice
Could heal 672HP with 7 filthy poultice for 1344.0 meat.
filthy poultice is now the best for restoring HP.
testing... forest tears
Could heal 672HP with 90 forest tears for 80640.0 meat.
testing... gauze garter
Could heal 672HP with 7 gauze garter for 1344.0 meat.
testing... green pixel potion
Could heal 672HP with 14 green pixel potion for 6988.8 meat.
testing... high-pressure seltzer bottle
testing... honey-dipped locust
Could heal 672HP with 20 honey-dipped locust for 4416.0 meat.
testing... magical mystery juice
testing... mummy wrapping
Could heal 672HP with 13 mummy wrapping for 1576.1454 meat.
testing... murky potion
Could heal 672HP with 68 murky potion for 20160.0 meat.
testing... natural fennel soda
testing... palm frond
Could heal 672HP with 34 palm frond for 4200.0 meat.
testing... palm-frond fan
Could heal 672HP with 17 palm-frond fan for 9660.0 meat.
testing... personal massager
Searching for personal massager...
Could heal 672HP with 75 personal massager for -74.666664 meat.
testing... phonics down
Could heal 672HP with 14 phonics down for 3220.0 meat.
testing... pixellated candy heart
Could heal 672HP with 150 pixellated candy heart for 104533.33 meat.
testing... plump juicy grub
testing... really thick bandage
Could heal 672HP with 7 really thick bandage for 2443.6362 meat.
testing... red pixel potion
Could heal 672HP with 7 red pixel potion for 6109.091 meat.
testing... scented massage oil
Could heal 672HP with 1 scented massage oil for 6000.0 meat.
testing... scroll of drastic healing
Could heal 672HP with 1 scroll of drastic healing for 316.66666 meat.
scroll of drastic healing is now the best for restoring HP.
testing... six-pack of New Cloaca-Cola
testing... soda water
testing... tiny house
Could heal 672HP with 31 tiny house for 6536.727 meat.
testing... tonic water
testing... unrefined Mountain Stream syrup
In mallmode, best item is: scroll of drastic healing @ 316.66666
Using 1 scroll of drastic healing
Using 1 scroll of drastic healing...
Finished using 1 scroll of drastic healing.
Current HP: 2093, MP: 1002
My meat: 0. Should be successfully healed...

To sum up, you've made great progress with this version and I agree with your 98% assessment ;) Whootage!! I'll follow up later with testing on my TT.

-Spiny
 
Last edited:

Bale

Minion
Thank you for helping stress test the script. I guess if it can survive you, it can survive anyone. Incidentally, the "time to take some out of the closet" message has been in the script since v2.0, but nobody has ever seen it because of the bugs you helped me to unearth. Finally that line has gotten to shine!

Oh, and I'll change the speculative "Using items" message to "Trying to use items" because it hasn't yet verified how many will be used. ;) Though nobody will ever see that unless they turn on verbose mode.

As a point of curiosity, the reason for the weird prices on scroll of drastic healing is because I'm accounting for the fact that they get reused 1 time out of 3.
 

Spiny

Member
Thank you for helping stress test the script. I guess if it can survive you, it can survive anyone. Incidentally, the "time to take some out of the closet" message has been in the script since v2.0, but nobody has ever seen it because of the bugs you helped me to unearth. Finally that line has gotten to shine!

Oh, and I'll change the speculative "Using items" message to "Trying to use items" because it hasn't yet verified how many will be used. ;) Though nobody will ever see that unless they turn on verbose mode.

As a point of curiosity, the reason for the weird prices on scroll of drastic healing is because I'm accounting for the fact that they get reused 1 time out of 3.

Nod, I'd seen the time to take meat out of the closet message as part of an abort message in the script, but had never seen it fire off till now. That was one of the things I was trying to convey all along but did it in my own very verbose manner! lol

Yay! Once I'm confident everything is running smoothly, I'll probably tone down to verbose rather than very verbose. Even I'm not obsessive/paranoid enough to want to see that level of spam ALL the time ;)

Regarding the price of scroll of drastic healing, I'd seen your accounting of re-usability in the code so that wasn't an issue at all for me.

So, next on the table is ... finding out how this works with my TT... lol I still have 275 turns to go with my Sauceror before I can get there to test.

And figuring out why the mana target is not being printed properly during "restore both"? :)

-Spiny

PS - Trust me, if I find any further behavior that is ... odd or unwanted... you will be the first to know! ;)
 

Spiny

Member
Uh oh!

First time running it on my Sauceror...

This was restore hp, it behaved like restore both is supposed to (ie it restored mana, then hp). In this situation, the mana restoration was not desired, hence why I did restore hp. It appears that the first time the script is run (in a session?), it processes this way. I think this is the behavior I saw on my AT as well, as far as restore hp sometimes behaving like restore both. I think it's the first time per session deal, but other than this sampling, I can't confirm that.

Code:
> restore hp

_BalesUniversalRecovery => 3.3
48 prices updated from http://nixietube.info/mallprices.txt
0 prices updated from http://zachbardon.com/mafiatools/updateprices.php?action=getmap
Pricelist updated.
Restoring HP! Currently at 260 of 1565 HP, 1222 of 1787 MP... Target HP = 1565, current meat: 27683.
Restoring MP! Currently at 260 of 1565 HP, 1222 of 1787 MP... Target MP = 1340, current meat: 27683.
To heal with Doc Galaktik would cost 9605.0 meat. Now to beat that price...
testing... Blatantly Canadian
Could heal 565MP with 26 Blatantly Canadian for 3766.6665 meat.
Blatantly Canadian is now the best for restoring MP.
testing... Cherry Cloaca Cola
Could heal 565MP with 71 Cherry Cloaca Cola for 7062.5 meat.
testing... Cloaca-Cola
Could heal 565MP with 48 Cloaca-Cola for 5367.5 meat.
testing... Diet Cloaca Cola
Could heal 565MP with 71 Diet Cloaca Cola for 7062.5 meat.
testing... Doc Galaktik's Ailment Ointment
testing... Doc Galaktik's Homeopathic Elixir
testing... Doc Galaktik's Pungent Unguent
testing... Doc Galaktik's Restorative Balm
testing... Dyspepsi-Cola
Could heal 565MP with 48 Dyspepsi-Cola for 4896.6665 meat.
testing... Knob Goblin seltzer
Could heal 565MP with 57 Knob Goblin seltzer for 4520.0 meat.
testing... Knob Goblin superseltzer
Could heal 565MP with 21 Knob Goblin superseltzer for 2092.5925 meat.
Knob Goblin superseltzer is now the best for restoring MP.
testing... Marquis de Poivre soda
Searching for Marquis de Poivre soda...
Could heal 565MP with 17 Marquis de Poivre soda for -16.142857 meat.
testing... Medicinal Herb's medicinal herbs
testing... Monstar energy beverage
Could heal 565MP with 8 Monstar energy beverage for 4143.3335 meat.
testing... Mountain Stream soda
Could heal 565MP with 76 Mountain Stream soda for 8738.667 meat.
testing... Nardz energy beverage
Could heal 565MP with 9 Nardz energy beverage for 2120.923 meat.
testing... New Cloaca-Cola
Could heal 565MP with 4 New Cloaca-Cola for 14196.566 meat.
testing... Regular Cloaca Cola
Could heal 565MP with 71 Regular Cloaca Cola for 7062.5 meat.
testing... Wint-O-Fresh mint
Could heal 565MP with 142 Wint-O-Fresh mint for 14125.0 meat.
testing... Xlyinia's notebook
testing... ancient Magi-Wipes
Could heal 565MP with 11 ancient Magi-Wipes for 1540.909 meat.
ancient Magi-Wipes is now the best for restoring MP.
testing... ancient turtle shell powder
testing... black cherry soda
Could heal 565MP with 57 black cherry soda for 4520.0 meat.
testing... blue pixel potion
Could heal 565MP with 9 blue pixel potion for 7779.615 meat.
testing... bottle of Monsieur Bubble
Could heal 565MP with 11 bottle of Monsieur Bubble for 1592.2727 meat.
testing... bottle of Vangoghbitussin
Could heal 565MP with 6 bottle of Vangoghbitussin for 5587.85 meat.
testing... carbonated soy milk
Could heal 565MP with 8 carbonated soy milk for 3390.0 meat.
testing... carbonated water lily
Could heal 565MP with 9 carbonated water lily for 1477.6923 meat.
carbonated water lily is now the best for restoring MP.
testing... cast
testing... cloudy potion
Could heal 565MP with 57 cloudy potion for 16950.0 meat.
testing... cotton candy bale
Could heal 565MP with 10 cotton candy bale for 9646.341 meat.
testing... cotton candy cone
Could heal 565MP with 15 cotton candy cone for 8692.308 meat.
testing... cotton candy pillow
Could heal 565MP with 12 cotton candy pillow for 7754.902 meat.
testing... cotton candy pinch
Could heal 565MP with 48 cotton candy pinch for 185979.16 meat.
testing... cotton candy plug
Could heal 565MP with 20 cotton candy plug for 68890.35 meat.
testing... cotton candy skoshe
Could heal 565MP with 26 cotton candy skoshe for 12053.333 meat.
testing... cotton candy smidgen
Could heal 565MP with 34 cotton candy smidgen for 13294.118 meat.
testing... delicious shimmering moth
testing... filthy poultice
testing... forest tears
testing... gauze garter
testing... green pixel potion
Could heal 565MP with 17 green pixel potion for 8394.285 meat.
testing... high-pressure seltzer bottle
Could heal 565MP with 4 high-pressure seltzer bottle for 1937.1428 meat.
testing... honey-dipped locust
Could heal 565MP with 17 honey-dipped locust for 3766.6667 meat.
testing... magical mystery juice
Could heal 565MP with 14 magical mystery juice for 1378.0488 meat.
magical mystery juice is now the best for restoring MP.
testing... mummy wrapping
testing... natural fennel soda
Could heal 565MP with 6 natural fennel soda for 4520.0 meat.
testing... palm frond
Could heal 565MP with 29 palm frond for 3531.25 meat.
testing... palm-frond fan
Could heal 565MP with 15 palm-frond fan for 8121.875 meat.
testing... personal massager
testing... phonics down
Could heal 565MP with 12 phonics down for 2707.2915 meat.
testing... pixellated candy heart
testing... plump juicy grub
testing... really thick bandage
testing... red pixel potion
testing... scented massage oil
testing... scroll of drastic healing
testing... six-pack of New Cloaca-Cola
Could heal 565MP with 1 six-pack of New Cloaca-Cola for 13183.333 meat.
testing... soda water
Could heal 565MP with 142 soda water for 9887.5 meat.
testing... tiny house
Could heal 565MP with 26 tiny house for 5495.909 meat.
testing... tonic water
Could heal 565MP with 15 tonic water for 28956.25 meat.
testing... unrefined Mountain Stream syrup
Could heal 565MP with 11 unrefined Mountain Stream syrup for 4109.091 meat.
In mallmode, best item is: magical mystery juice @ 1378.0488
Using 14 magical mystery juice
Purchasing magical mystery juice (14 @ 100)...
You acquire magical mystery juice (14)
Purchases complete.
Using 14 magical mystery juice...
You gain 574 Mana Points
Finished using 14 magical mystery juice.
Current HP: 260, MP: 1787
My meat: 26283. Should be successfully healed...
To heal with Doc Galaktik would cost 13050.0 meat. Now to beat that price...
testing... Blatantly Canadian
testing... Cherry Cloaca Cola
testing... Cloaca-Cola
testing... Diet Cloaca Cola
testing... Doc Galaktik's Ailment Ointment
Could heal 1305HP with 145 Doc Galaktik's Ailment Ointment for 8700.0 meat.
Doc Galaktik's Ailment Ointment is now the best for restoring HP.
testing... Doc Galaktik's Homeopathic Elixir
Could heal 1305HP with 69 Doc Galaktik's Homeopathic Elixir for 16484.21 meat.
testing... Doc Galaktik's Pungent Unguent
Could heal 1305HP with 327 Doc Galaktik's Pungent Unguent for 9787.5 meat.
testing... Doc Galaktik's Restorative Balm
Could heal 1305HP with 94 Doc Galaktik's Restorative Balm for 11185.715 meat.
testing... Dyspepsi-Cola
testing... Knob Goblin seltzer
testing... Knob Goblin superseltzer
testing... Marquis de Poivre soda
testing... Medicinal Herb's medicinal herbs
testing... Monstar energy beverage
testing... Mountain Stream soda
testing... Nardz energy beverage
testing... New Cloaca-Cola
testing... Regular Cloaca Cola
testing... Wint-O-Fresh mint
testing... Xlyinia's notebook
testing... ancient Magi-Wipes
Could heal 1305HP with 24 ancient Magi-Wipes for 3559.0908 meat.
ancient Magi-Wipes is now the best for restoring HP.
testing... ancient turtle shell powder
Could heal 1305HP with 17 ancient turtle shell powder for 155596.16 meat.
testing... black cherry soda
testing... blue pixel potion
testing... bottle of Monsieur Bubble
testing... bottle of Vangoghbitussin
Could heal 1305HP with 14 bottle of Vangoghbitussin for 12906.45 meat.
testing... carbonated soy milk
testing... carbonated water lily
testing... cast
Could heal 1305HP with 75 cast for 7457.1426 meat.
testing... cloudy potion
Could heal 1305HP with 131 cloudy potion for 39150.0 meat.
testing... cotton candy bale
Could heal 1305HP with 22 cotton candy bale for 22280.488 meat.
testing... cotton candy cone
Could heal 1305HP with 34 cotton candy cone for 20076.924 meat.
testing... cotton candy pillow
Could heal 1305HP with 26 cotton candy pillow for 17911.766 meat.
testing... cotton candy pinch
Could heal 1305HP with 145 cotton candy pinch for 572750.0 meat.
testing... cotton candy plug
Could heal 1305HP with 46 cotton candy plug for 159118.42 meat.
testing... cotton candy skoshe
Could heal 1305HP with 58 cotton candy skoshe for 27840.0 meat.
testing... cotton candy smidgen
Could heal 1305HP with 77 cotton candy smidgen for 30705.883 meat.
testing... delicious shimmering moth
testing... filthy poultice
Could heal 1305HP with 14 filthy poultice for 2610.0 meat.
filthy poultice is now the best for restoring HP.
testing... forest tears
Could heal 1305HP with 174 forest tears for 156600.0 meat.
testing... gauze garter
Could heal 1305HP with 14 gauze garter for 2610.0 meat.
testing... green pixel potion
Could heal 1305HP with 27 green pixel potion for 13572.0 meat.
testing... high-pressure seltzer bottle
testing... honey-dipped locust
Could heal 1305HP with 38 honey-dipped locust for 8575.714 meat.
testing... magical mystery juice
testing... mummy wrapping
Could heal 1305HP with 24 mummy wrapping for 3060.818 meat.
testing... natural fennel soda
testing... palm frond
Could heal 1305HP with 66 palm frond for 8156.25 meat.
testing... palm-frond fan
Could heal 1305HP with 33 palm-frond fan for 18759.375 meat.
testing... personal massager
Searching for personal massager...
Could heal 1305HP with 145 personal massager for -145.0 meat.
testing... phonics down
Could heal 1305HP with 28 phonics down for 6253.125 meat.
testing... pixellated candy heart
Could heal 1305HP with 290 pixellated candy heart for 203000.0 meat.
testing... plump juicy grub
testing... really thick bandage
Could heal 1305HP with 12 really thick bandage for 4745.4546 meat.
testing... red pixel potion
Could heal 1305HP with 12 red pixel potion for 11863.636 meat.
testing... scented massage oil
Could heal 1305HP with 1 scented massage oil for 6000.0 meat.
testing... scroll of drastic healing
Could heal 1305HP with 1 scroll of drastic healing for 316.66666 meat.
scroll of drastic healing is now the best for restoring HP.
testing... six-pack of New Cloaca-Cola
testing... soda water
testing... tiny house
Could heal 1305HP with 60 tiny house for 12694.091 meat.
testing... tonic water
testing... unrefined Mountain Stream syrup
In mallmode, best item is: scroll of drastic healing @ 316.66666
To heal with Doc Galaktik would cost 7582.0 meat. Now to beat that price...
testing... Blatantly Canadian
Could heal 446MP with 20 Blatantly Canadian for 2973.3333 meat.
Blatantly Canadian is now the best for restoring MP.
testing... Cherry Cloaca Cola
Could heal 446MP with 56 Cherry Cloaca Cola for 5575.0 meat.
testing... Cloaca-Cola
Could heal 446MP with 38 Cloaca-Cola for 4237.0 meat.
testing... Diet Cloaca Cola
Could heal 446MP with 56 Diet Cloaca Cola for 5575.0 meat.
testing... Doc Galaktik's Ailment Ointment
testing... Doc Galaktik's Homeopathic Elixir
testing... Doc Galaktik's Pungent Unguent
testing... Doc Galaktik's Restorative Balm
testing... Dyspepsi-Cola
Could heal 446MP with 38 Dyspepsi-Cola for 3865.3335 meat.
testing... Knob Goblin seltzer
Could heal 446MP with 45 Knob Goblin seltzer for 3568.0 meat.
testing... Knob Goblin superseltzer
Could heal 446MP with 17 Knob Goblin superseltzer for 1651.8518 meat.
Knob Goblin superseltzer is now the best for restoring MP.
testing... Marquis de Poivre soda
Could heal 446MP with 13 Marquis de Poivre soda for -12.742857 meat.
testing... Medicinal Herb's medicinal herbs
testing... Monstar energy beverage
Could heal 446MP with 6 Monstar energy beverage for 3270.6667 meat.
testing... Mountain Stream soda
Could heal 446MP with 60 Mountain Stream soda for 6898.1333 meat.
testing... Nardz energy beverage
Could heal 446MP with 7 Nardz energy beverage for 1674.2153 meat.
testing... New Cloaca-Cola
Could heal 446MP with 3 New Cloaca-Cola for 11206.493 meat.
testing... Regular Cloaca Cola
Could heal 446MP with 56 Regular Cloaca Cola for 5575.0 meat.
testing... Wint-O-Fresh mint
Could heal 446MP with 112 Wint-O-Fresh mint for 11150.0 meat.
testing... Xlyinia's notebook
testing... ancient Magi-Wipes
Could heal 446MP with 9 ancient Magi-Wipes for 1216.3636 meat.
ancient Magi-Wipes is now the best for restoring MP.
testing... ancient turtle shell powder
testing... black cherry soda
Could heal 446MP with 45 black cherry soda for 3568.0 meat.
testing... blue pixel potion
Could heal 446MP with 7 blue pixel potion for 6141.0767 meat.
testing... bottle of Monsieur Bubble
Could heal 446MP with 9 bottle of Monsieur Bubble for 1256.909 meat.
testing... bottle of Vangoghbitussin
Could heal 446MP with 5 bottle of Vangoghbitussin for 4410.94 meat.
testing... carbonated soy milk
Could heal 446MP with 6 carbonated soy milk for 2676.0 meat.
testing... carbonated water lily
Could heal 446MP with 7 carbonated water lily for 1166.4615 meat.
carbonated water lily is now the best for restoring MP.
testing... cast
testing... cloudy potion
Could heal 446MP with 45 cloudy potion for 13380.0 meat.
testing... cotton candy bale
Could heal 446MP with 8 cotton candy bale for 7614.6343 meat.
testing... cotton candy cone
Could heal 446MP with 12 cotton candy cone for 6861.5386 meat.
testing... cotton candy pillow
Could heal 446MP with 9 cotton candy pillow for 6121.569 meat.
testing... cotton candy pinch
Could heal 446MP with 38 cotton candy pinch for 146808.34 meat.
testing... cotton candy plug
Could heal 446MP with 16 cotton candy plug for 54380.703 meat.
testing... cotton candy skoshe
Could heal 446MP with 20 cotton candy skoshe for 9514.666 meat.
testing... cotton candy smidgen
Could heal 446MP with 27 cotton candy smidgen for 10494.118 meat.
testing... delicious shimmering moth
testing... filthy poultice
testing... forest tears
testing... gauze garter
testing... green pixel potion
Could heal 446MP with 13 green pixel potion for 6626.2856 meat.
testing... high-pressure seltzer bottle
Could heal 446MP with 3 high-pressure seltzer bottle for 1529.1428 meat.
testing... honey-dipped locust
Could heal 446MP with 13 honey-dipped locust for 2973.3333 meat.
testing... magical mystery juice
Could heal 446MP with 11 magical mystery juice for 1087.8049 meat.
magical mystery juice is now the best for restoring MP.
testing... mummy wrapping
testing... natural fennel soda
Could heal 446MP with 5 natural fennel soda for 3568.0 meat.
testing... palm frond
Could heal 446MP with 23 palm frond for 2787.5 meat.
testing... palm-frond fan
Could heal 446MP with 12 palm-frond fan for 6411.25 meat.
testing... personal massager
testing... phonics down
Could heal 446MP with 10 phonics down for 2137.0835 meat.
testing... pixellated candy heart
testing... plump juicy grub
testing... really thick bandage
testing... red pixel potion
testing... scented massage oil
testing... scroll of drastic healing
testing... six-pack of New Cloaca-Cola
Could heal 446MP with 1 six-pack of New Cloaca-Cola for 10406.667 meat.
testing... soda water
Could heal 446MP with 112 soda water for 7805.0 meat.
testing... tiny house
Could heal 446MP with 21 tiny house for 4338.364 meat.
testing... tonic water
Could heal 446MP with 12 tonic water for 22857.5 meat.
testing... unrefined Mountain Stream syrup
Could heal 446MP with 9 unrefined Mountain Stream syrup for 3243.6362 meat.
In mallmode, best item is: magical mystery juice @ 1087.8049
Mall price to restore 20MP is 49 meat.
Cast a healing skill.
Casting Cannelloni Cocoon 1 times...
You gain 1,305 hit points
Cannelloni Cocoon was successfully cast.
Current HP: 1565, MP: 1767
My meat: 26283. Should be successfully healed...

I changed outfits to cause a decrease in hp/mp and re-did restore hp. The below is expected behavior for restore hp with coccoon skill available.:

Code:
> restore hp

Restoring HP! Currently at 496 of 923 HP, 877 of 877 MP... Target HP = 923, current meat: 26283.
To heal with Doc Galaktik would cost 4270.0 meat. Now to beat that price...
testing... Blatantly Canadian
testing... Cherry Cloaca Cola
testing... Cloaca-Cola
testing... Diet Cloaca Cola
testing... Doc Galaktik's Ailment Ointment
Could heal 427HP with 48 Doc Galaktik's Ailment Ointment for 2846.6665 meat.
Doc Galaktik's Ailment Ointment is now the best for restoring HP.
testing... Doc Galaktik's Homeopathic Elixir
Could heal 427HP with 23 Doc Galaktik's Homeopathic Elixir for 5393.684 meat.
testing... Doc Galaktik's Pungent Unguent
Could heal 427HP with 107 Doc Galaktik's Pungent Unguent for 3202.5 meat.
testing... Doc Galaktik's Restorative Balm
Could heal 427HP with 31 Doc Galaktik's Restorative Balm for 3660.0 meat.
testing... Dyspepsi-Cola
testing... Knob Goblin seltzer
testing... Knob Goblin superseltzer
testing... Marquis de Poivre soda
testing... Medicinal Herb's medicinal herbs
testing... Monstar energy beverage
testing... Mountain Stream soda
testing... Nardz energy beverage
testing... New Cloaca-Cola
testing... Regular Cloaca Cola
testing... Wint-O-Fresh mint
testing... Xlyinia's notebook
testing... ancient Magi-Wipes
Could heal 427HP with 8 ancient Magi-Wipes for 1164.5455 meat.
ancient Magi-Wipes is now the best for restoring HP.
testing... ancient turtle shell powder
Could heal 427HP with 6 ancient turtle shell powder for 50911.54 meat.
testing... black cherry soda
testing... blue pixel potion
testing... bottle of Monsieur Bubble
testing... bottle of Vangoghbitussin
Could heal 427HP with 5 bottle of Vangoghbitussin for 4223.03 meat.
testing... carbonated soy milk
testing... carbonated water lily
testing... cast
Could heal 427HP with 25 cast for 2440.0 meat.
testing... cloudy potion
Could heal 427HP with 43 cloudy potion for 12810.0 meat.
testing... cotton candy bale
Could heal 427HP with 7 cotton candy bale for 7290.244 meat.
testing... cotton candy cone
Could heal 427HP with 11 cotton candy cone for 6569.231 meat.
testing... cotton candy pillow
Could heal 427HP with 9 cotton candy pillow for 5860.784 meat.
testing... cotton candy pinch
Could heal 427HP with 48 cotton candy pinch for 187405.55 meat.
testing... cotton candy plug
Could heal 427HP with 15 cotton candy plug for 52064.035 meat.
testing... cotton candy skoshe
Could heal 427HP with 19 cotton candy skoshe for 9109.333 meat.
testing... cotton candy smidgen
Could heal 427HP with 26 cotton candy smidgen for 10047.059 meat.
testing... delicious shimmering moth
testing... filthy poultice
Could heal 427HP with 5 filthy poultice for 854.0 meat.
filthy poultice is now the best for restoring HP.
testing... forest tears
Could heal 427HP with 57 forest tears for 51240.0 meat.
testing... gauze garter
Could heal 427HP with 5 gauze garter for 854.0 meat.
testing... green pixel potion
Could heal 427HP with 9 green pixel potion for 4440.8 meat.
testing... high-pressure seltzer bottle
testing... honey-dipped locust
Could heal 427HP with 13 honey-dipped locust for 2806.0 meat.
testing... magical mystery juice
testing... mummy wrapping
Could heal 427HP with 8 mummy wrapping for 1001.5091 meat.
testing... natural fennel soda
testing... palm frond
Could heal 427HP with 22 palm frond for 2668.75 meat.
testing... palm-frond fan
Could heal 427HP with 11 palm-frond fan for 6138.125 meat.
testing... personal massager
Could heal 427HP with 48 personal massager for -47.444443 meat.
testing... phonics down
Could heal 427HP with 9 phonics down for 2046.0416 meat.
testing... pixellated candy heart
Could heal 427HP with 95 pixellated candy heart for 66422.22 meat.
testing... plump juicy grub
testing... really thick bandage
Could heal 427HP with 4 really thick bandage for 1552.7273 meat.
testing... red pixel potion
Could heal 427HP with 4 red pixel potion for 3881.8184 meat.
testing... scented massage oil
Could heal 427HP with 1 scented massage oil for 6000.0 meat.
testing... scroll of drastic healing
Could heal 427HP with 1 scroll of drastic healing for 316.66666 meat.
scroll of drastic healing is now the best for restoring HP.
testing... six-pack of New Cloaca-Cola
testing... soda water
testing... tiny house
Could heal 427HP with 20 tiny house for 4153.5454 meat.
testing... tonic water
testing... unrefined Mountain Stream syrup
In mallmode, best item is: scroll of drastic healing @ 316.66666
To heal with Doc Galaktik would cost 3723.0 meat. Now to beat that price...
testing... Blatantly Canadian
Could heal 219MP with 10 Blatantly Canadian for 1460.0 meat.
Blatantly Canadian is now the best for restoring MP.
testing... Cherry Cloaca Cola
Could heal 219MP with 28 Cherry Cloaca Cola for 2737.5 meat.
testing... Cloaca-Cola
Could heal 219MP with 19 Cloaca-Cola for 2080.5 meat.
testing... Diet Cloaca Cola
Could heal 219MP with 28 Diet Cloaca Cola for 2737.5 meat.
testing... Doc Galaktik's Ailment Ointment
testing... Doc Galaktik's Homeopathic Elixir
testing... Doc Galaktik's Pungent Unguent
testing... Doc Galaktik's Restorative Balm
testing... Dyspepsi-Cola
Could heal 219MP with 19 Dyspepsi-Cola for 1898.0 meat.
testing... Knob Goblin seltzer
Could heal 219MP with 22 Knob Goblin seltzer for 1752.0 meat.
testing... Knob Goblin superseltzer
Could heal 219MP with 9 Knob Goblin superseltzer for 811.1111 meat.
Knob Goblin superseltzer is now the best for restoring MP.
testing... Marquis de Poivre soda
Could heal 219MP with 7 Marquis de Poivre soda for -6.257143 meat.
testing... Medicinal Herb's medicinal herbs
testing... Monstar energy beverage
Could heal 219MP with 3 Monstar energy beverage for 1606.0 meat.
testing... Mountain Stream soda
Could heal 219MP with 30 Mountain Stream soda for 3387.2002 meat.
testing... Nardz energy beverage
Could heal 219MP with 4 Nardz energy beverage for 822.0923 meat.
testing... New Cloaca-Cola
Could heal 219MP with 2 New Cloaca-Cola for 5502.74 meat.
testing... Regular Cloaca Cola
Could heal 219MP with 28 Regular Cloaca Cola for 2737.5 meat.
testing... Wint-O-Fresh mint
Could heal 219MP with 55 Wint-O-Fresh mint for 5475.0 meat.
testing... Xlyinia's notebook
testing... ancient Magi-Wipes
Could heal 219MP with 4 ancient Magi-Wipes for 597.2727 meat.
ancient Magi-Wipes is now the best for restoring MP.
testing... ancient turtle shell powder
testing... black cherry soda
Could heal 219MP with 22 black cherry soda for 1752.0 meat.
testing... blue pixel potion
Could heal 219MP with 4 blue pixel potion for 3015.4614 meat.
testing... bottle of Monsieur Bubble
Could heal 219MP with 4 bottle of Monsieur Bubble for 617.1818 meat.
testing... bottle of Vangoghbitussin
Could heal 219MP with 3 bottle of Vangoghbitussin for 2165.9102 meat.
testing... carbonated soy milk
Could heal 219MP with 3 carbonated soy milk for 1314.0 meat.
testing... carbonated water lily
Could heal 219MP with 4 carbonated water lily for 572.7692 meat.
carbonated water lily is now the best for restoring MP.
testing... cast
testing... cloudy potion
Could heal 219MP with 22 cloudy potion for 6570.0 meat.
testing... cotton candy bale
Could heal 219MP with 4 cotton candy bale for 3739.0244 meat.
testing... cotton candy cone
Could heal 219MP with 6 cotton candy cone for 3369.2307 meat.
testing... cotton candy pillow
Could heal 219MP with 5 cotton candy pillow for 3005.8823 meat.
testing... cotton candy pinch
Could heal 219MP with 19 cotton candy pinch for 72087.5 meat.
testing... cotton candy plug
Could heal 219MP with 8 cotton candy plug for 26702.63 meat.
testing... cotton candy skoshe
Could heal 219MP with 10 cotton candy skoshe for 4672.0 meat.
testing... cotton candy smidgen
Could heal 219MP with 13 cotton candy smidgen for 5152.941 meat.
testing... delicious shimmering moth
testing... filthy poultice
testing... forest tears
testing... gauze garter
testing... green pixel potion
Could heal 219MP with 7 green pixel potion for 3253.7144 meat.
testing... high-pressure seltzer bottle
Could heal 219MP with 2 high-pressure seltzer bottle for 750.8572 meat.
testing... honey-dipped locust
Could heal 219MP with 7 honey-dipped locust for 1460.0 meat.
testing... magical mystery juice
Could heal 219MP with 6 magical mystery juice for 534.14636 meat.
magical mystery juice is now the best for restoring MP.
testing... mummy wrapping
testing... natural fennel soda
Could heal 219MP with 3 natural fennel soda for 1752.0 meat.
testing... palm frond
Could heal 219MP with 11 palm frond for 1368.75 meat.
testing... palm-frond fan
Could heal 219MP with 6 palm-frond fan for 3148.125 meat.
testing... personal massager
testing... phonics down
Could heal 219MP with 5 phonics down for 1049.375 meat.
testing... pixellated candy heart
testing... plump juicy grub
testing... really thick bandage
testing... red pixel potion
testing... scented massage oil
testing... scroll of drastic healing
testing... six-pack of New Cloaca-Cola
Could heal 219MP with 1 six-pack of New Cloaca-Cola for 5110.0 meat.
testing... soda water
Could heal 219MP with 55 soda water for 3832.5 meat.
testing... tiny house
Could heal 219MP with 10 tiny house for 2130.2727 meat.
testing... tonic water
Could heal 219MP with 6 tonic water for 11223.75 meat.
testing... unrefined Mountain Stream syrup
Could heal 219MP with 4 unrefined Mountain Stream syrup for 1592.7273 meat.
In mallmode, best item is: magical mystery juice @ 534.14636
Mall price to restore 20MP is 49 meat.
Cast a healing skill.
Casting Cannelloni Cocoon 1 times...
You gain 427 hit points
Cannelloni Cocoon was successfully cast.
Current HP: 923, MP: 857
My meat: 26283. Should be successfully healed...

Edit 1: It's not a first time per session only behavior, since it happened again. If I input restore hp and my_mp is less than what I've set the restore MP at X% drop down to in mafia, then this behaves as restore both. I have not tested restore mana while my hp is below the restore at X% target that I've set in mafia to see if it would behave the same way.

I was of the assumption typing in restore hp or restore mana would be limited to restoring whichever was requested, not both. And the restore both command would obviously restore both. If I was auto-adventuring I'd expect the hp/mp settings to fire off as set and they do. The question is, was my assumption of how the commands work correct or not? If my assumption was correct, than something is not behaving properly. If my assumption was incorrect, then it's user error on my part.

Edit 2: Regarding the target MP being reported when restore both behavior occurs: When I fired off the initial restore hp, quoted at the top of this post, my restore mp at X% was set to 75%. In that example, the printed Target MP = 75% of my max mana.

To further test this, I set my restore mana to 50%, in the below example, it appears to be that the target MP is being printed at 50% of max MP + 20 MP. I'm not sure why there's this additional 20 MP being added in. I thought at first it was being reserved for cocoon, but the above example also cast cocoon and didn't have the extra 20 MP in the Target MP.

Code:
> restore hp

Restoring HP! Currently at 367 of 922 HP, 377 of 877 MP... Target HP = 922, current meat: 19574.
Restoring MP! Currently at 367 of 922 HP, 377 of 877 MP... Target MP = 458, current meat: 19574.
To heal with Doc Galaktik would cost 8500.0 meat. Now to beat that price...
blah blah blah
In mallmode, best item is: magical mystery juice @ 1219.5122
Using 13 magical mystery juice
Purchasing magical mystery juice (13 @ 100)...
You acquire magical mystery juice (13)
Purchases complete.
Using 13 magical mystery juice...
You gain 532 Mana Points
Finished using 13 magical mystery juice.
Current HP: 367, MP: 877
My meat: 18274. Should be successfully healed...
To heal with Doc Galaktik would cost 5550.0 meat. Now to beat that price...
Blah blah blah blah
In mallmode, best item is: magical mystery juice @ 534.14636
Mall price to restore 20MP is 49 meat.
Cast a healing skill.
Casting Cannelloni Cocoon 1 times...
You gain 555 hit points
Cannelloni Cocoon was successfully cast.
Current HP: 922, MP: 857
My meat: 18274. Should be successfully healed...

-Spiny

PS - Hope you don't lose too much hair over this ;)
 
Last edited:

Bale

Minion
Concerning your problem with unanticipated MP restoration: When you restore HP and you have a healing spell, it checks your MP to see if the cost of a healing spell will reduce your MP below your MP healing trigger. If so, then it will restore MP first so that you can take full advantage of items that restore both HP&MP at the same time. Then, after restoring MP, it will return to restoring HP. It's anticipating your future needs since in normal adventuring mafia will always do a restore_mp(0) after restore_hp(0).

That's a feature, not a bug.

As for restore both, Mafia actually calls my script twice when you do a restore both, once to restore hp and the second time to restore mp. It is exactly the same typing restore hp followed by restore mp.

Everything seems to be working well in your latest tests.
 
Last edited:

Spiny

Member
Concerning your problem with unanticipated MP restoration: When you restore HP and you have a healing spell, it checks your MP to see if the cost of a healing spell will reduce your MP below your MP healing trigger. If so, then it will restore MP first so that you can take full advantage of items that restore both HP&MP at the same time. Then, after restoring MP, it will return to restoring HP. It's anticipating your future needs since in normal adventuring mafia will always do a restore_mp(0) after restore_hp(0).

That's a feature, not a bug.

As for restore both, Mafia actually calls my script twice when you do a restore both, once to restore hp and the second time to restore mp. It is exactly the same typing restore hp followed by restore mp.

Everything seems to be working well in your latest tests.

Whoops, thought I checked to see if you responded before I did more edits to my other post lol... just disregard... you've responded here and I follow the logic now. Thanks!

-Spiny
 

Spiny

Member
Works great on my TT, even with 0 meat on-hand :D My bad for not disabling medicinal herbs first though *facepalm* lol

Thanks for all your hard work and putting up with me ;)

-Spiny
 

gnaddelwarz

New member
I think I'll call my script "perfect" until someone else can find something wrong with it. :D

First of all thanks for this GREAT skript.
I just stumbled about some minor thing:
It "wastes" heals from the nuns (of course, I could simply deactivate them, so maybe not an issue)
Code:
Restoring HP! Currently at 2693 of 4173 HP, 1262 of 6282 MP... Target HP = 4173, current meat: 7071430.
Get thee to a nunnery!
You gain 1,000 hit points
In mallmode, best item is: scroll of drastic healing @ 330.0
Using 1 scroll of drastic healing
Using 1 scroll of drastic healing...
Finished using 1 scroll of drastic healing.
Current HP: 4173, MP: 1262
My meat: 7071430. Should be successfully healed...

I.e. when it is going to use a "heal-all"-method (scroll of drastic healing like here, but probably also Cocoon etc.), there is nothing gained from going to the nuns first. In this case I would want it to either:
- use only the scroll, no nunnery before that.
- or eventually go twice to the nunnery to heal full (and don't do anything else after that).

cu
 

Spiny

Member
First of all thanks for this GREAT skript.
I just stumbled about some minor thing:
It "wastes" heals from the nuns (of course, I could simply deactivate them, so maybe not an issue)
Code:
Restoring HP! Currently at 2693 of 4173 HP, 1262 of 6282 MP... Target HP = 4173, current meat: 7071430.
Get thee to a nunnery!
You gain 1,000 hit points
In mallmode, best item is: scroll of drastic healing @ 330.0
Using 1 scroll of drastic healing
Using 1 scroll of drastic healing...
Finished using 1 scroll of drastic healing.
Current HP: 4173, MP: 1262
My meat: 7071430. Should be successfully healed...

I.e. when it is going to use a "heal-all"-method (scroll of drastic healing like here, but probably also Cocoon etc.), there is nothing gained from going to the nuns first. In this case I would want it to either:
- use only the scroll, no nunnery before that.
- or eventually go twice to the nunnery to heal full (and don't do anything else after that).

cu

I have tested many things to the extreme with this script, however there are things I have not tested including restoration from the Nuns or the Hot Tub. I don't have access to the Hot Tub and I prefer to only use the Nuns under certain situations and as such, have them disabled as an automatic choice of recovery.

As it stands right now, the code says: If I need to recover 1000 or more HP, and I've done the nuns as a Hippy, and I've visited the nuns less than 3 times, visit the nuns and then restore remaining HPs via items or skills.

In your case, you needed 1485 HP restored, 2 visits to the Nuns would not occur, a second visit would clearly be a waste of a nuns visit. Now, of course, using a full heal after the visit to the nuns may be viewed as a waste, which is your case. On the surface, I'd agree, but a full-heal item is most likely cheaper than any other restorative to recover 485 HP.

This begs the next question, when SHOULD the script simply use a full heal item as opposed to visit the nuns when done as a Hippy?

Personally, I think the Nuns as Hippy is a strange case because it's far more practical to use a full heal method than EVER using the nuns when done as a Hippy, providing one has a full heal method on-hand. If one has to buy a full heal item, then I'd probably prefer the Nuns as they are free, but then I'd only prefer the Nuns over buying a healing method IF the healing method I would need after visiting the nuns would cost less than the cost of a full heal item/skill.

Now whether or not that is something Bale wants to code is another question :) Let's see what he has to say about this because I could simply be off my rocker too!

-Spiny
 

Bale

Minion
It "wastes" heals from the nuns (of course, I could simply deactivate them, so maybe not an issue)

I.e. when it is going to use a "heal-all"-method (scroll of drastic healing like here, but probably also Cocoon etc.), there is nothing gained from going to the nuns first. In this case I would want it to either:
- use only the scroll, no nunnery before that.
- or eventually go twice to the nunnery to heal full (and don't do anything else after that).
Ah. Now there's a special case I never considered. Curiously if you'd completed the quest as a frat, it would focus on the use of 1000MP, so this bug would never come up. Anytime I'm in aftercore for long enough to have 1000 HP, I planned for the MP restoration. That's how this eluded my notice.

Now whether or not that is something Bale wants to code is another question :) Let's see what he has to say about this because I could simply be off my rocker too!
I see Spiny shares my sentiments for planning the nun quest to be useful in aftercore, but not everyone is Spiny nor I. This is clearly a lack in my script that needs to be fixed. I'll think about how to fix it properly since the current logic for nun usage will need a serious overhaul to handle this case. I want the script to be flexible enough to be helpful to almost everyone.
 

Spiny

Member
Bale, something new I noticed. It's not an issue regarding restorative functionality, but it is being fired off due to your script. I hadn't caught it before because I mostly manually adventure thru the relay browser and as such only call the script when I need to. Last night, and today, while meat farming in the castle I've noticed some redundency happening.

Here's an example of what I'm talking about:

Code:
_BalesUniversalRecovery => 3.3
0 prices updated from http://nixietube.info/mallprices.txt
228 prices updated from http://zachbardon.com/mafiatools/updateprices.php?action=getmap
Pricelist updated.

Request 1 of 14 (Beanstalk: Giant's Castle) in progress...
Changing auto-attack: attack with weapon

[6095] Giant's Castle

(fast forward)
Requests complete.
Outfit change, some manual adventuring...
Another outfit change, a new set of automated adventuring resumes.

Request 21 of 24 (Beanstalk: Giant's Castle) in progress...

[6131] Giant's Castle
Encounter: Raver Giant
Strategy: attack with weapon
Round 0: Tango Clubdancer wins initiative!
Round 1: Tango Clubdancer attacks! (auto-attack)
Round 1: Meatmaster junior winks at you.
Round 1: raver giant takes 270 damage.
You gain 585 Meat
You acquire an item: Mick's IcyVapoHotness Rub
You gain 22 Beefiness
You gain 14 Mysteriousness
You gain 16 Cheek

Success: Update successful -- no new prices.
Already submitted to http://zachbardon.com/mafiatools/updateprices.php in this session.

Request 22 of 24 (Beanstalk: Giant's Castle) in progress...

[6132] Giant's Castle
Encounter: Wheel in the Clouds in the Sky, Keep on Turning

Already submitted to http://zachbardon.com/mafiatools/updateprices.php in this session.
Already submitted to http://zachbardon.com/mafiatools/updateprices.php in this session.

Request 22 of 24 (Beanstalk: Giant's Castle) in progress...

[6132] Giant's Castle
Encounter: Alphabet Giant

In short, should those zachbardon.com submission messages be occurring so frequently?

-Spiny
 

Bale

Minion
Not a problem. All systems green

Prices should only be submitted when you have exactly 9 adventures left. Which should be extremely rarely. It happened twice in a row because choosing not to turn the wheel doesn't use up an adventure so you STILL had exactly 9 adventures left.

Incidentally if you try to submit a second time, mafia simply refuses to submit it a second time. No submission made = no harm done. Though looking at it, I should limit to either hp OR mp restoration, rather than both. That would at least cut the number of attempted submissions in half.
 

Spiny

Member
I think the confusing issue I had the other day regarding the super-verbose mode reporting the incorrect target MP % is based on a cosmetic issue and is related to the below as well. I understand what the script is doing based on our conversations here. I agree the script, at this point, in these situations is making the right choices. I am happy with how well it is functioning compared to the frustrations I was having earlier pre-bug fixes. The more I understand, the more it's like a light bulb turns on.

I felt confident enough to drop down a level of verboseness from super verbose to just plain old verbose. This is on my Sauceror and my first run thru at this lesser verbose mode:

Code:
> restore both

Restoring HP! Currently at 692 of 977 HP, 683 of 978 MP... Target HP = 977, current meat: 57894.
In mallmode, best item is: scroll of drastic healing @ 330.0 [B][COLOR=blue]How do we get from here...[/COLOR][/B]
In mallmode, best item is: magical mystery juice @ 574.1177 [B][COLOR=red]<-- this is confusing to see here as the actual cost value appears later[/COLOR][/B]
Mall price to restore 20MP is 48 meat.
Cast a healing skill.
Casting Cannelloni Cocoon 1 times... [B][COLOR=blue]...to here?[/COLOR][/B]
You gain 285 hit points
Cannelloni Cocoon was successfully cast.
Current HP: 977, MP: 663
My meat: 57894. Should be successfully healed...
Restoring MP! Currently at 977 of 977 HP, 663 of 978 MP... Target MP = 978, current meat: 57894.
In mallmode, best item is: magical mystery juice @ 741.17645 [B][COLOR=green]<-- This is correct and what I'd expect to see[/COLOR][/B]
Using 8 magical mystery juice
Purchasing magical mystery juice (8 @ 100)...
You acquire magical mystery juice (8)
Purchases complete.
Using 8 magical mystery juice...
You gain 338 Mana Points
Finished using 8 magical mystery juice.
Current HP: 977, MP: 978
My meat: 57094. Should be successfully healed...

From a prior code snippet in super-verbose mode:

Code:
Restoring HP! Currently at 367 of 922 HP, 377 of 877 MP... Target HP = 922, current meat: 19574.
Restoring MP! Currently at 367 of 922 HP, 377 of 877 MP... Target MP = 458, current meat: 19574. [B][COLOR=red]<--misleading target indicator, can this be omitted/changed for clarification of intent?[/COLOR][/B]
To heal with Doc Galaktik would cost 8500.0 meat. Now to beat that price...

In the above example I was going nuts because of the Target MP shown not being my actual Target MP. You explained "it checks your MP to see if the cost of a healing spell will reduce your MP below your MP healing trigger." This made sense to me, but doesn't rectify that the script reports the trigger MP rather than the true target MP in the restore both/restore hp (where my_mp < Trigger MP %) scenario.

In the verbose mode it does not print this misleading target indicator, but it does report the incorrect cost to restore MP initially. A quick glance at the first log here makes me wonder how my total cost to restore mana went from 574 meat + 48 meat to restore 20 MP to 741 meat to restore MP fully. Again, I understand what the script is doing now after talking with you about it, but I think the verbose comments need to be fine tuned a bit.

What I'd personally like to see in a verbose mode is something like this:

Restoring HP! Currently at 692 of 977 HP, 683 of 978 MP... Target HP = 977, current meat: 57894.
In mallmode, best HP restorative is: scroll of drastic healing @ 330.0
Now to beat that price... Include this line?
In mallmode, best MP restorative is: magical mystery juice Omit the price reference you currently have on this line and it might make more sense to the user
Mall price to restore 20MP is 48 meat.
Cast a healing skill.
Casting Cannelloni Cocoon 1 times...
You gain 285 hit points
Cannelloni Cocoon was successfully cast.
Current HP: 977, MP: 663
My meat: 57894. Should be successfully healed...
Restoring MP! Currently at 977 of 977 HP, 663 of 978 MP... Target MP = 978, current meat: 57894.
In mallmode, best MP restorative is: magical mystery juice @ 741.17645 Only show this cost at this point, not earlier
Using 8 magical mystery juice
Purchasing magical mystery juice (8 @ 100)...
You acquire magical mystery juice (8)
Purchases complete.
Using 8 magical mystery juice...
You gain 338 Mana Points
Finished using 8 magical mystery juice.
Current HP: 977, MP: 978
My meat: 57094. Should be successfully healed...

Whereas in super verbose mode, continue to have it do all that it is currently doing, EXCEPT for printing out the misleading MP target restoration indicator unless you can get it to be clearly understood to the viewer of the output somehow.

Is this doable? :)

Thanks,
Spiny

Edit: I tend to see things clearer after typing them all out, hence my overzealous need to edit my posts all the time.
 
Last edited:
Top