PDA

View Full Version : Shop Restock After Full Buyout



Superteeth
03-30-2014, 03:54 PM
Hello everyone. I was wondering if anyone has figured out exactly what causes shopkeepers to restock after a full buyout of their inventory (minus the casino shopkeeper, who may behave differently). I am playing around with a ring and a potion shop right now, and the results are rather variable. If it is a random turn counter that determines whether or not the shop restocks, then there must be only one die, as I have seen the potion shop restock right after I left it after buying everything. But what is the maximum number of turns that can pass before a restock? Or is it based on in-game time? Thanks in advance.

Soirana
03-30-2014, 04:31 PM
Well, one needs to check code to be really sure.

My theory [which mean I pulled it from air] is that there is turn counter for "shop event" and at each "event" something random happens - restock/price increase/etc.
Some stuff like number of items in shop or free space in shop are rumoured to give more weight to roll restock in "event". So there is no ceiling for shop restock turncount.

This is of course total speculation.

Akaji
03-30-2014, 05:01 PM
I suspect that another factor is either a secretive 'merchant wealth' attribute or a count of how many of the merchant's own items remain.

If there's a 'merchant wealth' number involved, I'd have no idea where to start guessing what the mechanics are without attaching a debugger and fiddling (which, as I understand it, is against the terms of use or at least TB's request). The reason I think this might exist is that merchants seem more likely to restock when I don't sell them items (even if I don't buy any and just pile their items in the corner). This could be a space issue instead (total items, not tile space).

I've noticed that purchasing the merchant's items seems to precipitate a restock more often than not. If I'm right about that observation, this seems to be independent of space on shop tiles (I always stack everything in a corner) and independent of how many items I've sold to the merchant remain.

Qui
03-30-2014, 05:48 PM
From what I observed, the main/only factor seems to be amount of items left. Putting all items on one square (apart from browsing convenience) is helpful, only because some of the items may stack, therefore technically becoming one item.

Source: I was playing a merchant and milking a scroll shop. I was buying out everything apart from 2 most expensive stacks (identify and uncursing iirc) and the shopkeeper kept restocking, even though he had a stack of 50 identify scrolls in the shop.

Unfortunately, it means that once you start selling random junk, the shops in DT and HMV won't restock, ever. Perhaps it could be avoided by selling only sis and stacking them, while buying out everything else.

Superteeth
03-30-2014, 05:58 PM
So was the shopkeeper doing a full restock even though you didn't buy everything? Because that is not what happens to me. For instance, the casino only restocks half the available space the first time, then less, then less, until there is only one line of new items (when you put everything in the corner).