Universal Recovery Script

I could also see issues for some people who don't have a Tongue permed, because I typically like to save tiny houses for removing beaten up. But not an issue I'm seeing specifically, so I may be making it up.

If you don't have a tongue skill it saves tiny houses for that purpose.
 
Had a problem today, someone had limited phonics down's in the mall to a limit of 25, I kept having this problem:

edit: yes this happened after I had bought my phonics down's up to the limit.

(infinite until I explicity stopped it)

Restoring HP! Currently at 97 of 387 HP, 164 of 654 MP, current meat: 815166 ... Target HP = 368.
Restoring MP! Currently at 97 of 387 HP, 164 of 654 MP, current meat: 815166 ... Target MP = 572.
Searching for "phonics down"...
Search complete.
Purchasing phonics down (9 @ 230)...
Stopped purchasing phonics down @ 290.
Using cached search results for phonics down...
Purchasing phonics down (9 @ 230)...
Stopped purchasing phonics down @ 290.
Using cached search results for phonics down...
Purchasing phonics down (9 @ 230)...
Stopped purchasing phonics down @ 290.
Using cached search results for phonics down...
Purchasing phonics down (9 @ 230)...
Stopped purchasing phonics down @ 290.
Using cached search results for phonics down...
Purchasing phonics down (9 @ 230)...
Stopped purchasing phonics down @ 290.
Using cached search results for phonics down...
Purchasing phonics down (9 @ 230)...
Stopped purchasing phonics down @ 290.
Using cached search results for phonics down...
Purchasing phonics down (9 @ 230)...
Stopped purchasing phonics down @ 290.
Using cached search results for phonics down...
Purchasing phonics down (9 @ 230)...
KoLmafia declares world peace.
 
Last edited:
Had a problem today, someone had limited phonics down's in the mall to a limit of 25, I kept having this problem:

Ditto, sort of. The problem did not start until I had actually purchased all I could at the limit. I bought some manually at higher prices and at some point UR actually figured out it wasn't going to get them and switched to trying something else. Went on too long but something changed and it corrected itself. Still though, something, somewhere could make things better if it was able to use the "price available to me" instead of the "lowest" price.
 
Also, I added removal for N-Spatial Vision. (It uses purification pills if available, otherwise it casts Disco Power Nap, finally if you don't have the skill it will make a purification pill.)

Wait, Disco Power Nap removes N-Spatial Vision? I did not know that!
 
Oh, and I just realized that I should have updated this script a while ago. The previous version hadn't been fully adapted to the revamped Hidden Temple. Also, I added removal for N-Spatial Vision. (It uses purification pills if available, otherwise it casts Disco Power Nap, finally if you don't have the skill it will make a purification pill.)

Hmmm... I wonder how that will work together with bcascend which looks for that effect to know if it's encountered the correct monster. SHould probably change to last_monster() whatever that guy is called.
 
So perhaps this is a problem with the algorithm being used then. I have Cocoon permed, yet it would use multitudes of tiny-houses & phonics downs to recover a bit over 100 hp. So even if you value mp at a premium, it would be more efficient to cast cocoon and then use a house to restore the mp.

I could also see issues for some people who don't have a Tongue permed, because I typically like to save tiny houses for removing beaten up. But not an issue I'm seeing specifically, so I may be making it up.

I'm looking at mine with the same problem and for now i've had to turn off UR just so that it effectively uses Cocoon.

just to make sure i set then reset the mallmode value -
baleUr_UseInventoryInMallmode => true
baleUr_UseInventoryInMallmode => false

Restoring HP! Currently at 299 of 643 HP, 2904 of 3280 MP, current meat: 4722411 ... Target HP = 643.
Try to heal HP from inventory.
Using 3 filthy poultice...
You gain 301 hit points
Finished using 3 filthy poultice.
Using 1 Notes from the Elfpocalypse, Chapter I...
You gain 36 Mana Points
You gain 32 hit points
Finished using 1 Notes from the Elfpocalypse, Chapter I.
Try to heal HP with skills.
Casting Disco Power Nap 1 times...
You gain 40 hit points
Disco Power Nap was successfully cast.
 
Code:
Desired purchase quantity not reached (wanted 51, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 51, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 51, got 0)
Searching for "green pixel potion"...
Search complete.
Purchasing green pixel potion (4 @ 339)...
Purchasing green pixel potion (2 @ 1,500)...
You acquire green pixel potion (2)
Purchasing green pixel potion (7 @ 1,500)...
You acquire green pixel potion (7)
Purchasing green pixel potion (1 @ 1,500)...
You acquire an item: green pixel potion
Purchasing green pixel potion (1 @ 1,500)...
You acquire an item: green pixel potion
Purchasing green pixel potion (1 @ 1,600)...
You acquire an item: green pixel potion
Purchasing green pixel potion (1 @ 1,666)...
You acquire an item: green pixel potion
Desired purchase quantity not reached (wanted 51, got 13)
Using 13 green pixel potion...
You gain 649 hit points
You gain 457 Mojo Points
Finished using 13 green pixel potion.
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 38, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 38, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 38, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 38, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 38, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 38, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 38, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 38, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 38, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 38, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 38, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 38, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 38, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 38, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 38, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 38, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 38, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 38, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 38, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 38, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 38, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 38, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 38, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 38, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 38, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 38, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 38, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 38, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 38, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 38, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 38, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 38, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 38, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 38, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 38, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 38, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 38, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 38, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 38, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 38, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 38, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 38, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 38, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 38, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 38, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 38, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 38, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 38, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 38, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 38, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 38, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 38, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 38, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 38, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 38, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 38, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 38, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 38, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 38, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 38, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 38, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 38, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 38, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 38, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 38, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 38, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 38, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 38, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 38, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 38, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 38, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 38, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 38, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 38, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 38, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 38, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 38, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 38, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 38, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 38, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 38, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 38, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 38, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 38, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 38, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 38, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 38, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 38, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 38, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 38, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 38, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 38, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 38, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 38, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 38, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 38, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 38, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 38, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 38, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 38, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 38, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 38, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 38, got 0)
Searching for "green pixel potion"...
Search complete.
Purchasing green pixel potion (4 @ 339)...
Purchasing green pixel potion (2 @ 1,750)...
You acquire green pixel potion (2)
Stopped purchasing green pixel potion @ 2,000.
Using 2 green pixel potion...
You gain 98 hit points
You gain 74 Mojo Points
Finished using 2 green pixel potion.
Using cached search results for green pixel potion...
Purchasing green pixel potion (1 @ 2,000)...
You acquire an item: green pixel potion
Purchasing green pixel potion (1 @ 2,000)...
You acquire an item: green pixel potion
Purchasing green pixel potion (1 @ 5,000)...
You acquire an item: green pixel potion
Purchasing green pixel potion (1 @ 5,889)...
You acquire an item: green pixel potion
Purchasing green pixel potion (1 @ 10,000)...
You acquire an item: green pixel potion
Desired purchase quantity not reached (wanted 36, got 5)
Using 5 green pixel potion...
You gain 263 hit points
You gain 170 Mojo Points
Finished using 5 green pixel potion.
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 31, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 31, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 31, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 31, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 31, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 31, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 31, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 31, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 31, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 31, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 31, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 31, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 31, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 31, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 31, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 31, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 31, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 31, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 31, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 31, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 31, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 31, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 31, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 31, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 31, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 31, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 31, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 31, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 31, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 31, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 31, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 31, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 31, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 31, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 31, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 31, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 31, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 31, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 31, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 31, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 31, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 31, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 31, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 31, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 31, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 31, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 31, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 31, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 31, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 31, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 31, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 31, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 31, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 31, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 31, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 31, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 31, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 31, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 31, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 31, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 31, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 31, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 31, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 31, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 31, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 31, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 31, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 31, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 31, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 31, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 31, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 31, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 31, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 31, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 31, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 31, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 31, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 31, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 31, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 31, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 31, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 31, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 31, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 31, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 31, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 31, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 31, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 31, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 31, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 31, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 31, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 31, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 31, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 31, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 31, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 31, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 31, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 31, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 31, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 31, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 31, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 31, got 0)
Searching for "green pixel potion"...
Search complete.
Purchasing green pixel potion (4 @ 339)...
Stopped purchasing green pixel potion @ 15,000.
Using cached search results for green pixel potion...
Purchasing green pixel potion (1 @ 15,000)...
You acquire an item: green pixel potion
Purchasing green pixel potion (1 @ 250,000)...
You acquire an item: green pixel potion
Purchasing green pixel potion (1 @ 900,000)...
You acquire an item: green pixel potion
Purchasing green pixel potion (4 @ 999,999)...
You acquire green pixel potion (4)
Stopped purchasing green pixel potion @ 9,000,000.
Using 7 green pixel potion...
You gain 339 hit points
You gain 257 Mojo Points
Finished using 7 green pixel potion.
Using cached search results for green pixel potion...
[b]Purchasing green pixel potion (1 @ 9,000,000)...[/b]
You acquire an item: green pixel potion
Desired purchase quantity not reached (wanted 23, got 1)
Using 1 green pixel potion...
You gain 58 hit points
You gain 30 Mojo Points
Finished using 1 green pixel potion.
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 22, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 22, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 22, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 22, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 22, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 22, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 22, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 22, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 22, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 22, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 22, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 22, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 22, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 22, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 22, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 22, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 22, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 22, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 22, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 22, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 22, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 22, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 22, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 22, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 22, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 22, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 22, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 22, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 22, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 22, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 22, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 22, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 22, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 22, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 22, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 22, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 22, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 22, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 22, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 22, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 22, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 22, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 22, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 22, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 22, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 22, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 22, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 22, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 22, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 22, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 22, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 22, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 22, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 22, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 22, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 22, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 22, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 22, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 22, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 22, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 22, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 22, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 22, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 22, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 22, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 22, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 22, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 22, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 22, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 22, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 22, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 22, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 22, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 22, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 22, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 22, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 22, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 22, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 22, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 22, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 22, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 22, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 22, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 22, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 22, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 22, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 22, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 22, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 22, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 22, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 22, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 22, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 22, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 22, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 22, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 22, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 22, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 22, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 22, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 22, got 0)
Using cached search results for green pixel potion...
Desired purchase quantity not reached (wanted 22, got 0)
Searching for "green pixel potion"...
Search complete.
Purchasing green pixel potion (4 @ 339)...
Stopped purchasing green pixel potion @ 192,837,465.
Running out of meat! Time to take some out of the closet...

This is everything before the CLI cut off, note the green pixel potion purchased for 9 mil (bolded, towards middle bottom). =( Where did I go wrong? I'm assuming there's a setting for this somewhere to prevent this from happening via a price limit or some such.
 
Here is what the entire stock of green pixel potions in the mall looks like:

Code:
green pixel potion	 Usable Item, Miscellaneous Consumable, no level requirement

Store:			     Stock:	 Limit:			  Price:	 
Gir's House of Doom		400	4 / day			339 Meat
The Good Good Guys Club		 92	1 / day			500 Meat
Heir Today, Gone Tomorrow	  5	2 / day		      1,100 Meat
Hermit & Mystic			 30	1 / day		      1,500 Meat
Life stream			 19	1 / day		      5,000 Meat	
Jasper's Junkyard		  7	1 / day		     15,000 Meat
The Fever-Scratching Cat	  2	1 / day		    250,000 Meat
A lot of things and or stuff	  1			192,837,465 Meat
The Underworld Black Market	  1			987,654,321 Meat
House of 1337 Corpses		  1			999,991,400 Meat

Looks like a bad choice as a healing item if you have autoSatisfyWithMall set to true and a really high value of autoBuyPriceLimit. Speaking of which, what is yours set to?

> get autoBuyPriceLimit

20000

Huh. Maybe I should make a few thousand of them and put them in the mall at 20,000 Meat. ;)
 
Last edited:
Mine was set to 20k, which I'm assuming is the default.
You are correct. That is the default.

A similar issue was discussed on pages 166/167. It has to do with aBPL being short-circuited, essentially.
Interesting. So, it's because UR uses the 2-parameter version of buy() - which says "buy this many, cost is no object" - rather than the 3-parameter version, in which you specify the price limit - which could/should be get_property( "autoBuyPriceLimit" ).

On the other hand, do you REALLY want to buy green pixel potions for 20,000 Meat each?

Bale?
 
Since this was apparently a known issue, my hunch is Bale was going to fix it in the successor script he's currently writing, in going back to look at what roippi mentioned. I imagine this doesn't come up often, I had been adventuring for hundreds of turns burning through lord only knows how many thousands of various restoratives from the mall before this came up.

Though the 20k price limit does make me wonder about using pixel orbs, actually. With a high enough MP that could actually become worthwhile. Another edge case for design confusion. :D
 
Yeah... this is why EatDrink uses acquire/retrieve_item instead of buy, since that way we can have it actually stay under aBPL. The 3 parameter buy would protect... somewhat. Not that you'd want the one for 15k, but stopping there would be better than continuing higher. It might spend more than you'd like if you can create the item for cheaper, but... again, the reason why ED uses RI instead of buy.

Also, if you can use post numbers instead of pages, that would be appreciated... For me, the thread is currently up to page 44. There is no page 166 yet, and likely will never be, unless Bale keeps this thread when 1up bursts forth and the thread keeps its current level of chattiness (or higher) and he maintains 1up for another 8-9 years... :)
 
Replace this:
Code:
	if(buy(q- for_use(it), it, ceil(price*1.25)) > 0 || for_use(it) > 0)
with this:
Code:
	if(buy(q- for_use(it), it, min(ceil(price*1.25),get_property("autoBuyPriceLimit").to_int())) > 0 || for_use(it) > 0)
Basically, we're just putting in a min check that takes whichever is lower, price*1.25 or your aBPL.

Speaking of which, I'll throw that in myself... managed to get in a similar situation, though I didn't have 9 mil on hand to burn, it did want me to start pulling it from the closet...
 
Last edited:
So, I tried unchecking everything but elven magi packs and knob seltzer (not superseltzer, double checked), figuring that will get me by with my remaining turns. But it went ahead and bought superseltzers from the mall anyway, for over 2k each, presumably thanks to that damned store that has a limit of 1 per day @ 125. There weren't any In the relay browser setting, under "Allow recovery to purchase restoratives?" I have "Use KOLMafia Preference" selected. What do I need to do to get it to ignore all other options?
 
Back
Top