So as I go around doing quests, I notice that the merchants change their inventory since I last looked, what triggers this?
Merchants have a basic inventory that never changes that consists of common and miscellaneous items, but their uncommon and up inventory changes.
I don't know the exact details, because it seems fairly random due to sometimes them changing when I leave for 1 second, and sometimes not changing for 10 minutes.
I'd hazard a guess at one of the following, and I'll clear this up once I've researched it more:
It's based on the system time in some way. A quick Autoit script confirmed this. If anybody wants it, here's the autoit script to increase time and date by an hour each time you press CTRL+Z.
EDIT: After I posted this, I realized it might be a good idea to mention that you should reset your system time and date back to the real time after you're done. If you don't, things like SSL may stop working. Just edit your time and synch with internet servers.