If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Scripts maintained by me:AutobasementSmashlib
A small programmer joke:Wife: Honey, please go to the market and buy 1 bottle of milk. If they have eggs, bring 6.
The man came back with 6 bottles of milk.
Wife: Why did you buy 6 bottles of milk.
Man: Because they had eggs...

I may have been wrong. When adapting the store_value function for my needs it seems as if I either broke something or the number the script picks up is not the price but the shop_amount meaning that both .myPrice and .numStore is the same number and neither of them is my current price. You may want to double check my findings. My current function currently looks like this:

Scripts maintained by me:AutobasementSmashlib
A small programmer joke:Wife: Honey, please go to the market and buy 1 bottle of milk. If they have eggs, bring 6.
The man came back with 6 bottles of milk.
Wife: Why did you buy 6 bottles of milk.
Man: Because they had eggs...

The code I quoted above works and used yours as a basis so should be possible to just adapt back without too much trouble hopefully. I stepped through the HTML with your function as a starting point and the print statement shows quantity and price fine so seems to be working.

Scripts maintained by me:AutobasementSmashlib
A small programmer joke:Wife: Honey, please go to the market and buy 1 bottle of milk. If they have eggs, bring 6.
The man came back with 6 bottles of milk.
Wife: Why did you buy 6 bottles of milk.
Man: Because they had eggs...

Yes. I have it on my todo list to clean it out but since the announcement on GD held out the possibility that someone might take it over, I figured I'd hold off.

Right now I'm thinking that what makes sense, (because I am lazy) is to either autosell stuff that was languishing in the store or just pull it and let it sit in inventory. (Whereas before it either autosold or kBay'd). That lets people who want to pulverize do so. If someone wants to make a case that the choices should be autosell or pulverize, I'll certainly consider it, but at some point what we really need is to let OCD handle the disposition and use the "is languishing" status to trigger a reminder for the user to reconsider what OCD does.